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.0008224/0.0008224, allocations: 88.17 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008813/0.0008812, allocations: 175.4 kB / 16.58 MB, free: 6.852 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: 223.3 MB / 240.6 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7201/0.7201, allocations: 115.5 MB / 407.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.0003021, allocations: 8 kB / 495.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1363, allocations: 77.53 MB / 0.5593 GB, free: 9.395 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001872/0.1382, allocations: 1.313 MB / 0.5606 GB, free: 8.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008868/0.1391, allocations: 0.5225 MB / 0.5611 GB, free: 7.543 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.337e-05/0.1393, allocations: 4 kB / 0.5611 GB, free: 7.539 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.1394, allocations: 19.86 kB / 0.5611 GB, free: 7.52 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002474/0.1397, allocations: 59.69 kB / 0.5612 GB, free: 7.461 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001656/0.1399, allocations: 51.92 kB / 0.5613 GB, free: 7.41 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.1401, allocations: 111.6 kB / 0.5614 GB, free: 7.301 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.1402, allocations: 37.48 kB / 0.5614 GB, free: 7.262 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.1403, allocations: 47.77 kB / 0.5614 GB, free: 7.215 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.1405, allocations: 51.75 kB / 0.5615 GB, free: 7.164 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.1405, allocations: 7.938 kB / 0.5615 GB, free: 7.156 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.534e-05/0.1406, allocations: 12 kB / 0.5615 GB, free: 7.145 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.71e-05/0.1406, allocations: 35.89 kB / 0.5615 GB, free: 7.109 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.249e-05/0.1407, allocations: 53.58 kB / 0.5616 GB, free: 7.051 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.1409, allocations: 96.05 kB / 0.5617 GB, free: 6.957 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1409, allocations: 0 / 0.5617 GB, free: 6.957 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1409, allocations: 0 / 0.5617 GB, free: 6.957 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1409, allocations: 0 / 0.5617 GB, free: 6.957 MB / 430.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.0005881/0.1415, allocations: 446.6 kB / 0.5621 GB, free: 6.473 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.1415, allocations: 12.03 kB / 0.5621 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.066e-05/0.1416, allocations: 19.72 kB / 0.5621 GB, free: 6.441 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.1418, allocations: 231.7 kB / 0.5624 GB, free: 6.172 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.1419, allocations: 0 / 0.5624 GB, free: 6.172 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.1419, allocations: 8 kB / 0.5624 GB, free: 6.164 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.1422, allocations: 117.6 kB / 0.5625 GB, free: 6.043 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1422, allocations: 7.953 kB / 0.5625 GB, free: 6.035 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.1422, allocations: 0 / 0.5625 GB, free: 6.035 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1422, allocations: 0 / 0.5625 GB, free: 6.035 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/0.1425, allocations: 83.94 kB / 0.5626 GB, free: 5.953 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006406/0.1431, allocations: 388.4 kB / 0.5629 GB, free: 5.523 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001411/0.1433, allocations: 58.48 kB / 0.563 GB, free: 5.457 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.1434, allocations: 32.91 kB / 0.563 GB, free: 5.422 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.1434, allocations: 0 / 0.563 GB, free: 5.422 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.1437, allocations: 105.1 kB / 0.5631 GB, free: 5.301 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1437, allocations: 0 / 0.5631 GB, free: 5.301 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004382/0.1441, allocations: 145.4 kB / 0.5633 GB, free: 5.152 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.1442, allocations: 81.11 kB / 0.5633 GB, free: 5.055 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.1445, allocations: 249 kB / 0.5636 GB, free: 4.809 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.855e-05/0.1445, allocations: 29.7 kB / 0.5636 GB, free: 4.773 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.403e-05/0.1446, allocations: 131.9 kB / 0.5637 GB, free: 4.641 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.1446, allocations: 15.84 kB / 0.5637 GB, free: 4.625 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-06/0.1447, allocations: 0 / 0.5637 GB, free: 4.625 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1448, allocations: 334.8 kB / 0.5641 GB, free: 4.289 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.1449, allocations: 23.98 kB / 0.5641 GB, free: 4.266 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.145, allocations: 59.41 kB / 0.5641 GB, free: 4.195 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001123/0.1452, allocations: 36 kB / 0.5642 GB, free: 4.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1452, allocations: 0 / 0.5642 GB, free: 4.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002786/0.1454, allocations: 121.4 kB / 0.5643 GB, free: 4.035 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.1455, allocations: 4 kB / 0.5643 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.1455, allocations: 0 / 0.5643 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.1455, allocations: 0 / 0.5643 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.1456, allocations: 19.92 kB / 0.5643 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1456, allocations: 0 / 0.5643 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.988e-05/0.1457, allocations: 20.05 kB / 0.5643 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.1458, allocations: 4 kB / 0.5643 GB, free: 3.988 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.1459, allocations: 129.8 kB / 0.5645 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.1459, allocations: 19.72 kB / 0.5645 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.542e-05/0.1459, allocations: 21.23 kB / 0.5645 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1459, allocations: 0 / 0.5645 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1459, allocations: 0 / 0.5645 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.146, allocations: 288 / 0.5645 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.1461, allocations: 229.5 kB / 0.5647 GB, free: 3.539 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1462, allocations: 4 kB / 0.5647 GB, free: 3.535 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.786e-05/0.1462, allocations: 11.98 kB / 0.5647 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.1463, allocations: 7.984 kB / 0.5647 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.1463, allocations: 0 / 0.5647 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1463, allocations: 0 / 0.5647 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1463, allocations: 0 / 0.5647 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.1466, allocations: 144.8 kB / 0.5649 GB, free: 3.355 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.245e-05/0.1466, allocations: 96.91 kB / 0.565 GB, free: 3.242 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.1467, allocations: 4 kB / 0.565 GB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.343e-05/0.1468, allocations: 15.98 kB / 0.565 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.1468, allocations: 3.984 kB / 0.565 GB, free: 3.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.1469, allocations: 8 kB / 0.565 GB, free: 3.211 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001754/0.147, allocations: 188.5 kB / 0.5652 GB, free: 3.023 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.147, allocations: 3.938 kB / 0.5652 GB, free: 3.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002284/0.1473, allocations: 23.94 kB / 0.5652 GB, free: 2.996 MB / 430.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 (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.0002015/0.1475, allocations: 116.4 kB / 0.5653 GB, free: 2.883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002861/0.1478, allocations: 75.94 kB / 0.5654 GB, free: 2.809 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1478, allocations: 0 / 0.5654 GB, free: 2.809 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.1479, allocations: 35.97 kB / 0.5654 GB, free: 2.773 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.1482, allocations: 37.89 kB / 0.5655 GB, free: 2.738 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005064/0.1487, allocations: 318.2 kB / 0.5658 GB, free: 2.398 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.149, allocations: 0.7206 MB / 0.5665 GB, free: 1.652 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.147e-05/0.1491, allocations: 12.55 kB / 0.5665 GB, free: 1.641 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.778e-05/0.1491, allocations: 19.42 kB / 0.5665 GB, free: 1.621 MB / 430.1 MB Notification: Performance of SimCode: time 2.584e-06/0.1491, allocations: 0 / 0.5665 GB, free: 1.621 MB / 430.1 MB Notification: Performance of Templates: time 0.004426/0.1536, allocations: 1.553 MB / 0.568 GB, free: 100 kB / 430.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)