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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.415/1.415, allocations: 249.3 MB / 261.8 MB, free: 5.891 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.0009934/0.0009934, allocations: 186.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.0008519/0.0008519, allocations: 90.55 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.801e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1715, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5776/0.7491, allocations: 134.8 MB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.7494, allocations: 85.75 kB / 1.024 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01629/0.7657, allocations: 5.829 MB / 1.029 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7657, allocations: 4 kB / 1.029 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.923e-05/0.7658, allocations: 4 kB / 1.029 GB, free: 10.9 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.0008122/0.7666, allocations: 0.5403 MB / 1.03 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.7666, allocations: 12.03 kB / 1.03 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.686e-05/0.7667, allocations: 27.62 kB / 1.03 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.7672, allocations: 291.2 kB / 1.03 GB, free: 9.992 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.7672, allocations: 11.5 kB / 1.03 GB, free: 9.984 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.935e-05/0.7673, allocations: 15 kB / 1.03 GB, free: 9.977 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003914/0.7677, allocations: 247.4 kB / 1.03 GB, free: 9.758 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.7677, allocations: 3.938 kB / 1.03 GB, free: 9.754 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.7677, allocations: 3.312 kB / 1.03 GB, free: 9.754 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.7677, allocations: 4 kB / 1.03 GB, free: 9.75 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.768, allocations: 143.2 kB / 1.03 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.769, allocations: 0.7415 MB / 1.031 GB, free: 8.953 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.7693, allocations: 159.7 kB / 1.031 GB, free: 8.832 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.7694, allocations: 104.5 kB / 1.031 GB, free: 8.758 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.7694, allocations: 0 / 1.031 GB, free: 8.758 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.7697, allocations: 192.9 kB / 1.032 GB, free: 8.582 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 2.074e-06/0.7697, allocations: 3.938 kB / 1.032 GB, free: 8.578 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0005672/0.7703, allocations: 342 kB / 1.032 GB, free: 8.285 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.7704, allocations: 132.5 kB / 1.032 GB, free: 8.125 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/0.7706, allocations: 244.5 kB / 1.032 GB, free: 7.918 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.7707, allocations: 33.2 kB / 1.032 GB, free: 7.883 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.578e-05/0.7708, allocations: 153.5 kB / 1.033 GB, free: 7.766 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.7708, allocations: 45.2 kB / 1.033 GB, free: 7.727 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.177e-05/0.7708, allocations: 3.812 kB / 1.033 GB, free: 7.727 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.771, allocations: 341.8 kB / 1.033 GB, free: 7.391 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.7711, allocations: 100.8 kB / 1.033 GB, free: 7.316 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.7713, allocations: 141.4 kB / 1.033 GB, free: 7.191 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.7714, allocations: 124 kB / 1.033 GB, free: 7.09 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.7714, allocations: 0 / 1.033 GB, free: 7.09 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005182/0.772, allocations: 380.3 kB / 1.034 GB, free: 6.77 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.244e-05/0.772, allocations: 33.7 kB / 1.034 GB, free: 6.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.772, allocations: 0 / 1.034 GB, free: 6.73 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.7721, allocations: 3.984 kB / 1.034 GB, free: 6.727 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.7722, allocations: 36.02 kB / 1.034 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.7722, allocations: 0 / 1.034 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.7724, allocations: 43.58 kB / 1.034 GB, free: 6.652 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.7725, allocations: 11.38 kB / 1.034 GB, free: 6.645 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 0.0001187/0.7726, allocations: 154 kB / 1.034 GB, free: 6.484 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.7726, allocations: 27.67 kB / 1.034 GB, free: 6.457 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.739e-05/0.7727, allocations: 32.52 kB / 1.034 GB, free: 6.438 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.7727, allocations: 0 / 1.034 GB, free: 6.438 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7727, allocations: 0 / 1.034 GB, free: 6.438 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.7727, allocations: 0 / 1.034 GB, free: 6.438 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002535/0.773, allocations: 301.9 kB / 1.034 GB, free: 6.141 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.773, allocations: 0 / 1.034 GB, free: 6.141 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.7731, allocations: 20.08 kB / 1.034 GB, free: 6.121 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.7731, allocations: 11.89 kB / 1.034 GB, free: 6.109 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.7732, allocations: 11.42 kB / 1.034 GB, free: 6.102 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.7732, allocations: 4 kB / 1.034 GB, free: 6.098 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7732, allocations: 0 / 1.034 GB, free: 6.098 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008542/0.774, allocations: 0.5188 MB / 1.035 GB, free: 5.66 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.937e-05/0.7741, allocations: 92.83 kB / 1.035 GB, free: 5.551 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/0.7742, allocations: 11.02 kB / 1.035 GB, free: 5.543 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.7744, allocations: 36.03 kB / 1.035 GB, free: 5.508 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.681e-05/0.7745, allocations: 27.64 kB / 1.035 GB, free: 5.484 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.7745, allocations: 15.42 kB / 1.035 GB, free: 5.473 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002073/0.7747, allocations: 199.2 kB / 1.035 GB, free: 5.309 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7747, allocations: 0 / 1.035 GB, free: 5.309 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003175/0.7751, allocations: 66.53 kB / 1.035 GB, free: 5.246 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.0002608/0.7753, allocations: 144 kB / 1.035 GB, free: 5.102 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003886/0.7757, allocations: 284 kB / 1.036 GB, free: 4.887 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7757, allocations: 0 / 1.036 GB, free: 4.887 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.7759, allocations: 169.4 kB / 1.036 GB, free: 4.75 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.7762, allocations: 27.48 kB / 1.036 GB, free: 4.73 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000836/0.7771, allocations: 360.4 kB / 1.036 GB, free: 4.398 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.7774, allocations: 0.7633 MB / 1.037 GB, free: 3.613 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.85e-05/0.7775, allocations: 13.2 kB / 1.037 GB, free: 3.602 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.293e-05/0.7776, allocations: 15.44 kB / 1.037 GB, free: 3.586 MB / 0.6511 GB Notification: Performance of SimCode: time 5.01e-07/0.7776, allocations: 0 / 1.037 GB, free: 3.586 MB / 0.6511 GB Notification: Performance of Templates: time 0.005877/0.7835, allocations: 2.517 MB / 1.039 GB, free: 1.102 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