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.001275/0.001275, allocations: 108.8 kB / 18.93 MB, free: 2.945 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.001308/0.001308, allocations: 192 kB / 22.23 MB, free: 5.156 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.303/1.303, allocations: 225.6 MB / 251 MB, free: 13.02 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.002411/0.002411, allocations: 291 kB / 306.5 MB, free: 8.43 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.133/1.133, allocations: 180.8 MB / 0.53 GB, free: 14.49 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.002695/0.002695, allocations: 101.4 kB / 0.7308 GB, free: 38.81 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1392, allocations: 94.2 MB / 0.8228 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003033/0.1422, allocations: 1.657 MB / 0.8244 GB, free: 188 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009789/0.1432, allocations: 0.5548 MB / 0.825 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.838e-05/0.1432, allocations: 7.938 kB / 0.825 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.1434, allocations: 31.72 kB / 0.825 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002529/0.1437, allocations: 63.73 kB / 0.8251 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.1438, allocations: 63.86 kB / 0.8251 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00019/0.144, allocations: 135.5 kB / 0.8253 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.1441, allocations: 33.66 kB / 0.8253 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.1442, allocations: 55.78 kB / 0.8254 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.1444, allocations: 67.69 kB / 0.8254 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/0.1444, allocations: 8 kB / 0.8254 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 5.976e-05/0.1444, allocations: 27.92 kB / 0.8255 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.744e-05/0.1445, allocations: 47.83 kB / 0.8255 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.579e-05/0.1446, allocations: 59.61 kB / 0.8256 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002047/0.1448, allocations: 151.2 kB / 0.8257 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1448, allocations: 3.938 kB / 0.8257 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1448, allocations: 0 / 0.8257 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.1448, allocations: 0 / 0.8257 GB, free: 14.88 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.0006201/0.1454, allocations: 397.3 kB / 0.8261 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.1455, allocations: 8.031 kB / 0.8261 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.885e-05/0.1455, allocations: 20.84 kB / 0.8261 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.1458, allocations: 180.5 kB / 0.8263 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.1458, allocations: 12.31 kB / 0.8263 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.1458, allocations: 4.375 kB / 0.8263 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.1461, allocations: 116.9 kB / 0.8264 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.1461, allocations: 0 / 0.8264 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.1461, allocations: 4 kB / 0.8264 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.1461, allocations: 0 / 0.8264 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.1464, allocations: 67.92 kB / 0.8265 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000579/0.147, allocations: 347.6 kB / 0.8268 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/0.1471, allocations: 46.55 kB / 0.8269 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.1472, allocations: 24.91 kB / 0.8269 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/0.1472, allocations: 0 / 0.8269 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.1475, allocations: 101 kB / 0.827 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.1475, allocations: 4 kB / 0.827 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004341/0.1479, allocations: 125.4 kB / 0.8271 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.148, allocations: 77.11 kB / 0.8272 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.1482, allocations: 256.9 kB / 0.8274 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1482, allocations: 29.64 kB / 0.8274 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.285e-05/0.1483, allocations: 132 kB / 0.8276 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.1483, allocations: 11.95 kB / 0.8276 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.414e-05/0.1484, allocations: 17.7 kB / 0.8276 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1485, allocations: 326.8 kB / 0.8279 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.1486, allocations: 23.97 kB / 0.8279 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.1488, allocations: 55.41 kB / 0.828 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.149, allocations: 62.47 kB / 0.828 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.149, allocations: 0 / 0.828 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002873/0.1493, allocations: 109.5 kB / 0.8281 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.1493, allocations: 4 kB / 0.8282 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.1493, allocations: 0 / 0.8282 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.1493, allocations: 3.938 kB / 0.8282 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.1494, allocations: 11.98 kB / 0.8282 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.1494, allocations: 4 kB / 0.8282 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.359e-05/0.1495, allocations: 19.94 kB / 0.8282 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.1495, allocations: 4.094 kB / 0.8282 GB, free: 12.11 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.0001109/0.1496, allocations: 129.8 kB / 0.8283 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.1497, allocations: 15.91 kB / 0.8283 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.529e-05/0.1497, allocations: 21.33 kB / 0.8284 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1497, allocations: 7.875 kB / 0.8284 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.1497, allocations: 0 / 0.8284 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1497, allocations: 0 / 0.8284 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.1499, allocations: 188.7 kB / 0.8285 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1499, allocations: 0 / 0.8285 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.911e-05/0.15, allocations: 15.98 kB / 0.8286 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.15, allocations: 3.938 kB / 0.8286 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.024e-06/0.15, allocations: 0 / 0.8286 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.15, allocations: 7.875 kB / 0.8286 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.15, allocations: 0 / 0.8286 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.1503, allocations: 120.9 kB / 0.8287 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.274e-05/0.1503, allocations: 15.91 kB / 0.8287 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.1504, allocations: 8 kB / 0.8287 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.657e-05/0.1504, allocations: 11.92 kB / 0.8287 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.1505, allocations: 7.984 kB / 0.8287 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.1505, allocations: 4 kB / 0.8287 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001813/0.1507, allocations: 192.5 kB / 0.8289 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1507, allocations: 0 / 0.8289 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002124/0.1509, allocations: 19.94 kB / 0.8289 GB, free: 11.28 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.0001994/0.1511, allocations: 123 kB / 0.829 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002931/0.1514, allocations: 63.94 kB / 0.8291 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1514, allocations: 0 / 0.8291 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.1515, allocations: 23.98 kB / 0.8291 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.1518, allocations: 46.41 kB / 0.8292 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004909/0.1523, allocations: 288.1 kB / 0.8295 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.1526, allocations: 0.7204 MB / 0.8302 GB, free: 9.98 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.34e-05/0.1527, allocations: 24.41 kB / 0.8302 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/0.1527, allocations: 11.44 kB / 0.8302 GB, free: 9.945 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/0.1527, allocations: 0 / 0.8302 GB, free: 9.945 MB / 0.5762 GB Notification: Performance of Templates: time 0.004898/0.1576, allocations: 1.812 MB / 0.832 GB, free: 8.156 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.508696417324245] Failed to read output from testmodel.py, exit status != 0: 0.16465390007942915 0.179109173 0.031352373 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f13164397b0>