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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 113.2 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 193.2 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 222.9 MB / 245.7 MB, free: 4.227 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.954/2.954, allocations: 489.3 MB / 0.7687 GB, free: 3.793 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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=2500,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=2500,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 67.89 kB / 1.103 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9573/0.9593, allocations: 163.8 MB / 1.263 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003191/0.9625, allocations: 1.958 MB / 1.264 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.9637, allocations: 0.7084 MB / 1.265 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.9639, allocations: 6.312 kB / 1.265 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.9641, allocations: 89.3 kB / 1.265 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.9643, allocations: 83.11 kB / 1.265 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000629/0.965, allocations: 198.6 kB / 1.266 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003641/0.9653, allocations: 258.3 kB / 1.266 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.9655, allocations: 65.22 kB / 1.266 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.9657, allocations: 119.5 kB / 1.266 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.9659, allocations: 149.6 kB / 1.266 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.854e-05/0.966, allocations: 24.12 kB / 1.266 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.9662, allocations: 96.56 kB / 1.266 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.838e-05/0.9663, allocations: 60.77 kB / 1.266 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.9664, allocations: 104.8 kB / 1.266 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004786/0.9669, allocations: 312.5 kB / 1.267 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.9669, allocations: 0 / 1.267 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.154e-06/0.9669, allocations: 0 / 1.267 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.9669, allocations: 0.7812 kB / 1.267 GB, free: 5.488 MB / 0.9981 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.0008718/0.9678, allocations: 0.5863 MB / 1.267 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.9678, allocations: 10.59 kB / 1.267 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.687e-05/0.9679, allocations: 30.94 kB / 1.267 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005157/0.9684, allocations: 306.6 kB / 1.268 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.9685, allocations: 14.84 kB / 1.268 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.9685, allocations: 13.59 kB / 1.268 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004204/0.969, allocations: 226.3 kB / 1.268 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.969, allocations: 0 / 1.268 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.969, allocations: 6.438 kB / 1.268 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.969, allocations: 7.562 kB / 1.268 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/0.9693, allocations: 132.8 kB / 1.268 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007944/0.9701, allocations: 0.6741 MB / 1.269 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003927/0.9705, allocations: 172.2 kB / 1.269 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.9707, allocations: 98.83 kB / 1.269 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.9707, allocations: 2.656 kB / 1.269 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/0.971, allocations: 172.4 kB / 1.269 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 1.542e-06/0.971, allocations: 0 / 1.269 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.000765/0.9718, allocations: 381.5 kB / 1.269 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.9718, allocations: 132.9 kB / 1.27 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.9721, allocations: 280.1 kB / 1.27 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.9722, allocations: 28.91 kB / 1.27 GB, free: 3.242 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/0.9723, allocations: 159.8 kB / 1.27 GB, free: 3.105 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.902e-05/0.9723, allocations: 45.36 kB / 1.27 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.22e-05/0.9724, allocations: 41.22 kB / 1.27 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.686e-05/0.9725, allocations: 338.5 kB / 1.27 GB, free: 2.719 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.9726, allocations: 86.11 kB / 1.27 GB, free: 2.695 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.9729, allocations: 138.8 kB / 1.271 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.9732, allocations: 237.8 kB / 1.271 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.9732, allocations: 0.6094 kB / 1.271 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005577/0.9738, allocations: 343.7 kB / 1.271 GB, free: 2.324 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.9738, allocations: 35.78 kB / 1.271 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.9738, allocations: 4.938 kB / 1.271 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.9739, allocations: 2.844 kB / 1.271 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.974, allocations: 20.12 kB / 1.271 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.974, allocations: 1.75 kB / 1.271 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.9741, allocations: 30.81 kB / 1.271 GB, free: 2.273 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.9742, allocations: 5.5 kB / 1.271 GB, free: 2.273 MB / 0.9981 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.0001634/0.9743, allocations: 208.6 kB / 1.271 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.821e-05/0.9744, allocations: 29.31 kB / 1.271 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.927e-05/0.9745, allocations: 34.2 kB / 1.272 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.9745, allocations: 1.844 kB / 1.272 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.9745, allocations: 0 / 1.272 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.9745, allocations: 0.7969 kB / 1.272 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002527/0.9747, allocations: 290.3 kB / 1.272 GB, free: 1.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.9747, allocations: 0 / 1.272 GB, free: 1.82 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.9749, allocations: 17.86 kB / 1.272 GB, free: 1.82 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.9749, allocations: 5 kB / 1.272 GB, free: 1.816 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.9749, allocations: 6.875 kB / 1.272 GB, free: 1.812 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.9749, allocations: 0.6562 kB / 1.272 GB, free: 1.812 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9749, allocations: 3.938 kB / 1.272 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007899/0.9757, allocations: 471.7 kB / 1.272 GB, free: 1.598 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.284e-05/0.9758, allocations: 95.59 kB / 1.272 GB, free: 1.492 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.9758, allocations: 12.89 kB / 1.272 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.9759, allocations: 14.72 kB / 1.272 GB, free: 1.48 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.976, allocations: 25.55 kB / 1.272 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.976, allocations: 4 kB / 1.272 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000191/0.9762, allocations: 203.9 kB / 1.273 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7.92e-07/0.9762, allocations: 0 / 1.273 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003235/0.9766, allocations: 60.22 kB / 1.273 GB, free: 1.352 MB / 0.9981 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.0001919/0.9768, allocations: 140.1 kB / 1.273 GB, free: 1.25 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005079/0.9773, allocations: 289.4 kB / 1.273 GB, free: 1.113 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.9773, allocations: 0.75 kB / 1.273 GB, free: 1.113 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.9775, allocations: 192.9 kB / 1.273 GB, free: 1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.9778, allocations: 39.08 kB / 1.273 GB, free: 0.9805 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009972/0.9788, allocations: 0.5117 MB / 1.274 GB, free: 0.6719 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.9791, allocations: 0.7537 MB / 1.275 GB, free: 15.97 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.133e-05/0.9792, allocations: 22.47 kB / 1.275 GB, free: 15.96 MB / 1.014 GB Notification: Performance of SimCode: time 2.4e-07/0.9792, allocations: 0 / 1.275 GB, free: 15.96 MB / 1.014 GB Notification: Performance of Templates: time 0.006286/0.9855, allocations: 3.015 MB / 1.277 GB, free: 15.62 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.855165520915762]