Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7916/0.7916, allocations: 141.7 MB / 154.3 MB, free: 15.5 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009588/0.0009588, allocations: 187.6 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 221.3 MB / 441.4 MB, free: 4.59 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008918/0.0008917, allocations: 102.9 kB / 0.5124 GB, free: 24.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001867/0.001867, allocations: 278.3 kB / 0.5939 GB, free: 7.949 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.081e-05, allocations: 8 kB / 0.6834 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3787, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.5004, allocations: 116.6 MB / 0.8781 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.5007, allocations: 75.84 kB / 0.8782 GB, free: 7.902 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.04678/0.5475, allocations: 16.9 MB / 0.8947 GB, free: 6.977 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.523e-06/0.5475, allocations: 4 kB / 0.8947 GB, free: 6.973 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.805e-05/0.5476, allocations: 15.98 kB / 0.8947 GB, free: 6.957 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001621/0.5492, allocations: 0.9406 MB / 0.8956 GB, free: 5.961 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.5493, allocations: 12.03 kB / 0.8956 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.5494, allocations: 98.83 kB / 0.8957 GB, free: 5.852 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009034/0.5504, allocations: 0.5745 MB / 0.8963 GB, free: 5.234 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.5505, allocations: 96.39 kB / 0.8964 GB, free: 5.125 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-05/0.5506, allocations: 60 kB / 0.8964 GB, free: 5.066 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008928/0.5515, allocations: 0.5786 MB / 0.897 GB, free: 4.438 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.5515, allocations: 3.938 kB / 0.897 GB, free: 4.434 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.87e-05/0.5516, allocations: 20 kB / 0.897 GB, free: 4.414 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.5516, allocations: 12 kB / 0.897 GB, free: 4.402 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006692/0.5523, allocations: 383.8 kB / 0.8974 GB, free: 4.027 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002792/0.5551, allocations: 2.211 MB / 0.8996 GB, free: 1.734 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008223/0.5559, allocations: 469 kB / 0.9 GB, free: 1.262 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002722/0.5562, allocations: 169.6 kB / 0.9002 GB, free: 1.094 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.43e-05/0.5563, allocations: 8 kB / 0.9002 GB, free: 1.086 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004378/0.5567, allocations: 250 kB / 0.9004 GB, free: 0.8281 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=45): time 3.146e-06/0.5567, allocations: 4 kB / 0.9004 GB, free: 0.8242 MB / 0.5573 GB Notification: Performance of matching and sorting (n=45): time 0.0007145/0.5575, allocations: 416.9 kB / 0.9008 GB, free: 420 kB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.597e-05/0.5576, allocations: 191.9 kB / 0.901 GB, free: 184 kB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006227/0.5582, allocations: 0.5273 MB / 0.9015 GB, free: 15.64 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 5.751e-05/0.5583, allocations: 37.7 kB / 0.9015 GB, free: 15.6 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.5585, allocations: 364.9 kB / 0.9019 GB, free: 15.24 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.5586, allocations: 153.7 kB / 0.902 GB, free: 15.09 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.5587, allocations: 12 kB / 0.902 GB, free: 15.08 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5588, allocations: 329.9 kB / 0.9024 GB, free: 14.75 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002646/0.5591, allocations: 145.1 kB / 0.9025 GB, free: 14.61 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000344/0.5594, allocations: 275.8 kB / 0.9028 GB, free: 14.29 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.5597, allocations: 207.3 kB / 0.903 GB, free: 14.08 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.5597, allocations: 0 / 0.903 GB, free: 14.08 MB / 0.573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008352/0.5606, allocations: 0.5437 MB / 0.9035 GB, free: 13.52 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003487/0.5609, allocations: 0.9922 MB / 0.9045 GB, free: 12.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.561, allocations: 0 / 0.9045 GB, free: 12.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.561, allocations: 8 kB / 0.9045 GB, free: 12.44 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005316/0.5615, allocations: 127.8 kB / 0.9046 GB, free: 12.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.5615, allocations: 4 kB / 0.9046 GB, free: 12.31 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004735/0.562, allocations: 84.58 kB / 0.9047 GB, free: 12.23 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.5621, allocations: 16 kB / 0.9047 GB, free: 12.21 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 6.152e-06/0.5621, allocations: 8 kB / 0.9047 GB, free: 12.21 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007051/0.5628, allocations: 459.9 kB / 0.9051 GB, free: 11.75 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.5628, allocations: 4 kB / 0.9051 GB, free: 11.75 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.863e-06/0.5628, allocations: 4 kB / 0.9051 GB, free: 11.74 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004654/0.5633, allocations: 120.1 kB / 0.9053 GB, free: 11.62 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.5633, allocations: 7.953 kB / 0.9053 GB, free: 11.62 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004232/0.5637, allocations: 79.48 kB / 0.9053 GB, free: 11.54 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.5638, allocations: 16 kB / 0.9054 GB, free: 11.52 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001489/0.5639, allocations: 140.9 kB / 0.9055 GB, free: 11.38 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.925e-05/0.564, allocations: 79 kB / 0.9056 GB, free: 11.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.5642, allocations: 82.98 kB / 0.9056 GB, free: 11.21 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5642, allocations: 4 kB / 0.9057 GB, free: 11.21 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.5642, allocations: 3.953 kB / 0.9057 GB, free: 11.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.5643, allocations: 0 / 0.9057 GB, free: 11.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006696/0.5649, allocations: 0.6492 MB / 0.9063 GB, free: 10.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.5649, allocations: 0 / 0.9063 GB, free: 10.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004901/0.5654, allocations: 99.88 kB / 0.9064 GB, free: 10.41 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.5654, allocations: 0 / 0.9064 GB, free: 10.41 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-05/0.5655, allocations: 20.05 kB / 0.9064 GB, free: 10.39 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.5655, allocations: 7.938 kB / 0.9064 GB, free: 10.38 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5655, allocations: 0 / 0.9064 GB, free: 10.38 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.5666, allocations: 0.6573 MB / 0.9071 GB, free: 9.703 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002716/0.5669, allocations: 204.2 kB / 0.9072 GB, free: 9.484 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.187e-05/0.567, allocations: 11.98 kB / 0.9073 GB, free: 9.473 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004958/0.5675, allocations: 59.95 kB / 0.9073 GB, free: 9.414 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-05/0.5676, allocations: 31.95 kB / 0.9073 GB, free: 9.383 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.5676, allocations: 19.98 kB / 0.9074 GB, free: 9.363 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.000566/0.5682, allocations: 423.2 kB / 0.9078 GB, free: 8.957 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5682, allocations: 0 / 0.9078 GB, free: 8.957 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0006468/0.5689, allocations: 243.2 kB / 0.908 GB, free: 8.719 MB / 0.573 GB 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001829/0.569, allocations: 119.1 kB / 0.9081 GB, free: 8.594 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00109/0.5701, allocations: 0.7459 MB / 0.9088 GB, free: 7.816 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5702, allocations: 0 / 0.9088 GB, free: 7.816 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003174/0.5705, allocations: 195.9 kB / 0.909 GB, free: 7.625 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008272/0.5713, allocations: 180 kB / 0.9092 GB, free: 7.453 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.573, allocations: 0.8869 MB / 0.9101 GB, free: 6.535 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.5734, allocations: 0.9313 MB / 0.911 GB, free: 5.574 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0005668/0.574, allocations: 142 kB / 0.9111 GB, free: 5.438 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.5741, allocations: 35.44 kB / 0.9111 GB, free: 5.402 MB / 0.573 GB Notification: Performance of SimCode: time 2.8e-07/0.5741, allocations: 0 / 0.9111 GB, free: 5.402 MB / 0.573 GB Notification: Performance of Templates: time 0.3253/0.8995, allocations: 9 MB / 0.9199 GB, free: 137.2 MB / 0.573 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)