Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.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.00119/0.00119, allocations: 101.7 kB / 19.59 MB, free: 2.324 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.001354/0.001354, allocations: 194.2 kB / 22.85 MB, free: 5.652 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.323/1.323, allocations: 225.6 MB / 251.5 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 179] 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.002439/0.002439, allocations: 292.9 kB / 307 MB, free: 8.461 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.163/1.163, allocations: 180.8 MB / 0.5304 GB, free: 14.46 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.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002663/0.002663, allocations: 100.5 kB / 0.7311 GB, free: 38.81 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1558, allocations: 94.2 MB / 0.823 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003064/0.1588, allocations: 1.665 MB / 0.8247 GB, free: 376 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009563/0.1598, allocations: 0.551 MB / 0.8252 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.709e-05/0.1599, allocations: 0 / 0.8252 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.16, allocations: 27.72 kB / 0.8252 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000257/0.1603, allocations: 63.67 kB / 0.8253 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.1604, allocations: 71.84 kB / 0.8254 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001924/0.1606, allocations: 139.5 kB / 0.8255 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.1608, allocations: 33.66 kB / 0.8255 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.1609, allocations: 59.77 kB / 0.8256 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.161, allocations: 71.62 kB / 0.8257 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.1611, allocations: 8 kB / 0.8257 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 5.879e-05/0.1611, allocations: 24 kB / 0.8257 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.992e-05/0.1612, allocations: 47.83 kB / 0.8257 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.457e-05/0.1613, allocations: 55.61 kB / 0.8258 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.1615, allocations: 151.2 kB / 0.8259 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1615, allocations: 0 / 0.8259 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.643e-06/0.1615, allocations: 0 / 0.8259 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.1615, allocations: 0 / 0.8259 GB, free: 15.07 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000642/0.1622, allocations: 397.3 kB / 0.8263 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.1622, allocations: 12.03 kB / 0.8263 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.863e-05/0.1622, allocations: 16.84 kB / 0.8263 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.1625, allocations: 184.5 kB / 0.8265 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.1626, allocations: 384 / 0.8265 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.1626, allocations: 8.375 kB / 0.8265 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.1629, allocations: 113.9 kB / 0.8266 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1629, allocations: 0 / 0.8266 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.1629, allocations: 7.938 kB / 0.8266 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1629, allocations: 4 kB / 0.8266 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.1631, allocations: 59.94 kB / 0.8267 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005728/0.1637, allocations: 347.6 kB / 0.827 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.1638, allocations: 50.47 kB / 0.8271 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.909e-05/0.1639, allocations: 28.89 kB / 0.8271 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.1639, allocations: 3.984 kB / 0.8271 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.1642, allocations: 101.1 kB / 0.8272 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.1642, allocations: 0 / 0.8272 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003999/0.1646, allocations: 125.4 kB / 0.8273 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/0.1646, allocations: 77.11 kB / 0.8274 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002636/0.1649, allocations: 256.9 kB / 0.8276 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.1649, allocations: 29.7 kB / 0.8277 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.73e-05/0.165, allocations: 136 kB / 0.8278 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.165, allocations: 3.953 kB / 0.8278 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.1651, allocations: 13.72 kB / 0.8278 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1652, allocations: 326.8 kB / 0.8281 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.1653, allocations: 23.97 kB / 0.8282 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.1654, allocations: 51.41 kB / 0.8282 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1656, allocations: 74.48 kB / 0.8283 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1656, allocations: 7.938 kB / 0.8283 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002505/0.1659, allocations: 97.5 kB / 0.8284 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1659, allocations: 7.984 kB / 0.8284 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.1659, allocations: 0 / 0.8284 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.1659, allocations: 7.938 kB / 0.8284 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.166, allocations: 11.98 kB / 0.8284 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.166, allocations: 4.094 kB / 0.8284 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.745e-05/0.1661, allocations: 19.94 kB / 0.8284 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.1661, allocations: 0 / 0.8284 GB, free: 12.29 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0001133/0.1662, allocations: 133.8 kB / 0.8286 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/0.1663, allocations: 15.91 kB / 0.8286 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.639e-05/0.1663, allocations: 13.34 kB / 0.8286 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.1663, allocations: 7.938 kB / 0.8286 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1663, allocations: 3.984 kB / 0.8286 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1663, allocations: 7.938 kB / 0.8286 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.1665, allocations: 184.6 kB / 0.8288 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1665, allocations: 0 / 0.8288 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.582e-05/0.1666, allocations: 11.98 kB / 0.8288 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1666, allocations: 0 / 0.8288 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1666, allocations: 4 kB / 0.8288 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1666, allocations: 3.938 kB / 0.8288 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1666, allocations: 0 / 0.8288 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.1669, allocations: 128.9 kB / 0.8289 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.387e-05/0.1669, allocations: 15.89 kB / 0.8289 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.1669, allocations: 0 / 0.8289 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.58e-05/0.167, allocations: 15.92 kB / 0.8289 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.167, allocations: 336 / 0.8289 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.1671, allocations: 11.98 kB / 0.829 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001764/0.1672, allocations: 184.5 kB / 0.8291 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1672, allocations: 4 kB / 0.8291 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000211/0.1674, allocations: 19.94 kB / 0.8292 GB, free: 11.47 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000212/0.1677, allocations: 133.8 kB / 0.8293 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002659/0.1679, allocations: 51.94 kB / 0.8293 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.1679, allocations: 4 kB / 0.8293 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.168, allocations: 31.91 kB / 0.8294 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.1683, allocations: 41 kB / 0.8294 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005069/0.1688, allocations: 295.1 kB / 0.8297 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.1691, allocations: 0.7203 MB / 0.8304 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.003e-05/0.1692, allocations: 12.48 kB / 0.8304 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.93e-05/0.1692, allocations: 19.44 kB / 0.8304 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of SimCode: time 2.91e-07/0.1692, allocations: 0 / 0.8304 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of Templates: time 0.004929/0.1742, allocations: 1.801 MB / 0.8322 GB, free: 8.352 MB / 0.5762 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.655008126996108] Failed to read output from testmodel.py, exit status != 0: 0.18131288699805737 0.19548935799999995 0.031073802999999938 Calling exit ...