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.001679/0.001679, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002053/0.002053, allocations: 211.1 kB / 22.24 MB, free: 5.262 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.685/1.685, allocations: 230.6 MB / 256 MB, free: 7.809 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.673/3.673, allocations: 0.5107 GB / 0.8158 GB, free: 17.9 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.002134/0.002134, allocations: 71.62 kB / 1.186 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5412/0.5433, allocations: 181.9 MB / 1.364 GB, free: 13.66 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004047/0.5474, allocations: 1.929 MB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001667/0.549, allocations: 0.7013 MB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.5492, allocations: 7.938 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002884/0.5495, allocations: 79.64 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.5496, allocations: 103.6 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006871/0.5503, allocations: 190.4 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003809/0.5507, allocations: 255.5 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.5509, allocations: 42.19 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.5511, allocations: 123.6 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002627/0.5513, allocations: 151.5 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.55e-05/0.5514, allocations: 20 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.5516, allocations: 87.94 kB / 1.367 GB, free: 9.969 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.5517, allocations: 67.69 kB / 1.367 GB, free: 9.902 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.5518, allocations: 75.55 kB / 1.368 GB, free: 9.828 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004682/0.5523, allocations: 314.8 kB / 1.368 GB, free: 9.52 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.5523, allocations: 0 / 1.368 GB, free: 9.52 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5523, allocations: 0 / 1.368 GB, free: 9.52 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.5523, allocations: 0 / 1.368 GB, free: 9.52 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.000995/0.5533, allocations: 0.518 MB / 1.368 GB, free: 8.965 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.5533, allocations: 12.02 kB / 1.368 GB, free: 8.953 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.025e-05/0.5534, allocations: 28.8 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.554, allocations: 253.1 kB / 1.369 GB, free: 8.656 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.554, allocations: 12.38 kB / 1.369 GB, free: 8.645 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.554, allocations: 12.38 kB / 1.369 GB, free: 8.633 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004886/0.5545, allocations: 308.4 kB / 1.369 GB, free: 8.289 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.5545, allocations: 0 / 1.369 GB, free: 8.289 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.5546, allocations: 4 kB / 1.369 GB, free: 8.285 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.5546, allocations: 4 kB / 1.369 GB, free: 8.281 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003206/0.5549, allocations: 158.1 kB / 1.369 GB, free: 8.121 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009734/0.5559, allocations: 0.583 MB / 1.37 GB, free: 7.5 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004019/0.5563, allocations: 176.2 kB / 1.37 GB, free: 7.312 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.5565, allocations: 126.6 kB / 1.37 GB, free: 7.18 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.5565, allocations: 4 kB / 1.37 GB, free: 7.176 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003596/0.5568, allocations: 206.7 kB / 1.37 GB, free: 6.949 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.5568, allocations: 0 / 1.37 GB, free: 6.949 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0008081/0.5576, allocations: 449.1 kB / 1.371 GB, free: 6.488 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.5577, allocations: 136.5 kB / 1.371 GB, free: 6.324 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.5581, allocations: 261.9 kB / 1.371 GB, free: 6.055 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.373e-05/0.5581, allocations: 33.7 kB / 1.371 GB, free: 6.016 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.5582, allocations: 160.3 kB / 1.371 GB, free: 5.855 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.262e-05/0.5583, allocations: 47.56 kB / 1.371 GB, free: 5.809 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.681e-05/0.5584, allocations: 41.7 kB / 1.371 GB, free: 5.762 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001702/0.5585, allocations: 338.8 kB / 1.372 GB, free: 5.422 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.5587, allocations: 117.7 kB / 1.372 GB, free: 5.301 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002705/0.559, allocations: 218.3 kB / 1.372 GB, free: 5.051 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/0.5594, allocations: 244.2 kB / 1.372 GB, free: 4.789 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.5594, allocations: 4 kB / 1.372 GB, free: 4.785 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005678/0.56, allocations: 382.2 kB / 1.372 GB, free: 4.395 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/0.56, allocations: 37.7 kB / 1.373 GB, free: 4.352 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.56, allocations: 4 kB / 1.373 GB, free: 4.348 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.5601, allocations: 0 / 1.373 GB, free: 4.348 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.5602, allocations: 23.98 kB / 1.373 GB, free: 4.324 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.5602, allocations: 0 / 1.373 GB, free: 4.324 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.5603, allocations: 23.94 kB / 1.373 GB, free: 4.301 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.5603, allocations: 4 kB / 1.373 GB, free: 4.297 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.0002158/0.5605, allocations: 209.2 kB / 1.373 GB, free: 4.078 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.5606, allocations: 23.86 kB / 1.373 GB, free: 4.055 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.385e-05/0.5606, allocations: 29.77 kB / 1.373 GB, free: 4.023 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.5606, allocations: 4 kB / 1.373 GB, free: 4.02 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5607, allocations: 0 / 1.373 GB, free: 4.02 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.5607, allocations: 0 / 1.373 GB, free: 4.02 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002473/0.5609, allocations: 209.1 kB / 1.373 GB, free: 3.785 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.5609, allocations: 0 / 1.373 GB, free: 3.785 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.913e-05/0.561, allocations: 15.98 kB / 1.373 GB, free: 3.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.561, allocations: 4 kB / 1.373 GB, free: 3.766 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/0.561, allocations: 8 kB / 1.373 GB, free: 3.758 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.561, allocations: 0 / 1.373 GB, free: 3.758 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.561, allocations: 0 / 1.373 GB, free: 3.758 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008735/0.5619, allocations: 0.5251 MB / 1.374 GB, free: 3.195 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.564e-05/0.5619, allocations: 15.89 kB / 1.374 GB, free: 3.18 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.562, allocations: 8 kB / 1.374 GB, free: 3.172 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.5621, allocations: 15.98 kB / 1.374 GB, free: 3.156 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.086e-05/0.5622, allocations: 24.02 kB / 1.374 GB, free: 3.133 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.5622, allocations: 8.188 kB / 1.374 GB, free: 3.125 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001961/0.5624, allocations: 193.2 kB / 1.374 GB, free: 2.938 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5624, allocations: 3.938 kB / 1.374 GB, free: 2.934 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000291/0.5627, allocations: 63.88 kB / 1.374 GB, free: 2.871 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.0002278/0.5629, allocations: 133.7 kB / 1.374 GB, free: 2.734 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005638/0.5635, allocations: 330.8 kB / 1.374 GB, free: 2.387 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5635, allocations: 0 / 1.374 GB, free: 2.387 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002545/0.5637, allocations: 189 kB / 1.375 GB, free: 2.184 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.564, allocations: 42.59 kB / 1.375 GB, free: 2.145 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000946/0.565, allocations: 478 kB / 1.375 GB, free: 1.641 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.5652, allocations: 148.5 kB / 1.375 GB, free: 1.48 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.265e-05/0.5652, allocations: 17.42 kB / 1.375 GB, free: 1.465 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.5653, allocations: 19.42 kB / 1.375 GB, free: 1.445 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.5653, allocations: 0 / 1.375 GB, free: 1.445 MB / 1.061 GB Notification: Performance of Templates: time 0.007911/0.5732, allocations: 3.078 MB / 1.378 GB, free: 14.41 MB / 1.076 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/jenkins/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: 10.820791251957417]