Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.322/2.322, allocations: 390.3 MB / 405.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 173.2 kB / 498.1 MB, free: 5.668 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.2 MB / 0.7948 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000975/0.0009751, allocations: 102.9 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003574, allocations: 11.28 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.267, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1847/0.4518, allocations: 151.2 MB / 1.371 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.4521, allocations: 83.95 kB / 1.371 GB, free: 10.74 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009778/0.4619, allocations: 3.334 MB / 1.374 GB, free: 7.402 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.953e-06/0.4619, allocations: 0 / 1.374 GB, free: 7.402 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.036e-05/0.462, allocations: 8 kB / 1.374 GB, free: 7.395 MB / 0.8698 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.0006419/0.4626, allocations: 466.4 kB / 1.374 GB, free: 6.891 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.4627, allocations: 8.031 kB / 1.374 GB, free: 6.883 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.416e-05/0.4628, allocations: 27.75 kB / 1.374 GB, free: 6.855 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.4631, allocations: 224.4 kB / 1.375 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.4631, allocations: 4 kB / 1.375 GB, free: 6.59 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.4631, allocations: 7.984 kB / 1.375 GB, free: 6.582 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.4635, allocations: 117.4 kB / 1.375 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.4635, allocations: 0 / 1.375 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.4635, allocations: 8 kB / 1.375 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.4635, allocations: 0 / 1.375 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002424/0.4638, allocations: 79.94 kB / 1.375 GB, free: 6.379 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007012/0.4645, allocations: 396.5 kB / 1.375 GB, free: 5.941 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.4647, allocations: 50.52 kB / 1.375 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.4647, allocations: 0 / 1.375 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.4649, allocations: 109.1 kB / 1.375 GB, free: 5.758 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.503e-06/0.465, allocations: 0 / 1.375 GB, free: 5.758 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0004859/0.4654, allocations: 141.4 kB / 1.375 GB, free: 5.613 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.4655, allocations: 81.11 kB / 1.375 GB, free: 5.516 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.4658, allocations: 224.1 kB / 1.376 GB, free: 5.285 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.4659, allocations: 29.7 kB / 1.376 GB, free: 5.25 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.155e-05/0.4659, allocations: 124 kB / 1.376 GB, free: 5.125 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.466, allocations: 11.91 kB / 1.376 GB, free: 5.113 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.359e-06/0.466, allocations: 0 / 1.376 GB, free: 5.113 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.4661, allocations: 330.8 kB / 1.376 GB, free: 4.781 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.4663, allocations: 27.92 kB / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.4664, allocations: 55.41 kB / 1.376 GB, free: 4.688 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.4665, allocations: 35.97 kB / 1.376 GB, free: 4.652 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.4665, allocations: 4.031 kB / 1.376 GB, free: 4.648 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002947/0.4668, allocations: 121.3 kB / 1.376 GB, free: 4.523 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.4669, allocations: 12.09 kB / 1.376 GB, free: 4.512 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.4669, allocations: 0 / 1.376 GB, free: 4.512 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.4669, allocations: 0 / 1.376 GB, free: 4.512 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.467, allocations: 15.98 kB / 1.376 GB, free: 4.496 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.467, allocations: 0 / 1.376 GB, free: 4.496 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.4672, allocations: 23.83 kB / 1.376 GB, free: 4.473 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.4672, allocations: 0 / 1.376 GB, free: 4.473 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.4673, allocations: 137.8 kB / 1.377 GB, free: 4.328 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.4674, allocations: 20.05 kB / 1.377 GB, free: 4.309 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.952e-05/0.4674, allocations: 25.23 kB / 1.377 GB, free: 4.281 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4674, allocations: 3.984 kB / 1.377 GB, free: 4.277 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4674, allocations: 0 / 1.377 GB, free: 4.277 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.4674, allocations: 0 / 1.377 GB, free: 4.277 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.4676, allocations: 221.5 kB / 1.377 GB, free: 4.012 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4676, allocations: 0 / 1.377 GB, free: 4.012 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.922e-05/0.4677, allocations: 15.98 kB / 1.377 GB, free: 3.996 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4678, allocations: 0 / 1.377 GB, free: 3.996 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.4678, allocations: 7.953 kB / 1.377 GB, free: 3.988 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.4678, allocations: 4 kB / 1.377 GB, free: 3.984 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4678, allocations: 0 / 1.377 GB, free: 3.984 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003053/0.4681, allocations: 132.9 kB / 1.377 GB, free: 3.836 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.804e-05/0.4682, allocations: 100.9 kB / 1.377 GB, free: 3.719 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.4682, allocations: 0 / 1.377 GB, free: 3.719 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.224e-05/0.4683, allocations: 15.94 kB / 1.377 GB, free: 3.703 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/0.4684, allocations: 19.92 kB / 1.377 GB, free: 3.684 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.4684, allocations: 4 kB / 1.377 GB, free: 3.68 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001781/0.4686, allocations: 180.5 kB / 1.377 GB, free: 3.504 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4686, allocations: 0 / 1.377 GB, free: 3.504 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002259/0.4688, allocations: 27.91 kB / 1.377 GB, free: 3.477 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003327/0.4692, allocations: 124.6 kB / 1.377 GB, free: 3.348 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003502/0.4695, allocations: 63.95 kB / 1.378 GB, free: 3.285 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.4695, allocations: 12.12 kB / 1.378 GB, free: 3.273 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.4697, allocations: 31.91 kB / 1.378 GB, free: 3.242 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.47, allocations: 40.34 kB / 1.378 GB, free: 3.203 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006599/0.4707, allocations: 322.2 kB / 1.378 GB, free: 2.863 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.4711, allocations: 0.7277 MB / 1.379 GB, free: 2.109 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 9.28e-05/0.4712, allocations: 16.67 kB / 1.379 GB, free: 2.094 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.819e-05/0.4712, allocations: 15.44 kB / 1.379 GB, free: 2.078 MB / 0.8698 GB Notification: Performance of SimCode: time 2.51e-07/0.4712, allocations: 0 / 1.379 GB, free: 2.078 MB / 0.8698 GB Notification: Performance of Templates: time 0.005219/0.4765, allocations: 1.599 MB / 1.38 GB, free: 0.4961 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches