Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [: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 9.1.1-maint.9.1.x/package.mo): time 1.891/1.891, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001031/0.001031, allocations: 181.3 kB / 487 MB, free: 5.359 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.248/1.248, allocations: 221.3 MB / 0.7819 GB, free: 1.34 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 99.48 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.442e-06/6.472e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2335, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.616/0.8496, allocations: 151.5 MB / 1.353 GB, free: 15.76 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.8498, allocations: 81.52 kB / 1.353 GB, free: 15.76 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01696/0.8668, allocations: 5.549 MB / 1.359 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.923e-05/0.8669, allocations: 8.344 kB / 1.359 GB, free: 15.38 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007788/0.8677, allocations: 0.5539 MB / 1.359 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.8677, allocations: 12.91 kB / 1.359 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.615e-05/0.8678, allocations: 27.03 kB / 1.359 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005293/0.8683, allocations: 287.3 kB / 1.36 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.8684, allocations: 9.406 kB / 1.36 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.989e-05/0.8684, allocations: 12.25 kB / 1.36 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003006/0.8687, allocations: 125 kB / 1.36 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.8691, allocations: 225.9 kB / 1.36 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.8691, allocations: 3.906 kB / 1.36 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.534e-05/0.8692, allocations: 4.656 kB / 1.36 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.8692, allocations: 4 kB / 1.36 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008588/0.87, allocations: 0.7015 MB / 1.361 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.8702, allocations: 151.5 kB / 1.361 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.8704, allocations: 102 kB / 1.361 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.8704, allocations: 0 / 1.361 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.8706, allocations: 187.3 kB / 1.361 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.8706, allocations: 0 / 1.361 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.0003836/0.871, allocations: 226.5 kB / 1.361 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.871, allocations: 136.5 kB / 1.361 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.8712, allocations: 226.8 kB / 1.362 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.8712, allocations: 26.45 kB / 1.362 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.36e-05/0.8713, allocations: 127.5 kB / 1.362 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.8713, allocations: 45.98 kB / 1.362 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.255e-05/0.8714, allocations: 0 / 1.362 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.363e-05/0.8714, allocations: 341.2 kB / 1.362 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.8715, allocations: 86.2 kB / 1.362 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.8717, allocations: 138.9 kB / 1.362 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.8718, allocations: 93.27 kB / 1.362 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.8718, allocations: 4.031 kB / 1.362 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003373/0.8722, allocations: 261.7 kB / 1.363 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.889e-06/0.8722, allocations: 8 kB / 1.363 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.8722, allocations: 0 / 1.363 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.8722, allocations: 0.7031 kB / 1.363 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.8724, allocations: 28.03 kB / 1.363 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.8724, allocations: 4.641 kB / 1.363 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.8726, allocations: 42.36 kB / 1.363 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.946e-05/0.8726, allocations: 12.61 kB / 1.363 GB, free: 12.2 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 8.963e-05/0.8727, allocations: 145.7 kB / 1.363 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.455e-05/0.8727, allocations: 27.62 kB / 1.363 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.987e-05/0.8728, allocations: 24.36 kB / 1.363 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.8728, allocations: 4.797 kB / 1.363 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.8728, allocations: 0 / 1.363 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.8728, allocations: 0.5156 kB / 1.363 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.873, allocations: 269.8 kB / 1.363 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.873, allocations: 0.5156 kB / 1.363 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.8732, allocations: 27.78 kB / 1.363 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.8732, allocations: 7.938 kB / 1.363 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.8732, allocations: 5.359 kB / 1.363 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.8732, allocations: 0 / 1.363 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.8732, allocations: 0.6094 kB / 1.363 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004988/0.8737, allocations: 414.8 kB / 1.364 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.406e-05/0.8738, allocations: 93.91 kB / 1.364 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.8738, allocations: 11.7 kB / 1.364 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.874, allocations: 34.53 kB / 1.364 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.8741, allocations: 28.53 kB / 1.364 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.8741, allocations: 9.312 kB / 1.364 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001201/0.8742, allocations: 188.4 kB / 1.364 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002768/0.8745, allocations: 57.33 kB / 1.364 GB, free: 11.1 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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.0002033/0.8747, allocations: 138.1 kB / 1.364 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002682/0.875, allocations: 212.1 kB / 1.364 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.875, allocations: 0 / 1.364 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.8752, allocations: 147.2 kB / 1.365 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.8754, allocations: 23.44 kB / 1.365 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007921/0.8762, allocations: 352.4 kB / 1.365 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.8765, allocations: 0.7737 MB / 1.366 GB, free: 9.648 MB / 0.8073 GB Notification: Performance of SimCode: time 2.3e-07/0.8765, allocations: 0 / 1.366 GB, free: 9.648 MB / 0.8073 GB Notification: Performance of Templates: time 0.005174/0.8817, allocations: 2.513 MB / 1.368 GB, free: 7.637 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches