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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009197/0.0009197, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009742/0.0009742, allocations: 173 kB / 23.49 MB, free: 1.055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9316/0.9316, allocations: 177.1 MB / 203.8 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001657/0.001657, allocations: 248.7 kB / 260.5 MB, free: 12.89 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.787/0.787, allocations: 138.4 MB / 455.4 MB, free: 1.492 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.463e-06/1.463e-06, allocations: 0 / 0.555 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.779e-05/1.926e-05, allocations: 2.312 kB / 0.555 GB, free: 0.8555 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.0019/0.00192, allocations: 1.689 MB / 0.5566 GB, free: 15.15 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.000683/0.002603, allocations: 0.6038 MB / 0.5572 GB, free: 14.54 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.071e-05/0.002673, allocations: 7.938 kB / 0.5572 GB, free: 14.54 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.002825, allocations: 35.59 kB / 0.5573 GB, free: 14.5 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.003007, allocations: 59.69 kB / 0.5573 GB, free: 14.44 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001548/0.003162, allocations: 75.77 kB / 0.5574 GB, free: 14.37 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001491/0.003311, allocations: 135.5 kB / 0.5575 GB, free: 14.23 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.003425, allocations: 33.66 kB / 0.5576 GB, free: 14.2 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.00356, allocations: 83.8 kB / 0.5576 GB, free: 14.12 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.152e-05/0.003631, allocations: 47.83 kB / 0.5577 GB, free: 14.07 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.369e-05/0.003655, allocations: 8 kB / 0.5577 GB, free: 14.06 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.662e-05/0.003711, allocations: 35.84 kB / 0.5577 GB, free: 14.03 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 7.55e-05/0.003787, allocations: 51.83 kB / 0.5578 GB, free: 13.98 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 3.877e-05/0.003826, allocations: 31.86 kB / 0.5578 GB, free: 13.95 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.003995, allocations: 111.6 kB / 0.5579 GB, free: 13.84 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.003997, allocations: 0 / 0.5579 GB, free: 13.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003998, allocations: 0 / 0.5579 GB, free: 13.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.004002, allocations: 0 / 0.5579 GB, free: 13.84 MB / 490.7 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.0004521/0.004454, allocations: 0.4917 MB / 0.5584 GB, free: 13.31 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.004486, allocations: 12.75 kB / 0.5584 GB, free: 13.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.004611, allocations: 32.83 kB / 0.5584 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.004808, allocations: 188 kB / 0.5586 GB, free: 13.05 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.004819, allocations: 8.375 kB / 0.5586 GB, free: 13.05 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.004833, allocations: 8.312 kB / 0.5586 GB, free: 13.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.004993, allocations: 142.2 kB / 0.5588 GB, free: 12.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.005, allocations: 192 / 0.5588 GB, free: 12.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.00501, allocations: 384 / 0.5588 GB, free: 12.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.005017, allocations: 3.938 kB / 0.5588 GB, free: 12.88 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.803e-05/0.005055, allocations: 19.98 kB / 0.5588 GB, free: 12.86 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000351/0.005406, allocations: 351.5 kB / 0.5591 GB, free: 12.48 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.022e-05/0.005447, allocations: 31.05 kB / 0.5592 GB, free: 12.44 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.036e-05/0.005467, allocations: 11.75 kB / 0.5592 GB, free: 12.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.939e-06/0.005477, allocations: 0 / 0.5592 GB, free: 12.42 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001116/0.005589, allocations: 139.8 kB / 0.5593 GB, free: 12.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 5.42e-07/0.005589, allocations: 4 kB / 0.5593 GB, free: 12.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001379/0.005727, allocations: 57.59 kB / 0.5594 GB, free: 12.18 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.005762, allocations: 77.11 kB / 0.5594 GB, free: 12.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.005924, allocations: 264.9 kB / 0.5597 GB, free: 11.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.005937, allocations: 29.7 kB / 0.5597 GB, free: 11.78 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.757e-05/0.006004, allocations: 182.7 kB / 0.5599 GB, free: 11.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.006021, allocations: 3.953 kB / 0.5599 GB, free: 11.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.044e-05/0.006052, allocations: 23.36 kB / 0.5599 GB, free: 11.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.006161, allocations: 0.5 MB / 0.5604 GB, free: 11.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.621e-05/0.006177, allocations: 11.94 kB / 0.5604 GB, free: 11.04 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.62e-05/0.006213, allocations: 68.45 kB / 0.5605 GB, free: 10.95 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.814e-05/0.006252, allocations: 38.98 kB / 0.5605 GB, free: 10.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.006253, allocations: 0 / 0.5605 GB, free: 10.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.867e-05/0.006322, allocations: 61.48 kB / 0.5606 GB, free: 10.83 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.006334, allocations: 8 kB / 0.5606 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.006338, allocations: 3.984 kB / 0.5606 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.006349, allocations: 0 / 0.5606 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.996e-05/0.006408, allocations: 12.12 kB / 0.5606 GB, free: 10.81 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.006413, allocations: 0 / 0.5606 GB, free: 10.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.526e-05/0.006448, allocations: 11.94 kB / 0.5606 GB, free: 10.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.006457, allocations: 11.94 kB / 0.5606 GB, free: 10.79 MB / 490.7 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 6.036e-05/0.006518, allocations: 152.6 kB / 0.5608 GB, free: 10.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.725e-05/0.006535, allocations: 15.91 kB / 0.5608 GB, free: 10.61 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.398e-05/0.006559, allocations: 17.02 kB / 0.5608 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.00656, allocations: 4 kB / 0.5608 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.006563, allocations: 0 / 0.5608 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.006565, allocations: 0 / 0.5608 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.799e-05/0.006663, allocations: 172.5 kB / 0.561 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.006664, allocations: 0 / 0.561 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.369e-05/0.006688, allocations: 7.984 kB / 0.561 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.00669, allocations: 4 kB / 0.561 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.006696, allocations: 0 / 0.561 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.006697, allocations: 0 / 0.561 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.006697, allocations: 3.938 kB / 0.561 GB, free: 10.37 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.805e-05/0.006775, allocations: 92.28 kB / 0.5611 GB, free: 10.26 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.007e-05/0.006786, allocations: 11.91 kB / 0.5611 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.006801, allocations: 7.984 kB / 0.5611 GB, free: 10.24 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.729e-05/0.006828, allocations: 8 kB / 0.5611 GB, free: 10.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.006864, allocations: 7.984 kB / 0.5611 GB, free: 10.22 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.006879, allocations: 4 kB / 0.5611 GB, free: 10.22 MB / 490.7 MB Notification: Performance of sorting global known variables: time 8.572e-05/0.006965, allocations: 185.8 kB / 0.5613 GB, free: 10.04 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006965, allocations: 0 / 0.5613 GB, free: 10.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001435/0.007108, allocations: 31.94 kB / 0.5613 GB, free: 10.01 MB / 490.7 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.00016/0.007268, allocations: 125.7 kB / 0.5614 GB, free: 9.883 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 9.183e-05/0.00736, allocations: 27.55 kB / 0.5615 GB, free: 9.852 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.007362, allocations: 0 / 0.5615 GB, free: 9.852 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.107e-05/0.007383, allocations: 15.69 kB / 0.5615 GB, free: 9.832 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.007585, allocations: 55.36 kB / 0.5615 GB, free: 9.777 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005256/0.00811, allocations: 275.4 kB / 0.5618 GB, free: 9.473 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.645e-05/0.008147, allocations: 71.27 kB / 0.5619 GB, free: 9.383 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 4.372e-05/0.00819, allocations: 16.47 kB / 0.5619 GB, free: 9.367 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.263e-05/0.008223, allocations: 20.5 kB / 0.5619 GB, free: 9.348 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/0.008224, allocations: 0 / 0.5619 GB, free: 9.348 MB / 490.7 MB Notification: Performance of Templates: time 0.003414/0.01164, allocations: 1.803 MB / 0.5637 GB, free: 7.582 MB / 490.7 MB " [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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.60037918202579]