Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.972/1.972, allocations: 390.4 MB / 397.7 MB, free: 11.16 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.001075/0.001075, allocations: 184.6 kB / 490.8 MB, free: 1.875 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.332/1.332, allocations: 221.3 MB / 0.7863 GB, free: 13.6 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.0009882/0.0009882, allocations: 98.11 kB / 0.9264 GB, free: 14.12 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.342e-06/6.372e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2345, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6182/0.8528, allocations: 152.3 MB / 1.36 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.8531, allocations: 84.98 kB / 1.36 GB, free: 17.49 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01689/0.87, allocations: 5.557 MB / 1.366 GB, free: 17.11 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.295e-05/0.8701, allocations: 3.906 kB / 1.366 GB, free: 17.11 MB / 0.823 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.001006/0.8711, allocations: 0.5501 MB / 1.366 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.8712, allocations: 9.594 kB / 1.366 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.8714, allocations: 29.97 kB / 1.366 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006399/0.872, allocations: 289 kB / 1.367 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.872, allocations: 8.844 kB / 1.367 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.597e-05/0.8721, allocations: 13.22 kB / 1.367 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000354/0.8725, allocations: 132.7 kB / 1.367 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.8729, allocations: 213.1 kB / 1.367 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.8729, allocations: 2.719 kB / 1.367 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.8729, allocations: 1.5 kB / 1.367 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.8729, allocations: 6 kB / 1.367 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.8741, allocations: 0.7015 MB / 1.368 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.8744, allocations: 148 kB / 1.368 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.8746, allocations: 101.5 kB / 1.368 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.8746, allocations: 6.344 kB / 1.368 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002144/0.8748, allocations: 176.6 kB / 1.368 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.984e-06/0.8748, allocations: 0 / 1.368 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0004761/0.8753, allocations: 231.8 kB / 1.368 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.8753, allocations: 132 kB / 1.369 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.8756, allocations: 228.3 kB / 1.369 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/0.8757, allocations: 28.45 kB / 1.369 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.8758, allocations: 131.7 kB / 1.369 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.8758, allocations: 41.53 kB / 1.369 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.274e-05/0.8759, allocations: 7.938 kB / 1.369 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.876, allocations: 334.2 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.8761, allocations: 93.05 kB / 1.369 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.8763, allocations: 130.9 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.8765, allocations: 94.25 kB / 1.37 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.8765, allocations: 96 / 1.37 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004602/0.8769, allocations: 264.3 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.877, allocations: 5.531 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.877, allocations: 0.9688 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.877, allocations: 2.375 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.8772, allocations: 35.12 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.8772, allocations: 5.125 kB / 1.37 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.8774, allocations: 46.72 kB / 1.37 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4e-05/0.8775, allocations: 13.62 kB / 1.37 GB, free: 30.86 MB / 0.8386 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 0.0001383/0.8776, allocations: 145.8 kB / 1.37 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.796e-05/0.8777, allocations: 29.59 kB / 1.37 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.079e-05/0.8777, allocations: 29.06 kB / 1.37 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.8777, allocations: 2 kB / 1.37 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.8777, allocations: 0 / 1.37 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.8777, allocations: 1.453 kB / 1.37 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002316/0.878, allocations: 261.8 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.878, allocations: 4 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.8781, allocations: 21.91 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.8781, allocations: 1.219 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.8782, allocations: 5.078 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.8782, allocations: 0 / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.8782, allocations: 0 / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005856/0.8788, allocations: 420.8 kB / 1.371 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/0.8788, allocations: 96.19 kB / 1.371 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.511e-05/0.8789, allocations: 7.156 kB / 1.371 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.8791, allocations: 39.31 kB / 1.371 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.162e-05/0.8792, allocations: 26.02 kB / 1.371 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.8792, allocations: 9.172 kB / 1.371 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001756/0.8794, allocations: 179.5 kB / 1.371 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003751/0.8798, allocations: 56.14 kB / 1.371 GB, free: 30.23 MB / 0.8386 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.0002592/0.88, allocations: 145.5 kB / 1.371 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003147/0.8804, allocations: 211.1 kB / 1.372 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8804, allocations: 0 / 1.372 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.8805, allocations: 146.8 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.8808, allocations: 31.62 kB / 1.372 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009057/0.8817, allocations: 350.8 kB / 1.372 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004497/0.8822, allocations: 0.7727 MB / 1.373 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/0.8822, allocations: 0 / 1.373 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of Templates: time 0.007356/0.8896, allocations: 2.522 MB / 1.375 GB, free: 29.03 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches