Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.001252/0.001252, allocations: 114.2 kB / 18.94 MB, free: 2.93 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.001348/0.001348, allocations: 189 kB / 22.22 MB, free: 5.105 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.397/1.397, allocations: 225.6 MB / 251 MB, free: 13.01 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.002614/0.002614, allocations: 290.8 kB / 306.6 MB, free: 8.316 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.181/1.181, allocations: 180.9 MB / 0.53 GB, free: 14.4 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.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance")
translateModel(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002833/0.002833, allocations: 100.3 kB / 0.7308 GB, free: 38.68 MB / 0.545 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1553, allocations: 94.2 MB / 0.8228 GB, free: 1.883 MB / 0.5606 GB
Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.005082/0.1604, allocations: 3.174 MB / 0.8259 GB, free: 14.69 MB / 0.5762 GB
Notification: Performance of NFInst.instExpressions: time 0.002196/0.1626, allocations: 1.371 MB / 0.8273 GB, free: 13.31 MB / 0.5762 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1627, allocations: 7.938 kB / 0.8273 GB, free: 13.3 MB / 0.5762 GB
Notification: Performance of NFTyping.typeComponents: time 0.001054/0.1638, allocations: 358.6 kB / 0.8276 GB, free: 12.95 MB / 0.5762 GB
Notification: Performance of NFTyping.typeBindings: time 0.0003209/0.1641, allocations: 143.3 kB / 0.8277 GB, free: 12.81 MB / 0.5762 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.1644, allocations: 143 kB / 0.8279 GB, free: 12.68 MB / 0.5762 GB
Notification: Performance of NFFlatten.flatten: time 0.0003704/0.1648, allocations: 302.8 kB / 0.8282 GB, free: 12.38 MB / 0.5762 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003523/0.1651, allocations: 168.7 kB / 0.8283 GB, free: 12.21 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.1653, allocations: 127.6 kB / 0.8284 GB, free: 12.09 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.1656, allocations: 147.5 kB / 0.8286 GB, free: 11.94 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.1656, allocations: 20 kB / 0.8286 GB, free: 11.92 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.1659, allocations: 171.6 kB / 0.8288 GB, free: 11.75 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 0.000106/0.166, allocations: 83.73 kB / 0.8288 GB, free: 11.67 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.1662, allocations: 111.5 kB / 0.829 GB, free: 11.56 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.1666, allocations: 330.8 kB / 0.8293 GB, free: 11.24 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1666, allocations: 0 / 0.8293 GB, free: 11.24 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 1.092e-06/0.1666, allocations: 0 / 0.8293 GB, free: 11.24 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 6.172e-06/0.1666, allocations: 0 / 0.8293 GB, free: 11.24 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: 50
 * Number of variables: 50
Notification: Performance of Generate backend data structure: time 0.0008084/0.1674, allocations: 465.5 kB / 0.8297 GB, free: 10.75 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.1675, allocations: 8.031 kB / 0.8297 GB, free: 10.74 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005836/0.168, allocations: 80.72 kB / 0.8298 GB, free: 10.66 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.1683, allocations: 188.3 kB / 0.83 GB, free: 10.46 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.1684, allocations: 8.75 kB / 0.83 GB, free: 10.45 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.071e-05/0.1684, allocations: 24.31 kB / 0.83 GB, free: 10.43 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/0.1689, allocations: 299.5 kB / 0.8303 GB, free: 10.11 MB / 0.5762 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1689, allocations: 0 / 0.8303 GB, free: 10.11 MB / 0.5762 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.1689, allocations: 8 kB / 0.8303 GB, free: 10.11 MB / 0.5762 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.575e-05/0.1689, allocations: 24.23 kB / 0.8303 GB, free: 10.08 MB / 0.5762 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003317/0.1693, allocations: 201 kB / 0.8305 GB, free: 9.887 MB / 0.5762 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.1709, allocations: 1.425 MB / 0.8319 GB, free: 8.305 MB / 0.5762 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.1711, allocations: 94.66 kB / 0.832 GB, free: 8.203 MB / 0.5762 GB
Notification: Performance of preOpt resolveLoops (simulation): time 6.495e-05/0.1712, allocations: 28.84 kB / 0.832 GB, free: 8.172 MB / 0.5762 GB
Notification: Performance of preOpt evalFunc (simulation): time 6.743e-06/0.1712, allocations: 0 / 0.832 GB, free: 8.172 MB / 0.5762 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1712, allocations: 42.55 kB / 0.8321 GB, free: 8.121 MB / 0.5762 GB
Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.1712, allocations: 3.938 kB / 0.8321 GB, free: 8.117 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=7): time 0.000448/0.1717, allocations: 146.8 kB / 0.8322 GB, free: 7.965 MB / 0.5762 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.1717, allocations: 51.41 kB / 0.8323 GB, free: 7.902 MB / 0.5762 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.1719, allocations: 204 kB / 0.8325 GB, free: 7.695 MB / 0.5762 GB
Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.172, allocations: 25.7 kB / 0.8325 GB, free: 7.664 MB / 0.5762 GB
Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.1721, allocations: 175.9 kB / 0.8326 GB, free: 7.488 MB / 0.5762 GB
Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.1721, allocations: 23.84 kB / 0.8327 GB, free: 7.465 MB / 0.5762 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.148e-05/0.1722, allocations: 33.67 kB / 0.8327 GB, free: 7.426 MB / 0.5762 GB
Notification: Performance of setup shared object (initialization): time 0.0001529/0.1723, allocations: 330.8 kB / 0.833 GB, free: 7.094 MB / 0.5762 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.449e-05/0.1724, allocations: 39.91 kB / 0.8331 GB, free: 7.055 MB / 0.5762 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.1725, allocations: 98.45 kB / 0.8332 GB, free: 6.93 MB / 0.5762 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.1727, allocations: 144.4 kB / 0.8333 GB, free: 6.758 MB / 0.5762 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.1727, allocations: 0 / 0.8333 GB, free: 6.758 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003348/0.1731, allocations: 190.4 kB / 0.8335 GB, free: 6.562 MB / 0.5762 GB
Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1731, allocations: 8 kB / 0.8335 GB, free: 6.555 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1731, allocations: 4.078 kB / 0.8335 GB, free: 6.551 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001638/0.1733, allocations: 24.84 kB / 0.8335 GB, free: 6.523 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.1734, allocations: 27.92 kB / 0.8335 GB, free: 6.496 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001192/0.1746, allocations: 1.322 MB / 0.8348 GB, free: 5.059 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.1747, allocations: 19.95 kB / 0.8348 GB, free: 5.039 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.1747, allocations: 8 kB / 0.8349 GB, free: 5.031 MB / 0.5762 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 10
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (17):
 * Single equations (assignments): 16
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0001481/0.1748, allocations: 158.5 kB / 0.835 GB, free: 4.867 MB / 0.5762 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.1749, allocations: 15.91 kB / 0.835 GB, free: 4.852 MB / 0.5762 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.16e-05/0.1749, allocations: 13.41 kB / 0.835 GB, free: 4.84 MB / 0.5762 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1749, allocations: 0 / 0.835 GB, free: 4.84 MB / 0.5762 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.1749, allocations: 0 / 0.835 GB, free: 4.84 MB / 0.5762 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1749, allocations: 7.922 kB / 0.835 GB, free: 4.832 MB / 0.5762 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000553/0.1755, allocations: 426.2 kB / 0.8354 GB, free: 4.363 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1755, allocations: 4.094 kB / 0.8354 GB, free: 4.359 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.768e-05/0.1755, allocations: 7.938 kB / 0.8355 GB, free: 4.352 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (simulation): time 7.864e-05/0.1756, allocations: 20.84 kB / 0.8355 GB, free: 4.328 MB / 0.5762 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.1756, allocations: 7.984 kB / 0.8355 GB, free: 4.32 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.1767, allocations: 1.314 MB / 0.8368 GB, free: 2.891 MB / 0.5762 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1767, allocations: 0 / 0.8368 GB, free: 2.891 MB / 0.5762 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002502/0.1769, allocations: 216.3 kB / 0.837 GB, free: 2.66 MB / 0.5762 GB
Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.177, allocations: 19.89 kB / 0.837 GB, free: 2.641 MB / 0.5762 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.177, allocations: 4 kB / 0.837 GB, free: 2.637 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.1771, allocations: 4 kB / 0.837 GB, free: 2.633 MB / 0.5762 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.802e-05/0.1771, allocations: 7.984 kB / 0.837 GB, free: 2.625 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-06/0.1772, allocations: 4 kB / 0.837 GB, free: 2.621 MB / 0.5762 GB
Notification: Performance of sorting global known variables: time 0.0001437/0.1773, allocations: 144.3 kB / 0.8371 GB, free: 2.48 MB / 0.5762 GB
Notification: Performance of sort global known variables: time 7e-08/0.1773, allocations: 0 / 0.8371 GB, free: 2.48 MB / 0.5762 GB
Notification: Performance of remove unused functions: time 0.0003233/0.1776, allocations: 51.89 kB / 0.8372 GB, free: 2.43 MB / 0.5762 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (6):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001078/0.1777, allocations: 102.3 kB / 0.8373 GB, free: 2.32 MB / 0.5762 GB
Notification: Performance of simCode: created initialization part: time 0.000379/0.1781, allocations: 214.4 kB / 0.8375 GB, free: 2.098 MB / 0.5762 GB
Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1781, allocations: 0 / 0.8375 GB, free: 2.098 MB / 0.5762 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.1783, allocations: 147.2 kB / 0.8376 GB, free: 1.941 MB / 0.5762 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003473/0.1786, allocations: 31.98 kB / 0.8377 GB, free: 1.91 MB / 0.5762 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006315/0.1793, allocations: 359 kB / 0.838 GB, free: 1.535 MB / 0.5762 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.1796, allocations: 0.7515 MB / 0.8387 GB, free: 0.7578 MB / 0.5762 GB
Notification: Performance of simCode: alias equations: time 8.426e-05/0.1797, allocations: 25.47 kB / 0.8388 GB, free: 0.7344 MB / 0.5762 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.296e-05/0.1798, allocations: 15.44 kB / 0.8388 GB, free: 0.7188 MB / 0.5762 GB
Notification: Performance of SimCode: time 3.1e-07/0.1798, allocations: 0 / 0.8388 GB, free: 0.7188 MB / 0.5762 GB
Notification: Performance of Templates: time 0.005274/0.185, allocations: 1.87 MB / 0.8406 GB, free: 14.88 MB / 0.5919 GB
"
[Timeout remaining time 660]
make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.makefile [Timeout 660]
(rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.795293399132788]
Failed to read output from testmodel.py, exit status != 0:
0.1923982771113515 0.207568691 0.037856269000000005
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f462d8a17b0>