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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 110.8 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 185.6 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.643/2.643, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002172/0.002172, allocations: 68.34 kB / 1.055 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9442/0.9464, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004205/0.9506, allocations: 1.952 MB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001472/0.9521, allocations: 0.709 MB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.9524, allocations: 4 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002849/0.9527, allocations: 83.62 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001986/0.9529, allocations: 99.56 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007228/0.9536, allocations: 183 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.9541, allocations: 259.4 kB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.9543, allocations: 73.69 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003176/0.9546, allocations: 123.6 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.9549, allocations: 147.5 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.006e-05/0.9549, allocations: 20 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.9551, allocations: 91.92 kB / 1.212 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.602e-05/0.9552, allocations: 59.78 kB / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.9554, allocations: 107.3 kB / 1.212 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004613/0.9558, allocations: 307 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.9559, allocations: 4 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.635e-06/0.9559, allocations: 4 kB / 1.212 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.287e-05/0.9559, allocations: 0 / 1.212 GB, free: 9.449 MB / 0.9356 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.001092/0.957, allocations: 0.572 MB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.957, allocations: 12.03 kB / 1.213 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.257e-05/0.9571, allocations: 32.56 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006438/0.9578, allocations: 302.9 kB / 1.213 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.9578, allocations: 16.31 kB / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.9579, allocations: 12.38 kB / 1.213 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005411/0.9584, allocations: 231.8 kB / 1.214 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.9585, allocations: 0 / 1.214 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.9585, allocations: 4 kB / 1.214 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.9585, allocations: 4 kB / 1.214 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002781/0.9588, allocations: 132.3 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000956/0.9597, allocations: 0.6807 MB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003901/0.9601, allocations: 170.5 kB / 1.215 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/0.9604, allocations: 100.9 kB / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.9604, allocations: 3.984 kB / 1.215 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002842/0.9607, allocations: 169.1 kB / 1.215 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.9607, allocations: 4 kB / 1.215 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15): time 0.0007077/0.9614, allocations: 374 kB / 1.215 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.204e-05/0.9615, allocations: 136.6 kB / 1.215 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003496/0.9619, allocations: 282.6 kB / 1.216 GB, free: 6 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.9619, allocations: 37.69 kB / 1.216 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.962, allocations: 152.3 kB / 1.216 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.9621, allocations: 51.28 kB / 1.216 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.524e-05/0.9622, allocations: 41.7 kB / 1.216 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.9623, allocations: 334.8 kB / 1.216 GB, free: 5.371 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.9625, allocations: 87.91 kB / 1.216 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.9627, allocations: 133.2 kB / 1.216 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/0.9631, allocations: 248.2 kB / 1.217 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.9631, allocations: 0 / 1.217 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005302/0.9636, allocations: 332.8 kB / 1.217 GB, free: 4.535 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.834e-05/0.9637, allocations: 33.7 kB / 1.217 GB, free: 4.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.9637, allocations: 4 kB / 1.217 GB, free: 4.492 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.9637, allocations: 0 / 1.217 GB, free: 4.492 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.9639, allocations: 24.02 kB / 1.217 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.9639, allocations: 8 kB / 1.217 GB, free: 4.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.964, allocations: 27.83 kB / 1.217 GB, free: 4.434 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.964, allocations: 7.984 kB / 1.217 GB, free: 4.426 MB / 0.9356 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001891/0.9642, allocations: 195.3 kB / 1.217 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.46e-05/0.9643, allocations: 27.72 kB / 1.217 GB, free: 4.191 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.982e-05/0.9644, allocations: 29.83 kB / 1.217 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.9644, allocations: 7.938 kB / 1.217 GB, free: 4.152 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.9644, allocations: 4 kB / 1.217 GB, free: 4.148 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.9644, allocations: 0 / 1.217 GB, free: 4.148 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003428/0.9647, allocations: 289.4 kB / 1.218 GB, free: 3.816 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.9647, allocations: 0 / 1.218 GB, free: 3.816 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.9649, allocations: 15.98 kB / 1.218 GB, free: 3.801 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.9649, allocations: 0 / 1.218 GB, free: 3.801 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.9649, allocations: 8 kB / 1.218 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.9649, allocations: 3.984 kB / 1.218 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.9649, allocations: 0 / 1.218 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007715/0.9657, allocations: 474.2 kB / 1.218 GB, free: 3.301 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.604e-05/0.9658, allocations: 92.86 kB / 1.218 GB, free: 3.191 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.9658, allocations: 11.98 kB / 1.218 GB, free: 3.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.9659, allocations: 11.98 kB / 1.218 GB, free: 3.168 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.351e-05/0.966, allocations: 27.97 kB / 1.218 GB, free: 3.141 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.966, allocations: 4 kB / 1.218 GB, free: 3.137 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001914/0.9662, allocations: 210 kB / 1.218 GB, free: 2.938 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9662, allocations: 0 / 1.218 GB, free: 2.938 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002981/0.9665, allocations: 55.91 kB / 1.218 GB, free: 2.883 MB / 0.9356 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002576/0.9668, allocations: 135.1 kB / 1.219 GB, free: 2.742 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004917/0.9673, allocations: 291.3 kB / 1.219 GB, free: 2.445 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.9673, allocations: 4.188 kB / 1.219 GB, free: 2.441 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.9677, allocations: 183.3 kB / 1.219 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.968, allocations: 36.47 kB / 1.219 GB, free: 2.215 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.9691, allocations: 0.4987 MB / 1.22 GB, free: 1.68 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.9695, allocations: 0.7475 MB / 1.22 GB, free: 0.9062 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.778e-05/0.9696, allocations: 23.38 kB / 1.22 GB, free: 0.8828 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.9696, allocations: 0 / 1.22 GB, free: 0.8828 MB / 0.9356 GB Notification: Performance of Templates: time 0.006359/0.9759, allocations: 3.031 MB / 1.223 GB, free: 13.86 MB / 0.9512 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches