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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 216.5 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.502/1.502, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.352/3.352, allocations: 0.5107 GB / 0.8166 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 68.53 kB / 1.187 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3626, allocations: 181.9 MB / 1.365 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003534/0.3662, allocations: 1.929 MB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.3676, allocations: 0.6858 MB / 1.367 GB, free: 10.95 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.3677, allocations: 7.938 kB / 1.367 GB, free: 10.95 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.368, allocations: 91.62 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.3681, allocations: 91.62 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.3687, allocations: 190.2 kB / 1.368 GB, free: 10.58 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003266/0.369, allocations: 259.5 kB / 1.368 GB, free: 10.33 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.3692, allocations: 52.83 kB / 1.368 GB, free: 10.27 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.3694, allocations: 119.6 kB / 1.368 GB, free: 10.16 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.3696, allocations: 147.5 kB / 1.368 GB, free: 10.01 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.958e-05/0.3696, allocations: 20 kB / 1.368 GB, free: 9.992 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.3698, allocations: 83.94 kB / 1.368 GB, free: 9.91 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.387e-05/0.3699, allocations: 63.7 kB / 1.368 GB, free: 9.848 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.37, allocations: 83.53 kB / 1.368 GB, free: 9.766 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004102/0.3704, allocations: 314.7 kB / 1.369 GB, free: 9.457 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3704, allocations: 4 kB / 1.369 GB, free: 9.453 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3704, allocations: 0 / 1.369 GB, free: 9.453 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3704, allocations: 4 kB / 1.369 GB, free: 9.449 MB / 1.061 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.0008924/0.3713, allocations: 0.5102 MB / 1.369 GB, free: 8.902 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.3714, allocations: 12.03 kB / 1.369 GB, free: 8.891 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.738e-05/0.3714, allocations: 24.8 kB / 1.369 GB, free: 8.867 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005189/0.3719, allocations: 253.2 kB / 1.369 GB, free: 8.598 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.372, allocations: 12.38 kB / 1.369 GB, free: 8.586 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.372, allocations: 12.38 kB / 1.369 GB, free: 8.574 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004716/0.3725, allocations: 316.3 kB / 1.37 GB, free: 8.223 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.3725, allocations: 0 / 1.37 GB, free: 8.223 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.3725, allocations: 0 / 1.37 GB, free: 8.223 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.3725, allocations: 4 kB / 1.37 GB, free: 8.219 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000284/0.3728, allocations: 162.1 kB / 1.37 GB, free: 8.055 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008272/0.3736, allocations: 0.5791 MB / 1.37 GB, free: 7.438 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.374, allocations: 188.2 kB / 1.371 GB, free: 7.238 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.3742, allocations: 122.6 kB / 1.371 GB, free: 7.109 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.3742, allocations: 8.031 kB / 1.371 GB, free: 7.102 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.3745, allocations: 198.7 kB / 1.371 GB, free: 6.883 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.3745, allocations: 0 / 1.371 GB, free: 6.883 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0007674/0.3753, allocations: 442.3 kB / 1.371 GB, free: 6.426 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.3754, allocations: 140.5 kB / 1.371 GB, free: 6.258 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.3757, allocations: 265.9 kB / 1.372 GB, free: 5.984 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.3757, allocations: 33.69 kB / 1.372 GB, free: 5.945 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.3759, allocations: 156.3 kB / 1.372 GB, free: 5.789 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.825e-05/0.3759, allocations: 55.58 kB / 1.372 GB, free: 5.734 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.236e-05/0.376, allocations: 37.7 kB / 1.372 GB, free: 5.691 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.3762, allocations: 334.8 kB / 1.372 GB, free: 5.355 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.3764, allocations: 117.7 kB / 1.372 GB, free: 5.234 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.3766, allocations: 215.2 kB / 1.373 GB, free: 4.988 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.377, allocations: 252.8 kB / 1.373 GB, free: 4.719 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.377, allocations: 0 / 1.373 GB, free: 4.719 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005818/0.3776, allocations: 384.7 kB / 1.373 GB, free: 4.324 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.3776, allocations: 33.7 kB / 1.373 GB, free: 4.285 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3776, allocations: 0 / 1.373 GB, free: 4.285 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.3776, allocations: 0 / 1.373 GB, free: 4.285 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.3778, allocations: 23.98 kB / 1.373 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.3778, allocations: 3.984 kB / 1.373 GB, free: 4.258 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.3779, allocations: 28.03 kB / 1.373 GB, free: 4.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.3779, allocations: 4 kB / 1.373 GB, free: 4.227 MB / 1.061 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.0002031/0.3781, allocations: 198 kB / 1.374 GB, free: 4.02 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.29e-05/0.3782, allocations: 27.84 kB / 1.374 GB, free: 3.992 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.627e-05/0.3782, allocations: 29.78 kB / 1.374 GB, free: 3.961 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.3782, allocations: 0 / 1.374 GB, free: 3.961 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3782, allocations: 0 / 1.374 GB, free: 3.961 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3782, allocations: 3.984 kB / 1.374 GB, free: 3.957 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.3785, allocations: 205.1 kB / 1.374 GB, free: 3.727 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.3785, allocations: 0 / 1.374 GB, free: 3.727 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.3786, allocations: 15.98 kB / 1.374 GB, free: 3.711 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3786, allocations: 0 / 1.374 GB, free: 3.711 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.3786, allocations: 8 kB / 1.374 GB, free: 3.703 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3786, allocations: 3.984 kB / 1.374 GB, free: 3.699 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3786, allocations: 3.938 kB / 1.374 GB, free: 3.695 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008241/0.3794, allocations: 0.5277 MB / 1.374 GB, free: 3.133 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.822e-05/0.3795, allocations: 20.05 kB / 1.374 GB, free: 3.113 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.3795, allocations: 15.94 kB / 1.374 GB, free: 3.098 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.3796, allocations: 15.98 kB / 1.374 GB, free: 3.082 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.939e-05/0.3797, allocations: 27.94 kB / 1.374 GB, free: 3.055 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.3797, allocations: 8 kB / 1.374 GB, free: 3.047 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002034/0.3799, allocations: 197.2 kB / 1.375 GB, free: 2.855 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.3799, allocations: 0 / 1.375 GB, free: 2.855 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002912/0.3802, allocations: 55.89 kB / 1.375 GB, free: 2.801 MB / 1.061 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.0001989/0.3804, allocations: 139.1 kB / 1.375 GB, free: 2.656 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005397/0.3809, allocations: 322.6 kB / 1.375 GB, free: 2.316 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3809, allocations: 0 / 1.375 GB, free: 2.316 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.3812, allocations: 189 kB / 1.375 GB, free: 2.113 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.3815, allocations: 44.75 kB / 1.375 GB, free: 2.074 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008908/0.3824, allocations: 0.4983 MB / 1.376 GB, free: 1.535 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/0.3825, allocations: 148.5 kB / 1.376 GB, free: 1.375 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.55e-05/0.3826, allocations: 19.44 kB / 1.376 GB, free: 1.355 MB / 1.061 GB Notification: Performance of SimCode: time 4.11e-07/0.3826, allocations: 4 kB / 1.376 GB, free: 1.352 MB / 1.061 GB Notification: Performance of Templates: time 0.005592/0.3882, allocations: 3.022 MB / 1.379 GB, free: 14.34 MB / 1.076 GB " [Timeout remaining time 300] 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/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.799457436893135]