Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.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 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7562/0.7562, allocations: 140.1 MB / 156 MB, free: 5.148 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001156/0.001157, allocations: 174.2 kB / 188.5 MB, free: 15.82 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.4 MB / 426.3 MB, free: 8.445 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009098/0.0009099, allocations: 82.36 kB / 0.4945 GB, free: 8.395 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.00178/0.00178, allocations: 259.2 kB / 0.5728 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005445/0.0005445, allocations: 20 kB / 0.662 GB, free: 6.809 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4448, allocations: 79.31 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1491/0.5939, allocations: 114 MB / 0.8508 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003343/0.5943, allocations: 79.97 kB / 0.8509 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.03421/0.6286, allocations: 12.57 MB / 0.8631 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.816e-06/0.6286, allocations: 0 / 0.8631 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.175e-05/0.6287, allocations: 16 kB / 0.8632 GB, free: 15.5 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002306/0.631, allocations: 0.9505 MB / 0.8641 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.6311, allocations: 8.031 kB / 0.8641 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000347/0.6315, allocations: 84 kB / 0.8642 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.6326, allocations: 0.5494 MB / 0.8647 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.915e-05/0.6327, allocations: 45.69 kB / 0.8647 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.6328, allocations: 64.38 kB / 0.8648 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.6343, allocations: 0.6566 MB / 0.8654 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.918e-05/0.6344, allocations: 7.938 kB / 0.8655 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.363e-05/0.6344, allocations: 24 kB / 0.8655 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.6345, allocations: 16 kB / 0.8655 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.6357, allocations: 0.5204 MB / 0.866 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003839/0.6396, allocations: 2.103 MB / 0.8681 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.6408, allocations: 0.5275 MB / 0.8686 GB, free: 9.754 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004992/0.6413, allocations: 262.1 kB / 0.8688 GB, free: 9.496 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-05/0.6413, allocations: 4.438 kB / 0.8688 GB, free: 9.492 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006648/0.642, allocations: 309.2 kB / 0.8691 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=50): time 4.007e-06/0.642, allocations: 0 / 0.8691 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=50): time 0.001586/0.6436, allocations: 0.7015 MB / 0.8698 GB, free: 8.469 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.936e-05/0.6437, allocations: 162.7 kB / 0.87 GB, free: 8.273 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006443/0.6444, allocations: 454 kB / 0.8704 GB, free: 7.82 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.01e-05/0.6445, allocations: 37.7 kB / 0.8704 GB, free: 7.777 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.6448, allocations: 317.1 kB / 0.8707 GB, free: 7.461 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.645, allocations: 169.5 kB / 0.8709 GB, free: 7.293 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.645, allocations: 12 kB / 0.8709 GB, free: 7.281 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.6452, allocations: 362.8 kB / 0.8713 GB, free: 6.918 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004652/0.6457, allocations: 213 kB / 0.8715 GB, free: 6.707 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005789/0.6462, allocations: 307.5 kB / 0.8717 GB, free: 6.379 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009679/0.6472, allocations: 0.5029 MB / 0.8722 GB, free: 5.852 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6472, allocations: 0 / 0.8722 GB, free: 5.852 MB / 0.5417 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001255/0.6485, allocations: 0.6287 MB / 0.8729 GB, free: 5.207 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/0.6486, allocations: 37.64 kB / 0.8729 GB, free: 5.164 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.6486, allocations: 0 / 0.8729 GB, free: 5.164 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.6486, allocations: 4 kB / 0.8729 GB, free: 5.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005109/0.6491, allocations: 128 kB / 0.873 GB, free: 5.035 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.6492, allocations: 4 kB / 0.873 GB, free: 5.031 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005129/0.6497, allocations: 83.48 kB / 0.8731 GB, free: 4.949 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.6497, allocations: 20 kB / 0.8731 GB, free: 4.93 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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.0004655/0.6502, allocations: 209.7 kB / 0.8733 GB, free: 4.715 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.6504, allocations: 59.28 kB / 0.8734 GB, free: 4.656 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001768/0.6505, allocations: 69.58 kB / 0.8734 GB, free: 4.586 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.6506, allocations: 8 kB / 0.8734 GB, free: 4.578 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.6506, allocations: 0 / 0.8734 GB, free: 4.578 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.6506, allocations: 0 / 0.8734 GB, free: 4.578 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.6532, allocations: 1.318 MB / 0.8747 GB, free: 3.199 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.6532, allocations: 0 / 0.8747 GB, free: 3.199 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005378/0.6538, allocations: 111.8 kB / 0.8748 GB, free: 3.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.276e-05/0.6538, allocations: 4 kB / 0.8748 GB, free: 3.086 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.447e-05/0.6538, allocations: 8 kB / 0.8749 GB, free: 3.078 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/0.6539, allocations: 4 kB / 0.8749 GB, free: 3.074 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6539, allocations: 0 / 0.8749 GB, free: 3.074 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.6557, allocations: 0.8929 MB / 0.8757 GB, free: 2.172 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000348/0.6561, allocations: 180.4 kB / 0.8759 GB, free: 1.977 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.6562, allocations: 8 kB / 0.8759 GB, free: 1.969 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004549/0.6567, allocations: 59.89 kB / 0.876 GB, free: 1.91 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.6568, allocations: 36.39 kB / 0.876 GB, free: 1.875 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.793e-05/0.6568, allocations: 16.05 kB / 0.876 GB, free: 1.859 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005748/0.6574, allocations: 310.9 kB / 0.8763 GB, free: 1.559 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6574, allocations: 4 kB / 0.8763 GB, free: 1.555 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0007591/0.6582, allocations: 147.6 kB / 0.8765 GB, free: 1.41 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.0002574/0.6585, allocations: 131.7 kB / 0.8766 GB, free: 1.273 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001346/0.6598, allocations: 0.5401 MB / 0.8771 GB, free: 0.7148 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.6598, allocations: 0 / 0.8771 GB, free: 0.7148 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000549/0.6604, allocations: 266.7 kB / 0.8774 GB, free: 468 kB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009246/0.6613, allocations: 152.3 kB / 0.8775 GB, free: 320 kB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.665, allocations: 1.828 MB / 0.8793 GB, free: 14.45 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005152/0.6655, allocations: 0.8903 MB / 0.8802 GB, free: 13.54 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003765/0.6659, allocations: 64.53 kB / 0.8802 GB, free: 13.47 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.666, allocations: 39.44 kB / 0.8803 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of SimCode: time 9.02e-07/0.666, allocations: 0 / 0.8803 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of Templates: time 0.01321/0.6792, allocations: 6.343 MB / 0.8865 GB, free: 7.164 MB / 0.5573 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)