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.001259/0.001259, allocations: 79.75 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001439/0.001439, allocations: 162.8 kB / 22.46 MB, free: 5.375 MB / 14.72 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 1.445/1.445, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.002456/0.002456, allocations: 238 kB / 259.4 MB, free: 488 kB / 238.1 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 1.066/1.066, allocations: 138.4 MB / 454.3 MB, free: 1.992 MB / 366.1 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.763e-06/1.763e-06, allocations: 0 / 0.6468 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.644e-05/2.82e-05, allocations: 5.797 kB / 0.6468 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002982/0.003011, allocations: 1.659 MB / 0.6484 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.004219, allocations: 0.5804 MB / 0.649 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.53e-05/0.004315, allocations: 11.94 kB / 0.649 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.004519, allocations: 23.72 kB / 0.649 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.004824, allocations: 67.61 kB / 0.649 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.005086, allocations: 83.77 kB / 0.6491 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.005303, allocations: 131.6 kB / 0.6493 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.005449, allocations: 37.64 kB / 0.6493 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002231/0.005672, allocations: 79.75 kB / 0.6494 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.005783, allocations: 51.81 kB / 0.6494 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.005818, allocations: 8 kB / 0.6494 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.944e-05/0.005897, allocations: 31.92 kB / 0.6495 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.005998, allocations: 43.84 kB / 0.6495 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.042e-05/0.006058, allocations: 39.84 kB / 0.6495 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002494/0.006308, allocations: 143.5 kB / 0.6497 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.006311, allocations: 0 / 0.6497 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.92e-07/0.006311, allocations: 0 / 0.6497 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.217e-06/0.006316, allocations: 0 / 0.6497 GB, free: 2.039 MB / 0.5606 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.0006887/0.007004, allocations: 393.4 kB / 0.65 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.007043, allocations: 17.34 kB / 0.6501 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.007221, allocations: 28.78 kB / 0.6501 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.007553, allocations: 189.1 kB / 0.6503 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.007567, allocations: 4.375 kB / 0.6503 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.007585, allocations: 12.3 kB / 0.6503 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003441/0.007929, allocations: 161.6 kB / 0.6504 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.007937, allocations: 4.188 kB / 0.6504 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.007952, allocations: 384 / 0.6504 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.007961, allocations: 7.938 kB / 0.6505 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002512/0.008212, allocations: 63.94 kB / 0.6505 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005903/0.008803, allocations: 308.2 kB / 0.6508 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.00897, allocations: 38.56 kB / 0.6508 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.009089, allocations: 32.89 kB / 0.6509 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.009106, allocations: 3.938 kB / 0.6509 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002784/0.009385, allocations: 152.4 kB / 0.651 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.009386, allocations: 0 / 0.651 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0004693/0.009855, allocations: 121.5 kB / 0.6511 GB, free: 392 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.009923, allocations: 81.09 kB / 0.6512 GB, free: 292 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.0102, allocations: 238.4 kB / 0.6514 GB, free: 40 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.01022, allocations: 25.7 kB / 0.6515 GB, free: 8 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2609/0.2712, allocations: 128.2 kB / 0.6516 GB, free: 56.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.2712, allocations: 7.625 kB / 0.6516 GB, free: 56.93 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.122e-05/0.2712, allocations: 15.98 kB / 0.6516 GB, free: 56.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.346e-05/0.2713, allocations: 330.1 kB / 0.6519 GB, free: 56.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.2715, allocations: 24.19 kB / 0.652 GB, free: 56.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.2716, allocations: 76.89 kB / 0.652 GB, free: 56.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.2718, allocations: 72.22 kB / 0.6521 GB, free: 56.51 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2718, allocations: 0.8438 kB / 0.6521 GB, free: 56.51 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003114/0.2721, allocations: 104.2 kB / 0.6522 GB, free: 56.48 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.2722, allocations: 4.125 kB / 0.6522 GB, free: 56.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2722, allocations: 0.5 kB / 0.6522 GB, free: 56.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.2722, allocations: 5.016 kB / 0.6522 GB, free: 56.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.2723, allocations: 16.27 kB / 0.6522 GB, free: 56.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.2723, allocations: 3.469 kB / 0.6522 GB, free: 56.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.092e-05/0.2724, allocations: 15.86 kB / 0.6522 GB, free: 56.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.2724, allocations: 3.719 kB / 0.6522 GB, free: 56.48 MB / 0.5606 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 8.524e-05/0.2725, allocations: 129.8 kB / 0.6524 GB, free: 56.37 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.2725, allocations: 13.95 kB / 0.6524 GB, free: 56.37 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.2725, allocations: 19.61 kB / 0.6524 GB, free: 56.36 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2726, allocations: 3.938 kB / 0.6524 GB, free: 56.36 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2726, allocations: 4.156 kB / 0.6524 GB, free: 56.36 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2726, allocations: 0 / 0.6524 GB, free: 56.36 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.2727, allocations: 149.8 kB / 0.6525 GB, free: 56.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.2727, allocations: 0 / 0.6525 GB, free: 56.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.015e-05/0.2728, allocations: 16.55 kB / 0.6526 GB, free: 56.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.624e-06/0.2728, allocations: 0.5625 kB / 0.6526 GB, free: 56.23 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.2728, allocations: 0.75 kB / 0.6526 GB, free: 56.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2728, allocations: 0.5625 kB / 0.6526 GB, free: 56.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2728, allocations: 8 kB / 0.6526 GB, free: 56.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.273, allocations: 125.5 kB / 0.6527 GB, free: 56.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.586e-05/0.2731, allocations: 11.94 kB / 0.6527 GB, free: 56.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.2731, allocations: 5.078 kB / 0.6527 GB, free: 56.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.051e-05/0.2732, allocations: 10.75 kB / 0.6527 GB, free: 56.15 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.2732, allocations: 9.859 kB / 0.6527 GB, free: 56.14 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.2732, allocations: 7.719 kB / 0.6527 GB, free: 56.14 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001154/0.2733, allocations: 176.5 kB / 0.6529 GB, free: 56.07 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.1e-08/0.2733, allocations: 0 / 0.6529 GB, free: 56.07 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002227/0.2736, allocations: 23.41 kB / 0.6529 GB, free: 56.07 MB / 0.5606 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.0001976/0.2738, allocations: 123.2 kB / 0.653 GB, free: 55.98 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002792/0.274, allocations: 57.81 kB / 0.6531 GB, free: 55.98 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.274, allocations: 0 / 0.6531 GB, free: 55.98 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.2742, allocations: 32.28 kB / 0.6531 GB, free: 55.98 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.2744, allocations: 41.34 kB / 0.6532 GB, free: 55.98 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004448/0.2749, allocations: 278.7 kB / 0.6534 GB, free: 55.82 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.07e-05/0.275, allocations: 110.9 kB / 0.6535 GB, free: 55.74 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.455e-05/0.275, allocations: 21.11 kB / 0.6536 GB, free: 55.74 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.846e-05/0.2751, allocations: 17.53 kB / 0.6536 GB, free: 55.74 MB / 0.5606 GB Notification: Performance of SimCode: time 3.61e-07/0.2751, allocations: 0 / 0.6536 GB, free: 55.74 MB / 0.5606 GB Notification: Performance of Templates: time 0.004692/0.2797, allocations: 1.765 MB / 0.6553 GB, free: 55.59 MB / 0.5606 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.8982559479773045] Failed to read output from testmodel.py, exit status != 0: 0.2874501459300518 0.29672347699999996 0.28817592599999997 Calling exit ...