Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006493/0.006493, allocations: 102.1 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 199.5 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.613/1.613, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6264/0.6264, allocations: 95.48 MB / 365.4 MB, free: 9.762 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 78.62 kB / 0.5036 GB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1795, allocations: 69.09 MB / 0.5711 GB, free: 8.363 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004933/0.1845, allocations: 3.747 MB / 0.5747 GB, free: 4.59 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002984/0.1875, allocations: 1.388 MB / 0.5761 GB, free: 3.191 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004354/0.188, allocations: 27.88 kB / 0.5761 GB, free: 3.164 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004435/0.1885, allocations: 126.5 kB / 0.5762 GB, free: 3.039 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006475/0.1892, allocations: 190.4 kB / 0.5764 GB, free: 2.852 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.1905, allocations: 0.5762 MB / 0.577 GB, free: 2.281 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.1917, allocations: 0.9954 MB / 0.5779 GB, free: 1.281 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006357/0.1923, allocations: 365.8 kB / 0.5783 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000498/0.1928, allocations: 370.4 kB / 0.5786 GB, free: 0.543 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004103/0.1933, allocations: 381.9 kB / 0.579 GB, free: 172 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.1934, allocations: 84 kB / 0.5791 GB, free: 88 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.947e-05/0.1935, allocations: 88 kB / 0.5792 GB, free: 0 / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.1937, allocations: 191.4 kB / 0.5794 GB, free: 15.81 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003473/0.1941, allocations: 409.5 kB / 0.5797 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009234/0.195, allocations: 0.9378 MB / 0.5807 GB, free: 14.47 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.195, allocations: 0 / 0.5807 GB, free: 14.47 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.195, allocations: 0 / 0.5807 GB, free: 14.47 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.195, allocations: 0 / 0.5807 GB, free: 14.47 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.00221/0.1972, allocations: 1.222 MB / 0.5819 GB, free: 13.19 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.1973, allocations: 19.92 kB / 0.5819 GB, free: 13.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.1975, allocations: 103.7 kB / 0.582 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.1985, allocations: 0.6245 MB / 0.5826 GB, free: 12.4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.1987, allocations: 105.3 kB / 0.5827 GB, free: 12.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-05/0.1988, allocations: 52.38 kB / 0.5827 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.1999, allocations: 0.6461 MB / 0.5834 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.2, allocations: 7.938 kB / 0.5834 GB, free: 11.54 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.452e-05/0.2, allocations: 20 kB / 0.5834 GB, free: 11.52 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.2001, allocations: 12 kB / 0.5834 GB, free: 11.51 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.2011, allocations: 484.9 kB / 0.5839 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003074/0.2042, allocations: 2.076 MB / 0.5859 GB, free: 8.887 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.2055, allocations: 0.5545 MB / 0.5864 GB, free: 8.324 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004575/0.206, allocations: 217.5 kB / 0.5866 GB, free: 8.109 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.578e-05/0.206, allocations: 8.375 kB / 0.5866 GB, free: 8.102 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006708/0.2067, allocations: 313.2 kB / 0.5869 GB, free: 7.789 MB / 462.1 MB Notification: Performance of pre-optimization done (n=47): time 1.824e-06/0.2067, allocations: 0 / 0.5869 GB, free: 7.789 MB / 462.1 MB Notification: Performance of matching and sorting (n=47): time 0.001574/0.2083, allocations: 0.6855 MB / 0.5876 GB, free: 7.094 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.706e-05/0.2084, allocations: 137 kB / 0.5877 GB, free: 6.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007657/0.2092, allocations: 0.6532 MB / 0.5884 GB, free: 6.262 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.019e-05/0.2092, allocations: 41.69 kB / 0.5884 GB, free: 6.215 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002667/0.2095, allocations: 372.8 kB / 0.5888 GB, free: 5.848 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.2096, allocations: 161.7 kB / 0.5889 GB, free: 5.688 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.2098, allocations: 98.23 kB / 0.589 GB, free: 5.586 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.21, allocations: 325.9 kB / 0.5893 GB, free: 5.262 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004813/0.2105, allocations: 210.9 kB / 0.5895 GB, free: 5.051 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005387/0.2111, allocations: 308.4 kB / 0.5898 GB, free: 4.719 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009805/0.2121, allocations: 0.5038 MB / 0.5903 GB, free: 4.184 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.2121, allocations: 4 kB / 0.5903 GB, free: 4.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001181/0.2133, allocations: 0.644 MB / 0.591 GB, free: 3.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.2133, allocations: 33.69 kB / 0.591 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.2133, allocations: 4 kB / 0.591 GB, free: 3.477 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.2134, allocations: 4 kB / 0.591 GB, free: 3.473 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004896/0.2139, allocations: 116.1 kB / 0.5911 GB, free: 3.359 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.2139, allocations: 4 kB / 0.5911 GB, free: 3.355 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004138/0.2143, allocations: 71.41 kB / 0.5912 GB, free: 3.285 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.2143, allocations: 23.94 kB / 0.5912 GB, free: 3.262 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005148/0.2149, allocations: 313.2 kB / 0.5915 GB, free: 2.953 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004209/0.2153, allocations: 276.3 kB / 0.5918 GB, free: 2.645 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007295/0.216, allocations: 451.9 kB / 0.5922 GB, free: 2.168 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.683e-06/0.216, allocations: 0 / 0.5922 GB, free: 2.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009867/0.217, allocations: 0.5739 MB / 0.5928 GB, free: 1.582 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.2171, allocations: 37.7 kB / 0.5928 GB, free: 1.539 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.2171, allocations: 0 / 0.5928 GB, free: 1.539 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.463e-06/0.2171, allocations: 8 kB / 0.5928 GB, free: 1.531 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004001/0.2175, allocations: 95.83 kB / 0.5929 GB, free: 1.438 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2175, allocations: 4 kB / 0.5929 GB, free: 1.434 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.2179, allocations: 59.81 kB / 0.593 GB, free: 1.375 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.362e-05/0.2179, allocations: 20 kB / 0.593 GB, free: 1.355 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.local_reset,limPID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002248/0.2182, allocations: 220 kB / 0.5932 GB, free: 1.133 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.2183, allocations: 75.06 kB / 0.5933 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001914/0.2185, allocations: 88.02 kB / 0.5933 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.2185, allocations: 8 kB / 0.5933 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.2185, allocations: 0 / 0.5933 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.2185, allocations: 0 / 0.5933 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008488/0.2194, allocations: 0.6807 MB / 0.594 GB, free: 232 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2194, allocations: 3.984 kB / 0.594 GB, free: 228 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004751/0.2199, allocations: 87.89 kB / 0.5941 GB, free: 140 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2199, allocations: 0 / 0.5941 GB, free: 140 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.2199, allocations: 8 kB / 0.5941 GB, free: 132 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.2199, allocations: 3.984 kB / 0.5941 GB, free: 128 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2199, allocations: 0 / 0.5941 GB, free: 128 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.2215, allocations: 0.8155 MB / 0.5949 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002649/0.2218, allocations: 200 kB / 0.5951 GB, free: 15.07 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.446e-05/0.2219, allocations: 16 kB / 0.5951 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.2223, allocations: 47.94 kB / 0.5952 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.694e-05/0.2224, allocations: 28.5 kB / 0.5952 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-05/0.2225, allocations: 19.97 kB / 0.5952 GB, free: 14.96 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005715/0.223, allocations: 467 kB / 0.5956 GB, free: 14.51 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2231, allocations: 0 / 0.5956 GB, free: 14.51 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.000712/0.2238, allocations: 227.3 kB / 0.5959 GB, free: 14.29 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000224/0.224, allocations: 119.2 kB / 0.596 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.2257, allocations: 0.8319 MB / 0.5968 GB, free: 13.31 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.2257, allocations: 0 / 0.5968 GB, free: 13.31 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004985/0.2262, allocations: 242.3 kB / 0.597 GB, free: 13.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009166/0.2271, allocations: 213.9 kB / 0.5972 GB, free: 12.88 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.2293, allocations: 1.257 MB / 0.5985 GB, free: 11.59 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.2297, allocations: 0.9339 MB / 0.5994 GB, free: 10.63 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003583/0.2301, allocations: 89.05 kB / 0.5994 GB, free: 10.54 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.2303, allocations: 51.44 kB / 0.5995 GB, free: 10.49 MB / 478.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2303, allocations: 0 / 0.5995 GB, free: 10.49 MB / 478.1 MB Notification: Performance of Templates: time 0.01535/0.2456, allocations: 8.529 MB / 0.6078 GB, free: 2.035 MB / 478.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)