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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 188.7 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002537/0.002537, allocations: 285.1 kB / 306.5 MB, free: 8.332 MB / 238.1 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.186/1.186, allocations: 180.9 MB / 0.53 GB, free: 14.39 MB / 382.1 MB
"
[Timeout remaining time 179]
Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo)
Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset")
translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002847/0.002847, allocations: 98.84 kB / 0.7308 GB, free: 39.1 MB / 0.545 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1561, allocations: 94.2 MB / 0.8228 GB, free: 2.023 MB / 0.5606 GB
Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005583/0.1617, allocations: 4.169 MB / 0.8269 GB, free: 13.83 MB / 0.5762 GB
Notification: Performance of NFInst.instExpressions: time 0.002201/0.1639, allocations: 1.332 MB / 0.8282 GB, free: 12.49 MB / 0.5762 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002817/0.1642, allocations: 27.81 kB / 0.8282 GB, free: 12.46 MB / 0.5762 GB
Notification: Performance of NFTyping.typeComponents: time 0.000314/0.1645, allocations: 126.7 kB / 0.8283 GB, free: 12.34 MB / 0.5762 GB
Notification: Performance of NFTyping.typeBindings: time 0.0003476/0.1649, allocations: 190.4 kB / 0.8285 GB, free: 12.15 MB / 0.5762 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0008246/0.1657, allocations: 426.4 kB / 0.8289 GB, free: 11.74 MB / 0.5762 GB
Notification: Performance of NFFlatten.flatten: time 0.0009708/0.1667, allocations: 0.9709 MB / 0.8299 GB, free: 10.76 MB / 0.5762 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004942/0.1672, allocations: 306.6 kB / 0.8301 GB, free: 10.44 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003675/0.1675, allocations: 350.7 kB / 0.8305 GB, free: 10.1 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003521/0.1679, allocations: 330.4 kB / 0.8308 GB, free: 9.773 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.168, allocations: 92 kB / 0.8309 GB, free: 9.684 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.1681, allocations: 92 kB / 0.831 GB, free: 9.594 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.1683, allocations: 187.3 kB / 0.8312 GB, free: 9.41 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 0.0003502/0.1686, allocations: 390 kB / 0.8315 GB, free: 9.027 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.001063/0.1697, allocations: 1.062 MB / 0.8326 GB, free: 7.961 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1697, allocations: 0 / 0.8326 GB, free: 7.961 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 1.343e-06/0.1697, allocations: 0 / 0.8326 GB, free: 7.961 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 1.231e-05/0.1697, allocations: 0 / 0.8326 GB, free: 7.961 MB / 0.5762 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.001968/0.1717, allocations: 1.088 MB / 0.8336 GB, free: 6.828 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1717, allocations: 12.03 kB / 0.8336 GB, free: 6.816 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.1719, allocations: 88.36 kB / 0.8337 GB, free: 6.73 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000906/0.1728, allocations: 0.4999 MB / 0.8342 GB, free: 6.207 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.036e-05/0.1728, allocations: 37.69 kB / 0.8342 GB, free: 6.172 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.652e-05/0.1729, allocations: 64.33 kB / 0.8343 GB, free: 6.109 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.1741, allocations: 0.6156 MB / 0.8349 GB, free: 5.469 MB / 0.5762 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.1741, allocations: 0 / 0.8349 GB, free: 5.469 MB / 0.5762 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.45e-05/0.1741, allocations: 24 kB / 0.8349 GB, free: 5.445 MB / 0.5762 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.1741, allocations: 12 kB / 0.8349 GB, free: 5.434 MB / 0.5762 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.1752, allocations: 457 kB / 0.8354 GB, free: 4.988 MB / 0.5762 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003241/0.1784, allocations: 1.951 MB / 0.8373 GB, free: 2.969 MB / 0.5762 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0009629/0.1794, allocations: 430.6 kB / 0.8377 GB, free: 2.543 MB / 0.5762 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004644/0.1799, allocations: 222.1 kB / 0.8379 GB, free: 2.324 MB / 0.5762 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.1799, allocations: 8.438 kB / 0.8379 GB, free: 2.316 MB / 0.5762 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005705/0.1805, allocations: 265.3 kB / 0.8382 GB, free: 2.047 MB / 0.5762 GB
Notification: Performance of pre-optimization done (n=49): time 1.894e-06/0.1805, allocations: 0 / 0.8382 GB, free: 2.047 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=49): time 0.001353/0.1818, allocations: 0.5775 MB / 0.8387 GB, free: 1.465 MB / 0.5762 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.1819, allocations: 59.84 kB / 0.8388 GB, free: 1.395 MB / 0.5762 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005078/0.1824, allocations: 449.9 kB / 0.8392 GB, free: 0.9453 MB / 0.5762 GB
Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.1824, allocations: 41.7 kB / 0.8393 GB, free: 0.8984 MB / 0.5762 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.1827, allocations: 328.9 kB / 0.8396 GB, free: 0.5742 MB / 0.5762 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.1829, allocations: 174.5 kB / 0.8397 GB, free: 412 kB / 0.5762 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.183, allocations: 94.3 kB / 0.8398 GB, free: 312 kB / 0.5762 GB
Notification: Performance of setup shared object (initialization): time 0.0002194/0.1832, allocations: 366.8 kB / 0.8402 GB, free: 15.94 MB / 0.5919 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004242/0.1837, allocations: 161.2 kB / 0.8403 GB, free: 15.78 MB / 0.5919 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/0.1841, allocations: 254.7 kB / 0.8406 GB, free: 15.5 MB / 0.5919 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0008876/0.185, allocations: 451 kB / 0.841 GB, free: 15.03 MB / 0.5919 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.185, allocations: 4 kB / 0.841 GB, free: 15.03 MB / 0.5919 GB
Notification: Performance of matching and sorting (n=66) (initialization): time 0.001106/0.1861, allocations: 0.5573 MB / 0.8415 GB, free: 14.46 MB / 0.5919 GB
Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.1862, allocations: 41.62 kB / 0.8416 GB, free: 14.41 MB / 0.5919 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1862, allocations: 0 / 0.8416 GB, free: 14.41 MB / 0.5919 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.1862, allocations: 4.25 kB / 0.8416 GB, free: 14.41 MB / 0.5919 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005084/0.1867, allocations: 119.8 kB / 0.8417 GB, free: 14.29 MB / 0.5919 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.1867, allocations: 7.938 kB / 0.8417 GB, free: 14.28 MB / 0.5919 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003326/0.1871, allocations: 59.59 kB / 0.8418 GB, free: 14.22 MB / 0.5919 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/0.1871, allocations: 19.98 kB / 0.8418 GB, free: 14.2 MB / 0.5919 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 9
 * Number of states: 0 ()
 * Number of discrete variables: 9 (conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$whenCondition1,$whenCondition2,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 (65):
 * Single equations (assignments): 64
 * 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.0002628/0.1874, allocations: 207.3 kB / 0.842 GB, free: 13.99 MB / 0.5919 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-05/0.1874, allocations: 63.56 kB / 0.842 GB, free: 13.93 MB / 0.5919 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.1876, allocations: 69.58 kB / 0.8421 GB, free: 13.86 MB / 0.5919 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.1876, allocations: 4 kB / 0.8421 GB, free: 13.86 MB / 0.5919 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1876, allocations: 0 / 0.8421 GB, free: 13.86 MB / 0.5919 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.1876, allocations: 4 kB / 0.8421 GB, free: 13.86 MB / 0.5919 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.1894, allocations: 1.146 MB / 0.8432 GB, free: 12.65 MB / 0.5919 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.1894, allocations: 4 kB / 0.8432 GB, free: 12.65 MB / 0.5919 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005057/0.1899, allocations: 99.88 kB / 0.8433 GB, free: 12.55 MB / 0.5919 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1899, allocations: 0 / 0.8433 GB, free: 12.55 MB / 0.5919 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.19, allocations: 8 kB / 0.8433 GB, free: 12.54 MB / 0.5919 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.19, allocations: 4 kB / 0.8434 GB, free: 12.54 MB / 0.5919 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.19, allocations: 0 / 0.8434 GB, free: 12.54 MB / 0.5919 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.1914, allocations: 0.7652 MB / 0.8441 GB, free: 11.76 MB / 0.5919 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.1916, allocations: 95.58 kB / 0.8442 GB, free: 11.67 MB / 0.5919 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.976e-05/0.1916, allocations: 15.98 kB / 0.8442 GB, free: 11.65 MB / 0.5919 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.1919, allocations: 15.98 kB / 0.8442 GB, free: 11.64 MB / 0.5919 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.743e-05/0.192, allocations: 40.36 kB / 0.8443 GB, free: 11.6 MB / 0.5919 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.1921, allocations: 16 kB / 0.8443 GB, free: 11.58 MB / 0.5919 GB
Notification: Performance of sorting global known variables: time 0.0003515/0.1924, allocations: 310.9 kB / 0.8446 GB, free: 11.28 MB / 0.5919 GB
Notification: Performance of sort global known variables: time 9e-08/0.1924, allocations: 0 / 0.8446 GB, free: 11.28 MB / 0.5919 GB
Notification: Performance of remove unused functions: time 0.0004421/0.1929, allocations: 143.6 kB / 0.8447 GB, free: 11.14 MB / 0.5919 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T)
 * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y)
 * Number of discrete states: 1 (TSet.count)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (49):
 * Single equations (assignments): 47
 * 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.0001428/0.193, allocations: 112.3 kB / 0.8448 GB, free: 11.02 MB / 0.5919 GB
Notification: Performance of simCode: created initialization part: time 0.001006/0.194, allocations: 465 kB / 0.8453 GB, free: 10.56 MB / 0.5919 GB
Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.194, allocations: 0 / 0.8453 GB, free: 10.56 MB / 0.5919 GB
Notification: Performance of simCode: created simulation system equations: time 0.0004466/0.1945, allocations: 206.3 kB / 0.8455 GB, free: 10.36 MB / 0.5919 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007955/0.1953, allocations: 169.2 kB / 0.8456 GB, free: 10.2 MB / 0.5919 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002718/0.198, allocations: 1.357 MB / 0.8469 GB, free: 8.812 MB / 0.5919 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005082/0.1985, allocations: 0.8939 MB / 0.8478 GB, free: 7.895 MB / 0.5919 GB
Notification: Performance of simCode: alias equations: time 0.0002463/0.1987, allocations: 72.52 kB / 0.8479 GB, free: 7.82 MB / 0.5919 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.1988, allocations: 35.44 kB / 0.8479 GB, free: 7.785 MB / 0.5919 GB
Notification: Performance of SimCode: time 5.51e-07/0.1988, allocations: 3.938 kB / 0.8479 GB, free: 7.781 MB / 0.5919 GB
Notification: Performance of Templates: time 0.01258/0.2114, allocations: 6.293 MB / 0.8541 GB, free: 1.566 MB / 0.5919 GB
"
[Timeout remaining time 660]
make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 660]
(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) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.963625165633857]
Failed to read output from testmodel.py, exit status != 0:
0.2191291404888034 0.233992882 0.06130954
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f43f01817b0>