Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.517/1.517, allocations: 249.5 MB / 257 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001211/0.001211, allocations: 175.4 kB / 316.3 MB, free: 3.262 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.3 MB / 0.5671 GB, free: 15.93 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008627/0.0008628, allocations: 93.72 kB / 0.6714 GB, free: 5.039 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.285e-05/1.288e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1925, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6654/0.858, allocations: 133.9 MB / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.8583, allocations: 86.17 kB / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009225/0.8675, allocations: 3.248 MB / 1.019 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.415e-06/0.8676, allocations: 3.938 kB / 1.019 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.403e-05/0.8676, allocations: 6.734 kB / 1.019 GB, free: 1.148 MB / 0.6355 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.0005129/0.8681, allocations: 430.1 kB / 1.02 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.8681, allocations: 8.031 kB / 1.02 GB, free: 0.6836 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.388e-05/0.8682, allocations: 19.81 kB / 1.02 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.8685, allocations: 231.9 kB / 1.02 GB, free: 416 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.8685, allocations: 7.938 kB / 1.02 GB, free: 408 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.8685, allocations: 7.984 kB / 1.02 GB, free: 400 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.458e-05/0.8686, allocations: 33.92 kB / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.8688, allocations: 70.23 kB / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.8688, allocations: 4 kB / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.8688, allocations: 0 / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.8688, allocations: 0 / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005571/0.8694, allocations: 369.8 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 4.703e-05/0.8695, allocations: 26.14 kB / 1.02 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.673e-05/0.8695, allocations: 8.922 kB / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.8695, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001416/0.8697, allocations: 86.38 kB / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8697, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0001584/0.8698, allocations: 59.56 kB / 1.021 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.8699, allocations: 77.11 kB / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.8701, allocations: 210.2 kB / 1.021 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.8701, allocations: 25.7 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.529e-05/0.8702, allocations: 125.1 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.8702, allocations: 7.219 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-06/0.8703, allocations: 4 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.8704, allocations: 326.2 kB / 1.021 GB, free: 15 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.181e-05/0.8704, allocations: 7.375 kB / 1.021 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.582e-05/0.8705, allocations: 30.62 kB / 1.021 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.838e-05/0.8705, allocations: 10.92 kB / 1.021 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.8705, allocations: 0 / 1.021 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001078/0.8706, allocations: 71.67 kB / 1.021 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.8706, allocations: 4 kB / 1.021 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.8707, allocations: 3.984 kB / 1.021 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.8707, allocations: 7.953 kB / 1.021 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.8708, allocations: 11.98 kB / 1.021 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.8708, allocations: 4 kB / 1.021 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.072e-05/0.8709, allocations: 16.08 kB / 1.021 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.8709, allocations: 4 kB / 1.021 GB, free: 14.82 MB / 0.6511 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 () * 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 7.345e-05/0.871, allocations: 101 kB / 1.022 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.871, allocations: 26.47 kB / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/0.8711, allocations: 20.3 kB / 1.022 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.8711, allocations: 8.031 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.8711, allocations: 4 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.8711, allocations: 3.984 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.8713, allocations: 196.8 kB / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.8713, allocations: 0 / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.198e-05/0.8714, allocations: 11.98 kB / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.8714, allocations: 4 kB / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.8714, allocations: 0 / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.8714, allocations: 0 / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.8714, allocations: 0 / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001287/0.8716, allocations: 91.7 kB / 1.022 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.078e-05/0.8717, allocations: 96.53 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.8717, allocations: 8 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.982e-05/0.8718, allocations: 11.98 kB / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.8718, allocations: 11.36 kB / 1.022 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.8719, allocations: 4 kB / 1.022 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001338/0.872, allocations: 154.3 kB / 1.022 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/0.872, allocations: 3.938 kB / 1.022 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002117/0.8722, allocations: 31.94 kB / 1.022 GB, free: 14.03 MB / 0.6511 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 () * 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.0002699/0.8725, allocations: 129.6 kB / 1.022 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 9.927e-05/0.8726, allocations: 21.48 kB / 1.022 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.8726, allocations: 4.188 kB / 1.022 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.206e-05/0.8727, allocations: 18.25 kB / 1.022 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.8729, allocations: 33.05 kB / 1.022 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003681/0.8733, allocations: 175.7 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.8736, allocations: 0.727 MB / 1.023 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.858e-05/0.8737, allocations: 16.66 kB / 1.023 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.863e-05/0.8737, allocations: 19.38 kB / 1.023 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of SimCode: time 2.21e-07/0.8737, allocations: 0 / 1.023 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of Templates: time 0.003954/0.8777, allocations: 1.468 MB / 1.025 GB, free: 11.44 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches