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.00133/0.00133, allocations: 86.05 kB / 19.87 MB, free: 4.617 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.001527/0.001527, allocations: 170 kB / 23.27 MB, free: 1.227 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.9751/0.9751, allocations: 177.2 MB / 203.7 MB, free: 5.504 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.001655/0.001655, allocations: 237.7 kB / 260.5 MB, free: 12.66 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.7401/0.7401, allocations: 138.4 MB / 455.5 MB, free: 1.395 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.402e-06/1.402e-06, allocations: 0 / 0.5556 GB, free: 264 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.771e-05/1.912e-05, allocations: 2.312 kB / 0.5556 GB, free: 260 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002097/0.002116, allocations: 1.681 MB / 0.5572 GB, free: 14.56 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009408/0.003056, allocations: 0.6038 MB / 0.5578 GB, free: 13.95 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.003168, allocations: 3.938 kB / 0.5578 GB, free: 13.95 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001834/0.003351, allocations: 23.73 kB / 0.5578 GB, free: 13.92 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002432/0.003595, allocations: 63.67 kB / 0.5579 GB, free: 13.86 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.003825, allocations: 79.78 kB / 0.558 GB, free: 13.78 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.004039, allocations: 143.5 kB / 0.5581 GB, free: 13.64 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.004193, allocations: 29.67 kB / 0.5581 GB, free: 13.61 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.00437, allocations: 83.73 kB / 0.5582 GB, free: 13.53 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.879e-05/0.004459, allocations: 51.81 kB / 0.5583 GB, free: 13.48 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.004484, allocations: 8 kB / 0.5583 GB, free: 13.47 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.856e-05/0.004553, allocations: 27.92 kB / 0.5583 GB, free: 13.44 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 7.042e-05/0.004623, allocations: 47.83 kB / 0.5583 GB, free: 13.39 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 3.652e-05/0.00466, allocations: 31.91 kB / 0.5584 GB, free: 13.36 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.004822, allocations: 123.4 kB / 0.5585 GB, free: 13.24 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.004825, allocations: 4 kB / 0.5585 GB, free: 13.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.004826, allocations: 0 / 0.5585 GB, free: 13.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.748e-06/0.00483, allocations: 0 / 0.5585 GB, free: 13.24 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.0004166/0.005246, allocations: 491.7 kB / 0.559 GB, free: 12.72 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.005285, allocations: 12.75 kB / 0.559 GB, free: 12.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.0054, allocations: 28.83 kB / 0.559 GB, free: 12.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.005591, allocations: 200.1 kB / 0.5592 GB, free: 12.46 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.005601, allocations: 8.375 kB / 0.5592 GB, free: 12.45 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.005611, allocations: 4.375 kB / 0.5592 GB, free: 12.45 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.005771, allocations: 130.3 kB / 0.5593 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.005779, allocations: 192 / 0.5593 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.00579, allocations: 4.375 kB / 0.5593 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.005796, allocations: 3.938 kB / 0.5593 GB, free: 12.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.008e-05/0.005826, allocations: 19.92 kB / 0.5594 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000383/0.006209, allocations: 312.2 kB / 0.5597 GB, free: 11.94 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.254e-05/0.006262, allocations: 31 kB / 0.5597 GB, free: 11.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.907e-05/0.006281, allocations: 15.75 kB / 0.5597 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.006302, allocations: 0 / 0.5597 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001426/0.006444, allocations: 127.8 kB / 0.5598 GB, free: 11.72 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.006445, allocations: 0 / 0.5598 GB, free: 11.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001429/0.006588, allocations: 57.53 kB / 0.5599 GB, free: 11.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.006622, allocations: 81.11 kB / 0.56 GB, free: 11.56 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.006757, allocations: 268.8 kB / 0.5602 GB, free: 11.28 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.006771, allocations: 29.7 kB / 0.5602 GB, free: 11.25 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.696e-05/0.006858, allocations: 174.7 kB / 0.5604 GB, free: 11.07 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.00688, allocations: 11.94 kB / 0.5604 GB, free: 11.06 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.078e-05/0.006911, allocations: 23.38 kB / 0.5604 GB, free: 11.03 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003884/0.007299, allocations: 0.5039 MB / 0.5609 GB, free: 10.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.257e-05/0.007312, allocations: 3.984 kB / 0.5609 GB, free: 10.51 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.597e-05/0.007347, allocations: 64.45 kB / 0.561 GB, free: 10.42 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.827e-05/0.007386, allocations: 35 kB / 0.561 GB, free: 10.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.007387, allocations: 0 / 0.561 GB, free: 10.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.211e-05/0.007459, allocations: 61.81 kB / 0.5611 GB, free: 10.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.007471, allocations: 10.78 kB / 0.5611 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.007475, allocations: 4 kB / 0.5611 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.787e-06/0.007484, allocations: 0 / 0.5611 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.474e-05/0.007538, allocations: 11.98 kB / 0.5611 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.007542, allocations: 7.922 kB / 0.5611 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.384e-05/0.007576, allocations: 11.94 kB / 0.5611 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-06/0.007581, allocations: 0 / 0.5611 GB, free: 10.27 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.735e-05/0.007648, allocations: 168.4 kB / 0.5613 GB, free: 10.09 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.007665, allocations: 15.91 kB / 0.5613 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.655e-05/0.007691, allocations: 17.03 kB / 0.5613 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.007695, allocations: 8 kB / 0.5613 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.007697, allocations: 0 / 0.5613 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.007699, allocations: 0 / 0.5613 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.531e-05/0.007794, allocations: 129.1 kB / 0.5615 GB, free: 9.898 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.007796, allocations: 7.984 kB / 0.5615 GB, free: 9.891 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.43e-05/0.007821, allocations: 4 kB / 0.5615 GB, free: 9.887 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.007822, allocations: 0 / 0.5615 GB, free: 9.887 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.007829, allocations: 4 kB / 0.5615 GB, free: 9.883 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.00783, allocations: 0 / 0.5615 GB, free: 9.883 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.007831, allocations: 0 / 0.5615 GB, free: 9.883 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.02e-05/0.007911, allocations: 100.2 kB / 0.5616 GB, free: 9.762 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.3e-05/0.007924, allocations: 15.89 kB / 0.5616 GB, free: 9.746 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/0.007935, allocations: 0 / 0.5616 GB, free: 9.746 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.58e-05/0.007961, allocations: 8 kB / 0.5616 GB, free: 9.738 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.007994, allocations: 11.98 kB / 0.5616 GB, free: 9.727 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.008012, allocations: 4 kB / 0.5616 GB, free: 9.723 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.753e-05/0.00809, allocations: 177.7 kB / 0.5618 GB, free: 9.551 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.00809, allocations: 0 / 0.5618 GB, free: 9.551 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001573/0.008247, allocations: 27.88 kB / 0.5618 GB, free: 9.523 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.0001591/0.008406, allocations: 118.6 kB / 0.5619 GB, free: 9.402 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 7.322e-05/0.00848, allocations: 19.66 kB / 0.5619 GB, free: 9.379 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.008482, allocations: 3.938 kB / 0.5619 GB, free: 9.375 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.802e-05/0.0085, allocations: 15.69 kB / 0.562 GB, free: 9.355 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.008695, allocations: 62.41 kB / 0.562 GB, free: 9.301 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004947/0.009189, allocations: 267.3 kB / 0.5623 GB, free: 9.004 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.772e-05/0.009227, allocations: 75.27 kB / 0.5623 GB, free: 8.91 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 4.07e-05/0.009268, allocations: 16.41 kB / 0.5624 GB, free: 8.895 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.077e-05/0.009349, allocations: 98.17 kB / 0.5624 GB, free: 8.797 MB / 490.7 MB Notification: Performance of SimCode: time 3.71e-07/0.009349, allocations: 0 / 0.5624 GB, free: 8.797 MB / 490.7 MB Notification: Performance of Templates: time 0.003501/0.01285, allocations: 1.937 MB / 0.5643 GB, free: 6.887 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.568457728717476]