Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.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.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|expMod.oveWriSet_u|expMod.oveWriAct_u|expMod.rea|expMod.oveWriSet_activate|expMod.oveWriAct_activate",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") translateModel(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|expMod.oveWriSet_u|expMod.oveWriAct_u|expMod.rea|expMod.oveWriSet_activate|expMod.oveWriAct_activate",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") [: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.175/1.175, allocations: 249.4 MB / 256.7 MB, free: 15.8 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001226/0.001226, allocations: 188 kB / 316 MB, free: 7.16 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.216/1.216, allocations: 205.1 MB / 0.5667 GB, free: 23.6 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.0007887/0.0007888, allocations: 94.61 kB / 0.671 GB, free: 0.8047 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 4.609e-06/4.629e-06, allocations: 0 / 0.7807 GB, free: 332 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3197, allocations: 106.3 MB / 0.8846 GB, free: 76.21 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1293/0.449, allocations: 136.9 MB / 1.018 GB, free: 3.102 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001865/0.4492, allocations: 83.94 kB / 1.018 GB, free: 3.02 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.01422/0.4635, allocations: 6.62 MB / 1.025 GB, free: 12.38 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.574e-05/0.4635, allocations: 15.94 kB / 1.025 GB, free: 12.37 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0006387/0.4642, allocations: 0.5488 MB / 1.025 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.4642, allocations: 16.03 kB / 1.025 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.394e-05/0.4643, allocations: 43.53 kB / 1.025 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.4648, allocations: 391.5 kB / 1.026 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.4648, allocations: 15.98 kB / 1.026 GB, free: 11.28 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.902e-05/0.4648, allocations: 19.98 kB / 1.026 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003416/0.4652, allocations: 185.2 kB / 1.026 GB, free: 11.08 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000431/0.4656, allocations: 269.5 kB / 1.026 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.4656, allocations: 0 / 1.026 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.4657, allocations: 4 kB / 1.026 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.4657, allocations: 8 kB / 1.026 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.467, allocations: 1.092 MB / 1.027 GB, free: 9.645 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/0.4673, allocations: 190.8 kB / 1.028 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.4674, allocations: 76.86 kB / 1.028 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.4675, allocations: 4 kB / 1.028 GB, free: 9.367 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.4675, allocations: 38.59 kB / 1.028 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=16): time 1.332e-06/0.4675, allocations: 0 / 1.028 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16): time 0.0003345/0.4678, allocations: 180.3 kB / 1.028 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.4679, allocations: 77.11 kB / 1.028 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.4681, allocations: 239.6 kB / 1.028 GB, free: 8.809 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.4682, allocations: 33.7 kB / 1.028 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.973e-05/0.4682, allocations: 160.4 kB / 1.028 GB, free: 8.609 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.867e-05/0.4683, allocations: 51.2 kB / 1.028 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.318e-06/0.4683, allocations: 0 / 1.028 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.4684, allocations: 342.7 kB / 1.029 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.569e-05/0.4685, allocations: 60 kB / 1.029 GB, free: 8.156 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.4686, allocations: 100.1 kB / 1.029 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.4688, allocations: 72.02 kB / 1.029 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4688, allocations: 224 / 1.029 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000296/0.4691, allocations: 208.1 kB / 1.029 GB, free: 7.77 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.814e-05/0.4692, allocations: 282.9 kB / 1.029 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.4692, allocations: 0 / 1.029 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.4692, allocations: 4 kB / 1.029 GB, free: 7.469 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.4694, allocations: 27.98 kB / 1.029 GB, free: 7.441 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.4694, allocations: 4 kB / 1.029 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.4695, allocations: 27.83 kB / 1.029 GB, free: 7.41 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.4695, allocations: 4 kB / 1.029 GB, free: 7.406 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/0.4695, allocations: 4 kB / 1.029 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002245/0.4698, allocations: 143.8 kB / 1.03 GB, free: 7.262 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-06/0.4698, allocations: 0 / 1.03 GB, free: 7.262 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-06/0.4698, allocations: 0 / 1.03 GB, free: 7.262 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.4699, allocations: 27.94 kB / 1.03 GB, free: 7.234 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.4699, allocations: 3.984 kB / 1.03 GB, free: 7.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.662e-05/0.47, allocations: 15.97 kB / 1.03 GB, free: 7.215 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.47, allocations: 8 kB / 1.03 GB, free: 7.207 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (actSet.y,actAct.y,expMod.mod.conPI.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.102e-05/0.4701, allocations: 107 kB / 1.03 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.832e-05/0.4702, allocations: 31.62 kB / 1.03 GB, free: 7.066 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.19e-05/0.4703, allocations: 26.02 kB / 1.03 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.4703, allocations: 4 kB / 1.03 GB, free: 7.035 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.4703, allocations: 0 / 1.03 GB, free: 7.035 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4703, allocations: 3.984 kB / 1.03 GB, free: 7.031 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003302/0.4706, allocations: 361.8 kB / 1.03 GB, free: 6.641 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4706, allocations: 4 kB / 1.03 GB, free: 6.637 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.4708, allocations: 31.98 kB / 1.03 GB, free: 6.605 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.4708, allocations: 4 kB / 1.03 GB, free: 6.602 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.4708, allocations: 0 / 1.03 GB, free: 6.602 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4708, allocations: 0 / 1.03 GB, free: 6.602 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.4708, allocations: 3.984 kB / 1.03 GB, free: 6.598 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004247/0.4713, allocations: 383 kB / 1.031 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.4714, allocations: 120.7 kB / 1.031 GB, free: 6.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.62e-05/0.4714, allocations: 4 kB / 1.031 GB, free: 6.066 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.4716, allocations: 11.98 kB / 1.031 GB, free: 6.055 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.4716, allocations: 11.98 kB / 1.031 GB, free: 6.043 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.4717, allocations: 4 kB / 1.031 GB, free: 6.039 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001566/0.4718, allocations: 191.2 kB / 1.031 GB, free: 5.852 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003495/0.4722, allocations: 95.58 kB / 1.031 GB, free: 5.758 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (expMod.mod.conPI.I.y,expMod.mod.firOrd.y) * Number of discrete variables: 2 (actSet.y,actAct.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0001145/0.4723, allocations: 111.1 kB / 1.031 GB, free: 5.641 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003714/0.4727, allocations: 244.9 kB / 1.031 GB, free: 5.406 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4727, allocations: 0 / 1.031 GB, free: 5.406 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.4728, allocations: 79.94 kB / 1.031 GB, free: 5.328 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.4732, allocations: 71.22 kB / 1.031 GB, free: 5.262 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008304/0.474, allocations: 393.4 kB / 1.032 GB, free: 4.852 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.4744, allocations: 0.8031 MB / 1.033 GB, free: 4.02 MB / 0.6823 GB Notification: Performance of SimCode: time 2.81e-07/0.4744, allocations: 3.938 kB / 1.033 GB, free: 4.016 MB / 0.6823 GB Notification: Performance of Templates: time 0.006665/0.4811, allocations: 3.853 MB / 1.036 GB, free: 200 kB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches