Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001547/0.001547, allocations: 104.2 kB / 19.74 MB, free: 2.066 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.001742/0.001742, allocations: 218.7 kB / 23.04 MB, free: 4.844 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.402/1.402, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.105/3.105, allocations: 0.49 GB / 0.7959 GB, free: 35.63 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.001989/0.001989, allocations: 67.47 kB / 1.155 GB, free: 25.17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3306, allocations: 176.1 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00351/0.3341, allocations: 1.938 MB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3355, allocations: 0.7012 MB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.3356, allocations: 7.938 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.3359, allocations: 87.62 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.336, allocations: 87.62 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006106/0.3366, allocations: 196.1 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003396/0.337, allocations: 255.5 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.3371, allocations: 42.19 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.3373, allocations: 123.6 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.3375, allocations: 155.5 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.336e-05/0.3375, allocations: 20 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.3377, allocations: 83.94 kB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.963e-05/0.3378, allocations: 55.78 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.685e-05/0.3379, allocations: 83.47 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004079/0.3383, allocations: 314.8 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3383, allocations: 0 / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3383, allocations: 4 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.283e-06/0.3383, allocations: 0 / 1.331 GB, free: 12.86 MB / 1.029 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.0009093/0.3392, allocations: 0.518 MB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.3392, allocations: 12.02 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.105e-05/0.3393, allocations: 32.75 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005428/0.3399, allocations: 245.2 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.3399, allocations: 12.38 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.3399, allocations: 16.38 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004588/0.3404, allocations: 304.4 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3404, allocations: 0 / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.3404, allocations: 8 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.3404, allocations: 4 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.3407, allocations: 166 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008242/0.3415, allocations: 0.5752 MB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.3419, allocations: 176.2 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.3421, allocations: 122.6 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.3421, allocations: 4 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003066/0.3424, allocations: 210.7 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.3424, allocations: 0 / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0007555/0.3432, allocations: 442.4 kB / 1.334 GB, free: 9.828 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/0.3433, allocations: 140.5 kB / 1.334 GB, free: 9.66 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.3435, allocations: 261.9 kB / 1.334 GB, free: 9.395 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.3436, allocations: 33.7 kB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.3437, allocations: 164.3 kB / 1.334 GB, free: 9.188 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.628e-05/0.3438, allocations: 43.58 kB / 1.335 GB, free: 9.145 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.27e-05/0.3439, allocations: 45.7 kB / 1.335 GB, free: 9.094 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.344, allocations: 330.8 kB / 1.335 GB, free: 8.762 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.3442, allocations: 121.6 kB / 1.335 GB, free: 8.637 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.3445, allocations: 215.5 kB / 1.335 GB, free: 8.391 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.3448, allocations: 245.6 kB / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3448, allocations: 4.031 kB / 1.335 GB, free: 8.125 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005565/0.3454, allocations: 372.9 kB / 1.336 GB, free: 7.742 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.664e-05/0.3454, allocations: 43.41 kB / 1.336 GB, free: 7.695 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.3454, allocations: 4 kB / 1.336 GB, free: 7.691 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.3455, allocations: 0 / 1.336 GB, free: 7.691 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.3456, allocations: 23.92 kB / 1.336 GB, free: 7.668 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.3456, allocations: 4 kB / 1.336 GB, free: 7.664 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.3457, allocations: 20.03 kB / 1.336 GB, free: 7.645 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.3457, allocations: 12 kB / 1.336 GB, free: 7.633 MB / 1.029 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.0002041/0.3459, allocations: 200.5 kB / 1.336 GB, free: 7.422 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.913e-05/0.346, allocations: 23.86 kB / 1.336 GB, free: 7.398 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.033e-05/0.346, allocations: 29.77 kB / 1.336 GB, free: 7.367 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.346, allocations: 0 / 1.336 GB, free: 7.367 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3461, allocations: 4 kB / 1.336 GB, free: 7.363 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3461, allocations: 0 / 1.336 GB, free: 7.363 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000229/0.3463, allocations: 205.1 kB / 1.336 GB, free: 7.133 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3463, allocations: 8 kB / 1.336 GB, free: 7.125 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.3464, allocations: 15.98 kB / 1.336 GB, free: 7.109 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3464, allocations: 0 / 1.336 GB, free: 7.109 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.3464, allocations: 7.938 kB / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3464, allocations: 0 / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3464, allocations: 0 / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008093/0.3472, allocations: 0.5306 MB / 1.337 GB, free: 6.535 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.5e-05/0.3473, allocations: 19.86 kB / 1.337 GB, free: 6.516 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.101e-05/0.3473, allocations: 8 kB / 1.337 GB, free: 6.508 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.3474, allocations: 20.05 kB / 1.337 GB, free: 6.488 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.446e-05/0.3475, allocations: 24.14 kB / 1.337 GB, free: 6.465 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.3475, allocations: 8 kB / 1.337 GB, free: 6.457 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001857/0.3477, allocations: 197.1 kB / 1.337 GB, free: 6.266 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3477, allocations: 0 / 1.337 GB, free: 6.266 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002894/0.348, allocations: 63.88 kB / 1.337 GB, free: 6.203 MB / 1.029 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.0002127/0.3482, allocations: 127.2 kB / 1.337 GB, free: 6.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005259/0.3487, allocations: 334.6 kB / 1.338 GB, free: 5.719 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3487, allocations: 0 / 1.338 GB, free: 5.719 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.349, allocations: 181.1 kB / 1.338 GB, free: 5.523 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.3493, allocations: 42.11 kB / 1.338 GB, free: 5.484 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008586/0.3501, allocations: 0.5037 MB / 1.338 GB, free: 4.938 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001415/0.3503, allocations: 148.5 kB / 1.338 GB, free: 4.777 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.943e-05/0.3503, allocations: 15.44 kB / 1.339 GB, free: 4.766 MB / 1.029 GB Notification: Performance of SimCode: time 3.51e-07/0.3503, allocations: 0 / 1.339 GB, free: 4.766 MB / 1.029 GB Notification: Performance of Templates: time 0.005667/0.356, allocations: 3.036 MB / 1.341 GB, free: 1.738 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.104475162923336]