Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.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.00103/0.00103, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001115/0.001115, allocations: 169 kB / 24.28 MB, free: 276 kB / 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.9829/0.9829, allocations: 177.1 MB / 204.6 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.876/1.876, allocations: 377.8 MB / 0.6239 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 0.8115 GB, free: 0.9219 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.453e-05/2.654e-05, allocations: 3.078 kB / 0.8115 GB, free: 0.918 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002574/0.002601, allocations: 1.704 MB / 0.8132 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.000815/0.003416, allocations: 0.6054 MB / 0.8138 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.832e-05/0.003514, allocations: 8.656 kB / 0.8138 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.003688, allocations: 27.78 kB / 0.8138 GB, free: 14.58 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.003912, allocations: 65.7 kB / 0.8139 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.004153, allocations: 71.78 kB / 0.8139 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.004337, allocations: 139.5 kB / 0.8141 GB, free: 14.31 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.004493, allocations: 35.06 kB / 0.8141 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.004691, allocations: 87.67 kB / 0.8142 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 9.05e-05/0.004781, allocations: 47.88 kB / 0.8142 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.004806, allocations: 8.719 kB / 0.8142 GB, free: 14.13 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 6.928e-05/0.004876, allocations: 20 kB / 0.8142 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.004956, allocations: 56.72 kB / 0.8143 GB, free: 14.06 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 4.561e-05/0.005001, allocations: 31.86 kB / 0.8143 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.00519, allocations: 112.2 kB / 0.8144 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005192, allocations: 0 / 0.8144 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.212e-06/0.005194, allocations: 0.5625 kB / 0.8144 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.005198, allocations: 1.25 kB / 0.8144 GB, free: 13.92 MB / 0.7292 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.000509/0.005707, allocations: 495.3 kB / 0.8149 GB, free: 13.4 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.005744, allocations: 12.03 kB / 0.8149 GB, free: 13.39 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.005902, allocations: 35.05 kB / 0.815 GB, free: 13.36 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.006137, allocations: 192 kB / 0.8151 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.006149, allocations: 5.094 kB / 0.8151 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.006163, allocations: 8.375 kB / 0.8152 GB, free: 13.13 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.006351, allocations: 139.9 kB / 0.8153 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.006358, allocations: 192 / 0.8153 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.006371, allocations: 4.359 kB / 0.8153 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.455e-06/0.006379, allocations: 3.938 kB / 0.8153 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.807e-05/0.006417, allocations: 17.06 kB / 0.8153 GB, free: 12.95 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000401/0.006818, allocations: 355.5 kB / 0.8156 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 4.728e-05/0.006865, allocations: 31.59 kB / 0.8157 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.42e-05/0.00689, allocations: 11.75 kB / 0.8157 GB, free: 12.51 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.006903, allocations: 0.5312 kB / 0.8157 GB, free: 12.51 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/0.007032, allocations: 132.3 kB / 0.8158 GB, free: 12.34 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.007033, allocations: 0.5312 kB / 0.8158 GB, free: 12.34 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0001732/0.007207, allocations: 66.39 kB / 0.8159 GB, free: 12.27 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.007246, allocations: 81.05 kB / 0.816 GB, free: 12.18 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.007414, allocations: 262.7 kB / 0.8162 GB, free: 11.9 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.00743, allocations: 30.52 kB / 0.8162 GB, free: 11.87 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 8.234e-05/0.007512, allocations: 182.7 kB / 0.8164 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.847e-05/0.007531, allocations: 8.484 kB / 0.8164 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.007562, allocations: 20.75 kB / 0.8164 GB, free: 11.65 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.007691, allocations: 0.5 MB / 0.8169 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.09e-05/0.007712, allocations: 7.984 kB / 0.8169 GB, free: 11.13 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.25e-05/0.007754, allocations: 64.45 kB / 0.817 GB, free: 11.04 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.953e-05/0.007804, allocations: 36.25 kB / 0.817 GB, free: 11 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.007806, allocations: 0.6562 kB / 0.817 GB, free: 11 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.355e-05/0.007889, allocations: 62.25 kB / 0.8171 GB, free: 10.93 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.007904, allocations: 8.531 kB / 0.8171 GB, free: 10.92 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.007908, allocations: 1.406 kB / 0.8171 GB, free: 10.92 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.00792, allocations: 0 / 0.8171 GB, free: 10.92 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.195e-05/0.007992, allocations: 11.98 kB / 0.8171 GB, free: 10.91 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.007999, allocations: 3.984 kB / 0.8171 GB, free: 10.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.507e-05/0.008034, allocations: 12.66 kB / 0.8171 GB, free: 10.89 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.008042, allocations: 13.59 kB / 0.8171 GB, free: 10.88 MB / 0.7292 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 7.387e-05/0.008115, allocations: 160.6 kB / 0.8173 GB, free: 10.71 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.008133, allocations: 15.91 kB / 0.8173 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.897e-05/0.008162, allocations: 13.03 kB / 0.8173 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.008164, allocations: 4.875 kB / 0.8173 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.008167, allocations: 0 / 0.8173 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.00817, allocations: 0 / 0.8173 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.008276, allocations: 172 kB / 0.8175 GB, free: 10.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.008277, allocations: 0 / 0.8175 GB, free: 10.48 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.752e-05/0.008304, allocations: 7.984 kB / 0.8175 GB, free: 10.47 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.008307, allocations: 4 kB / 0.8175 GB, free: 10.47 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.008314, allocations: 0 / 0.8175 GB, free: 10.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.008315, allocations: 0 / 0.8175 GB, free: 10.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.008316, allocations: 0 / 0.8175 GB, free: 10.47 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.006e-05/0.008406, allocations: 100.2 kB / 0.8176 GB, free: 10.35 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.13e-05/0.008417, allocations: 11.91 kB / 0.8176 GB, free: 10.34 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.008432, allocations: 4.5 kB / 0.8176 GB, free: 10.33 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.776e-05/0.00846, allocations: 9.828 kB / 0.8176 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.718e-05/0.008497, allocations: 7.938 kB / 0.8176 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.008515, allocations: 7.984 kB / 0.8176 GB, free: 10.31 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001016/0.008617, allocations: 189.5 kB / 0.8178 GB, free: 10.12 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.008617, allocations: 0 / 0.8178 GB, free: 10.12 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001574/0.008774, allocations: 21.19 kB / 0.8178 GB, free: 10.11 MB / 0.7292 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.0002088/0.008983, allocations: 124.2 kB / 0.818 GB, free: 9.977 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001018/0.009085, allocations: 27.55 kB / 0.818 GB, free: 9.945 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.009087, allocations: 0.8438 kB / 0.818 GB, free: 9.945 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.171e-05/0.009108, allocations: 15.67 kB / 0.818 GB, free: 9.926 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.009328, allocations: 55.73 kB / 0.8181 GB, free: 9.879 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005867/0.009914, allocations: 273.8 kB / 0.8183 GB, free: 9.582 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.081e-05/0.009955, allocations: 71.89 kB / 0.8184 GB, free: 9.492 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.849e-05/0.01, allocations: 12.48 kB / 0.8184 GB, free: 9.48 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/0.01004, allocations: 12.5 kB / 0.8184 GB, free: 9.469 MB / 0.7292 GB Notification: Performance of SimCode: time 8.32e-07/0.01004, allocations: 3.25 kB / 0.8184 GB, free: 9.469 MB / 0.7292 GB Notification: Performance of Templates: time 0.004047/0.01408, allocations: 1.793 MB / 0.8202 GB, free: 7.742 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.02011434501037]