Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.177/1.177, allocations: 249.4 MB / 256.7 MB, free: 6.914 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.0009609/0.0009609, allocations: 176.4 kB / 316 MB, free: 3.516 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.029/1.029, allocations: 205.1 MB / 0.5667 GB, free: 15.55 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.0008135/0.0008135, allocations: 86.77 kB / 0.671 GB, free: 4.684 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.701e-06/5.721e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1312, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3887/0.52, allocations: 135.1 MB / 1.017 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/0.5202, allocations: 82.06 kB / 1.017 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01485/0.535, allocations: 5.498 MB / 1.022 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.251e-05/0.5351, allocations: 4 kB / 1.022 GB, free: 15.15 MB / 0.6511 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.0006613/0.5357, allocations: 0.5469 MB / 1.022 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.5358, allocations: 12.03 kB / 1.023 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.647e-05/0.5358, allocations: 35.61 kB / 1.023 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.5363, allocations: 295.8 kB / 1.023 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.5363, allocations: 7.938 kB / 1.023 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.5364, allocations: 12 kB / 1.023 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002132/0.5366, allocations: 125.2 kB / 1.023 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/0.5369, allocations: 227.2 kB / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.5369, allocations: 0 / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.5369, allocations: 4 kB / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.5369, allocations: 0 / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008453/0.5378, allocations: 0.6997 MB / 1.024 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.538, allocations: 149.2 kB / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.5381, allocations: 104.8 kB / 1.024 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.5381, allocations: 0 / 1.024 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.5383, allocations: 181.7 kB / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.5383, allocations: 0 / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0003749/0.5387, allocations: 237.8 kB / 1.025 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.5388, allocations: 136 kB / 1.025 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.5389, allocations: 224.5 kB / 1.025 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.539, allocations: 29.14 kB / 1.025 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.667e-05/0.539, allocations: 126.8 kB / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.915e-05/0.5391, allocations: 45.92 kB / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/0.5391, allocations: 0 / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.93e-05/0.5392, allocations: 338.1 kB / 1.025 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.5393, allocations: 84.28 kB / 1.025 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.5395, allocations: 142.8 kB / 1.026 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.5396, allocations: 88.45 kB / 1.026 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5396, allocations: 0 / 1.026 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003417/0.54, allocations: 270.8 kB / 1.026 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.54, allocations: 8.078 kB / 1.026 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.54, allocations: 7.938 kB / 1.026 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.54, allocations: 0 / 1.026 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.5402, allocations: 31.92 kB / 1.026 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.5402, allocations: 3.938 kB / 1.026 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.5403, allocations: 43.88 kB / 1.026 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.5404, allocations: 14.94 kB / 1.026 GB, free: 11.25 MB / 0.6511 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 9.437e-05/0.5405, allocations: 142.1 kB / 1.026 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.5405, allocations: 23.72 kB / 1.026 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.146e-05/0.5406, allocations: 25.08 kB / 1.026 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.5406, allocations: 4 kB / 1.026 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.5406, allocations: 0 / 1.026 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.5406, allocations: 0 / 1.026 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.5408, allocations: 266.3 kB / 1.026 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.5408, allocations: 0 / 1.026 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.5409, allocations: 27.92 kB / 1.026 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.5409, allocations: 0 / 1.026 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.5409, allocations: 11.92 kB / 1.027 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.541, allocations: 4 kB / 1.027 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.541, allocations: 3.906 kB / 1.027 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004924/0.5415, allocations: 403.1 kB / 1.027 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.448e-05/0.5415, allocations: 100.8 kB / 1.027 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.623e-05/0.5416, allocations: 7.625 kB / 1.027 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.5417, allocations: 36.03 kB / 1.027 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.389e-05/0.5418, allocations: 23.39 kB / 1.027 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.5419, allocations: 15.44 kB / 1.027 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001343/0.542, allocations: 184.1 kB / 1.027 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002437/0.5423, allocations: 55.94 kB / 1.027 GB, free: 10.04 MB / 0.6511 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.0001773/0.5424, allocations: 144.5 kB / 1.027 GB, free: 9.891 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002588/0.5427, allocations: 208.4 kB / 1.028 GB, free: 9.734 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5427, allocations: 0 / 1.028 GB, free: 9.734 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.5428, allocations: 143.4 kB / 1.028 GB, free: 9.629 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.5431, allocations: 27.17 kB / 1.028 GB, free: 9.609 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007257/0.5438, allocations: 342.4 kB / 1.028 GB, free: 9.289 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002838/0.5441, allocations: 0.7741 MB / 1.029 GB, free: 8.492 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/0.5441, allocations: 3.938 kB / 1.029 GB, free: 8.488 MB / 0.6511 GB Notification: Performance of Templates: time 0.004739/0.5488, allocations: 2.517 MB / 1.031 GB, free: 5.996 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches