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.001864/0.001864, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002464/0.002464, allocations: 217.5 kB / 23.01 MB, free: 4.609 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.456/1.456, allocations: 230.6 MB / 256.8 MB, free: 8 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.188/3.188, allocations: 0.505 GB / 0.8108 GB, free: 22.01 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.002297/0.002297, allocations: 61.45 kB / 1.178 GB, free: 16.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3537, allocations: 180.2 MB / 1.354 GB, free: 7.934 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003888/0.3576, allocations: 2.01 MB / 1.356 GB, free: 5.91 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001564/0.3592, allocations: 0.7447 MB / 1.357 GB, free: 5.16 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.3593, allocations: 11.94 kB / 1.357 GB, free: 5.148 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0002627/0.3596, allocations: 83.64 kB / 1.357 GB, free: 5.066 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.3597, allocations: 91.62 kB / 1.357 GB, free: 4.977 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000597/0.3603, allocations: 186.7 kB / 1.357 GB, free: 4.797 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003445/0.3607, allocations: 263.4 kB / 1.357 GB, free: 4.539 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.3608, allocations: 54.16 kB / 1.357 GB, free: 4.488 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.361, allocations: 119.6 kB / 1.358 GB, free: 4.371 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.3612, allocations: 155.5 kB / 1.358 GB, free: 4.219 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.3613, allocations: 20 kB / 1.358 GB, free: 4.199 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.3614, allocations: 95.92 kB / 1.358 GB, free: 4.105 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.628e-05/0.3615, allocations: 55.78 kB / 1.358 GB, free: 4.051 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.3616, allocations: 115.3 kB / 1.358 GB, free: 3.938 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004169/0.362, allocations: 306.8 kB / 1.358 GB, free: 3.637 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.362, allocations: 0 / 1.358 GB, free: 3.637 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.863e-06/0.362, allocations: 0 / 1.358 GB, free: 3.637 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.362, allocations: 0 / 1.358 GB, free: 3.637 MB / 1.045 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.0008948/0.3629, allocations: 0.5141 MB / 1.359 GB, free: 3.086 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.363, allocations: 8.031 kB / 1.359 GB, free: 3.078 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.035e-05/0.363, allocations: 40.69 kB / 1.359 GB, free: 3.039 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005013/0.3635, allocations: 241.2 kB / 1.359 GB, free: 2.781 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.3636, allocations: 12.38 kB / 1.359 GB, free: 2.77 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.3636, allocations: 12.38 kB / 1.359 GB, free: 2.758 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.364, allocations: 231.3 kB / 1.359 GB, free: 2.508 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.364, allocations: 3.984 kB / 1.359 GB, free: 2.504 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.364, allocations: 8 kB / 1.359 GB, free: 2.496 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.309e-06/0.364, allocations: 3.938 kB / 1.359 GB, free: 2.492 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002512/0.3643, allocations: 128.4 kB / 1.359 GB, free: 2.367 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008683/0.3652, allocations: 0.6487 MB / 1.36 GB, free: 1.668 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003568/0.3655, allocations: 158.6 kB / 1.36 GB, free: 1.504 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.3657, allocations: 84.83 kB / 1.36 GB, free: 1.418 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.3657, allocations: 4 kB / 1.36 GB, free: 1.414 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002797/0.366, allocations: 171 kB / 1.36 GB, free: 1.23 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.366, allocations: 0 / 1.36 GB, free: 1.23 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.000702/0.3667, allocations: 383 kB / 1.361 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.987e-05/0.3668, allocations: 140.5 kB / 1.361 GB, free: 0.6758 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.3671, allocations: 281.8 kB / 1.361 GB, free: 400 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.3671, allocations: 29.7 kB / 1.361 GB, free: 364 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.3672, allocations: 160.3 kB / 1.361 GB, free: 200 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.446e-05/0.3673, allocations: 39.69 kB / 1.361 GB, free: 160 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.02e-05/0.3673, allocations: 37.72 kB / 1.361 GB, free: 116 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3675, allocations: 334.8 kB / 1.362 GB, free: 15.78 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.3677, allocations: 95.89 kB / 1.362 GB, free: 15.68 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.3679, allocations: 133.2 kB / 1.362 GB, free: 15.54 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.3682, allocations: 248.1 kB / 1.362 GB, free: 15.27 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3682, allocations: 0 / 1.362 GB, free: 15.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005036/0.3687, allocations: 331 kB / 1.363 GB, free: 14.93 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.416e-05/0.3688, allocations: 37.7 kB / 1.363 GB, free: 14.89 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3688, allocations: 0 / 1.363 GB, free: 14.89 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.3688, allocations: 4 kB / 1.363 GB, free: 14.89 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.3689, allocations: 32.02 kB / 1.363 GB, free: 14.86 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.3689, allocations: 4 kB / 1.363 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.369, allocations: 23.88 kB / 1.363 GB, free: 14.83 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.3691, allocations: 8 kB / 1.363 GB, free: 14.82 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.0001928/0.3693, allocations: 196.5 kB / 1.363 GB, free: 14.61 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.3693, allocations: 27.86 kB / 1.363 GB, free: 14.59 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.689e-05/0.3693, allocations: 29.77 kB / 1.363 GB, free: 14.55 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3694, allocations: 8.031 kB / 1.363 GB, free: 14.55 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3694, allocations: 3.938 kB / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.3694, allocations: 4 kB / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/0.3696, allocations: 268.4 kB / 1.363 GB, free: 14.23 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3696, allocations: 0 / 1.363 GB, free: 14.23 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.791e-05/0.3697, allocations: 15.98 kB / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3697, allocations: 0 / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.3698, allocations: 4 kB / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3698, allocations: 0 / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3698, allocations: 0 / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007414/0.3705, allocations: 480.9 kB / 1.364 GB, free: 13.72 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.3705, allocations: 19.89 kB / 1.364 GB, free: 13.7 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/0.3706, allocations: 8 kB / 1.364 GB, free: 13.7 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.3707, allocations: 11.98 kB / 1.364 GB, free: 13.68 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.65e-05/0.3708, allocations: 23.95 kB / 1.364 GB, free: 13.66 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.3708, allocations: 16.05 kB / 1.364 GB, free: 13.64 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001933/0.371, allocations: 201.2 kB / 1.364 GB, free: 13.45 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.371, allocations: 0 / 1.364 GB, free: 13.45 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002805/0.3712, allocations: 55.89 kB / 1.364 GB, free: 13.39 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.0001976/0.3714, allocations: 137.2 kB / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004661/0.3719, allocations: 263.4 kB / 1.364 GB, free: 12.98 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3719, allocations: 0 / 1.364 GB, free: 12.98 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.3721, allocations: 155.3 kB / 1.365 GB, free: 12.82 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.3724, allocations: 35.92 kB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008226/0.3732, allocations: 482 kB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.3736, allocations: 0.7592 MB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.124e-05/0.3737, allocations: 15.44 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.3737, allocations: 0 / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of Templates: time 0.005595/0.3793, allocations: 2.988 MB / 1.369 GB, free: 8.496 MB / 1.061 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.708244871988427]