Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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) 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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 106.1 kB / 16.4 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 189.2 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7115/0.7115, allocations: 115.3 MB / 406.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 64.45 kB / 0.5577 GB, free: 32.3 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1529, allocations: 76.19 MB / 0.6321 GB, free: 4.414 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002956/0.1559, allocations: 1.622 MB / 0.6336 GB, free: 2.777 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.000912/0.1568, allocations: 0.5417 MB / 0.6342 GB, free: 2.23 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.073e-05/0.1569, allocations: 4 kB / 0.6342 GB, free: 2.227 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.1571, allocations: 27.78 kB / 0.6342 GB, free: 2.199 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.1574, allocations: 71.61 kB / 0.6343 GB, free: 2.129 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001483/0.1576, allocations: 59.86 kB / 0.6343 GB, free: 2.07 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002035/0.1578, allocations: 123.6 kB / 0.6344 GB, free: 1.949 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.1579, allocations: 69.31 kB / 0.6345 GB, free: 1.879 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.1581, allocations: 51.78 kB / 0.6346 GB, free: 1.828 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.1582, allocations: 63.69 kB / 0.6346 GB, free: 1.766 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.1582, allocations: 8 kB / 0.6346 GB, free: 1.758 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.596e-05/0.1583, allocations: 28 kB / 0.6347 GB, free: 1.73 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.116e-05/0.1584, allocations: 47.77 kB / 0.6347 GB, free: 1.684 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 6.424e-05/0.1585, allocations: 55.61 kB / 0.6348 GB, free: 1.629 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.1586, allocations: 143.4 kB / 0.6349 GB, free: 1.488 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1587, allocations: 0 / 0.6349 GB, free: 1.488 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1587, allocations: 0 / 0.6349 GB, free: 1.488 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.1587, allocations: 0 / 0.6349 GB, free: 1.488 MB / 478.1 MB 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.0005677/0.1592, allocations: 474.5 kB / 0.6353 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1593, allocations: 20.02 kB / 0.6354 GB, free: 0.957 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.1e-05/0.1593, allocations: 16.75 kB / 0.6354 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.1596, allocations: 232.9 kB / 0.6356 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.1596, allocations: 8.375 kB / 0.6356 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.1597, allocations: 4.375 kB / 0.6356 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.1599, allocations: 116.6 kB / 0.6357 GB, free: 0.543 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.16, allocations: 4 kB / 0.6357 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.16, allocations: 8 kB / 0.6357 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.16, allocations: 0 / 0.6357 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002277/0.1602, allocations: 59.94 kB / 0.6358 GB, free: 484 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005438/0.1608, allocations: 380.4 kB / 0.6362 GB, free: 52 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.1609, allocations: 42.55 kB / 0.6362 GB, free: 0 / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1611, allocations: 29.03 kB / 0.6362 GB, free: 15.97 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.1611, allocations: 7.922 kB / 0.6362 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.1613, allocations: 97.03 kB / 0.6363 GB, free: 15.85 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.382e-06/0.1613, allocations: 0 / 0.6363 GB, free: 15.85 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004493/0.1618, allocations: 125.4 kB / 0.6364 GB, free: 15.72 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.1618, allocations: 77.11 kB / 0.6365 GB, free: 15.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.1621, allocations: 253 kB / 0.6368 GB, free: 15.37 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1621, allocations: 25.7 kB / 0.6368 GB, free: 15.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.899e-05/0.1622, allocations: 136 kB / 0.6369 GB, free: 15.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.1622, allocations: 7.906 kB / 0.6369 GB, free: 15.19 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.65e-05/0.1622, allocations: 13.7 kB / 0.6369 GB, free: 15.17 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1624, allocations: 330.8 kB / 0.6372 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.1625, allocations: 23.97 kB / 0.6373 GB, free: 14.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.1626, allocations: 59.53 kB / 0.6373 GB, free: 14.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.1628, allocations: 66.47 kB / 0.6374 GB, free: 14.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1628, allocations: 0 / 0.6374 GB, free: 14.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00028/0.1631, allocations: 105.4 kB / 0.6375 GB, free: 14.56 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.1632, allocations: 8 kB / 0.6375 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1632, allocations: 96 / 0.6375 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1632, allocations: 7.922 kB / 0.6375 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.1633, allocations: 15.92 kB / 0.6375 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.728e-06/0.1633, allocations: 0 / 0.6375 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.295e-05/0.1634, allocations: 19.98 kB / 0.6375 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.1634, allocations: 4 kB / 0.6375 GB, free: 14.51 MB / 494.1 MB 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 9.769e-05/0.1635, allocations: 129.8 kB / 0.6377 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.1636, allocations: 15.81 kB / 0.6377 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.55e-05/0.1636, allocations: 21.23 kB / 0.6377 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1636, allocations: 3.938 kB / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1636, allocations: 0 / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1636, allocations: 0 / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.1638, allocations: 221.6 kB / 0.6379 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1638, allocations: 4 kB / 0.6379 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.147e-05/0.1639, allocations: 11.98 kB / 0.6379 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.1639, allocations: 0 / 0.6379 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-06/0.1639, allocations: 0 / 0.6379 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1639, allocations: 3.938 kB / 0.6379 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1639, allocations: 3.938 kB / 0.6379 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002869/0.1642, allocations: 128.8 kB / 0.6381 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.271e-05/0.1643, allocations: 88.92 kB / 0.6382 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.1643, allocations: 3.984 kB / 0.6382 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.874e-05/0.1644, allocations: 11.94 kB / 0.6382 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.1645, allocations: 3.984 kB / 0.6382 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.1645, allocations: 8 kB / 0.6382 GB, free: 13.76 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002163/0.1647, allocations: 188.5 kB / 0.6384 GB, free: 13.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1647, allocations: 0 / 0.6384 GB, free: 13.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000233/0.165, allocations: 23.91 kB / 0.6384 GB, free: 13.55 MB / 494.1 MB 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.000195/0.1652, allocations: 121.1 kB / 0.6385 GB, free: 13.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002984/0.1655, allocations: 59.94 kB / 0.6386 GB, free: 13.37 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1655, allocations: 0 / 0.6386 GB, free: 13.37 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.1656, allocations: 23.98 kB / 0.6386 GB, free: 13.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.1659, allocations: 53.42 kB / 0.6386 GB, free: 13.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004931/0.1664, allocations: 276.4 kB / 0.6389 GB, free: 13 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.1667, allocations: 0.7237 MB / 0.6396 GB, free: 12.25 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.552e-05/0.1668, allocations: 20.53 kB / 0.6396 GB, free: 12.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.1668, allocations: 15.44 kB / 0.6396 GB, free: 12.22 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1668, allocations: 0 / 0.6396 GB, free: 12.22 MB / 494.1 MB Notification: Performance of Templates: time 0.004374/0.1712, allocations: 1.755 MB / 0.6413 GB, free: 10.49 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)