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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.221/1.221, allocations: 249.4 MB / 256.7 MB, free: 6.973 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.001123/0.001124, allocations: 192.6 kB / 316 MB, free: 3.582 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.087/1.087, allocations: 205.2 MB / 0.5667 GB, free: 15.7 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.0008417/0.0008418, allocations: 85.58 kB / 0.671 GB, free: 4.836 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.21e-06/5.23e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1405, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.5451, allocations: 133.9 MB / 1.015 GB, free: 4.824 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001877/0.5453, allocations: 75.08 kB / 1.015 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.008274/0.5536, allocations: 2.956 MB / 1.018 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.579e-05/0.5536, allocations: 10.73 kB / 1.018 GB, free: 2.297 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.0004669/0.5541, allocations: 428.7 kB / 1.019 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.5541, allocations: 12.03 kB / 1.019 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.914e-05/0.5542, allocations: 15.81 kB / 1.019 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.5545, allocations: 235 kB / 1.019 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.083e-06/0.5545, allocations: 4 kB / 1.019 GB, free: 1.551 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.5545, allocations: 7.938 kB / 1.019 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.952e-05/0.5546, allocations: 27.05 kB / 1.019 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.5548, allocations: 83.55 kB / 1.019 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.5548, allocations: 3.938 kB / 1.019 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.5548, allocations: 0 / 1.019 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.5548, allocations: 8 kB / 1.019 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005234/0.5554, allocations: 362.2 kB / 1.019 GB, free: 1.078 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.429e-05/0.5554, allocations: 25.95 kB / 1.02 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.939e-05/0.5555, allocations: 16.83 kB / 1.02 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.5555, allocations: 0 / 1.02 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000103/0.5556, allocations: 87.53 kB / 1.02 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.5556, allocations: 0 / 1.02 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001475/0.5557, allocations: 65 kB / 1.02 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.5558, allocations: 80.61 kB / 1.02 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.556, allocations: 194.4 kB / 1.02 GB, free: 0.6016 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.556, allocations: 29.2 kB / 1.02 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.132e-05/0.556, allocations: 115.1 kB / 1.02 GB, free: 472 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.5561, allocations: 7.906 kB / 1.02 GB, free: 464 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.5561, allocations: 4 kB / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.5562, allocations: 325.3 kB / 1.02 GB, free: 132 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.201e-05/0.5562, allocations: 11.61 kB / 1.02 GB, free: 124 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.041e-05/0.5562, allocations: 26.94 kB / 1.02 GB, free: 88 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.619e-05/0.5563, allocations: 8 kB / 1.02 GB, free: 80 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5563, allocations: 4.031 kB / 1.02 GB, free: 76 kB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.942e-05/0.5564, allocations: 68.31 kB / 1.02 GB, free: 8 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/0.5564, allocations: 4 kB / 1.021 GB, free: 4 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.5564, allocations: 4 kB / 1.021 GB, free: 0 / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.5564, allocations: 0 / 1.021 GB, free: 0 / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.5566, allocations: 15.98 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.5566, allocations: 4.094 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.738e-05/0.5567, allocations: 19.89 kB / 1.021 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.5567, allocations: 0 / 1.021 GB, free: 15.96 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 6.201e-05/0.5568, allocations: 112.9 kB / 1.021 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.5568, allocations: 15.81 kB / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.384e-05/0.5568, allocations: 20.16 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.5569, allocations: 0 / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.5569, allocations: 0 / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.5569, allocations: 7.844 kB / 1.021 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.557, allocations: 194.5 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.557, allocations: 4 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.503e-05/0.5571, allocations: 11.98 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.5571, allocations: 8 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.5571, allocations: 3.938 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.5571, allocations: 0 / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5571, allocations: 0 / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001163/0.5573, allocations: 90.97 kB / 1.021 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.5573, allocations: 92.91 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.5574, allocations: 4 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.5575, allocations: 15.98 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.5575, allocations: 11.06 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.5575, allocations: 7.984 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001177/0.5577, allocations: 153.4 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002022/0.5579, allocations: 27.22 kB / 1.021 GB, free: 15.18 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.0002073/0.5581, allocations: 129.8 kB / 1.021 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001025/0.5582, allocations: 23.67 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5582, allocations: 2.938 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.972e-05/0.5582, allocations: 15.81 kB / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.5585, allocations: 32.58 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004097/0.5589, allocations: 184.2 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000319/0.5592, allocations: 0.7382 MB / 1.022 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/0.5592, allocations: 0 / 1.022 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of Templates: time 0.003738/0.563, allocations: 1.554 MB / 1.024 GB, free: 12.51 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