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.001864/0.001864, allocations: 108.2 kB / 16.46 MB, free: 6.453 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.002237/0.002237, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.546/1.546, allocations: 230.6 MB / 252.8 MB, free: 8.949 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.244/3.244, allocations: 0.4899 GB / 0.7915 GB, free: 33.51 MB / 0.6231 GB " [Timeout remaining time 176] 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.002046/0.002046, allocations: 74.02 kB / 1.149 GB, free: 26.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4431, allocations: 176.1 MB / 1.321 GB, free: 2.859 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003941/0.447, allocations: 1.989 MB / 1.323 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.4486, allocations: 0.7558 MB / 1.324 GB, free: 100 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.4487, allocations: 4 kB / 1.324 GB, free: 96 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.449, allocations: 83.64 kB / 1.324 GB, free: 12 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001729/0.4492, allocations: 91.67 kB / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.4498, allocations: 188.6 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.4502, allocations: 263.3 kB / 1.325 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.4504, allocations: 41.89 kB / 1.325 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.4506, allocations: 119.7 kB / 1.325 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.4508, allocations: 151.5 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.4509, allocations: 24 kB / 1.325 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.4511, allocations: 99.86 kB / 1.325 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.4512, allocations: 67.75 kB / 1.325 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.4513, allocations: 103.3 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004554/0.4517, allocations: 306.8 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.4518, allocations: 0 / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.262e-06/0.4518, allocations: 0 / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.4518, allocations: 0 / 1.325 GB, free: 14.59 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.001036/0.4528, allocations: 0.5894 MB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.4528, allocations: 15.98 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.989e-05/0.4529, allocations: 28.75 kB / 1.326 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005758/0.4535, allocations: 307 kB / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.4535, allocations: 12.38 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.226e-05/0.4536, allocations: 16.38 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.454, allocations: 227.2 kB / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.454, allocations: 0 / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.454, allocations: 7.938 kB / 1.327 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.454, allocations: 4 kB / 1.327 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002692/0.4543, allocations: 133.3 kB / 1.327 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009466/0.4552, allocations: 0.677 MB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003874/0.4556, allocations: 162.5 kB / 1.327 GB, free: 12.24 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.4558, allocations: 89.38 kB / 1.328 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.4558, allocations: 4 kB / 1.328 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002977/0.4561, allocations: 161 kB / 1.328 GB, free: 11.97 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 3.957e-06/0.4561, allocations: 4 kB / 1.328 GB, free: 11.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0007519/0.4569, allocations: 379 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.457, allocations: 140.5 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003161/0.4573, allocations: 278.7 kB / 1.328 GB, free: 11.13 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.4573, allocations: 33.69 kB / 1.329 GB, free: 11.09 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.4575, allocations: 152.4 kB / 1.329 GB, free: 10.94 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.937e-05/0.4575, allocations: 43.64 kB / 1.329 GB, free: 10.89 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.438e-05/0.4576, allocations: 45.7 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4578, allocations: 334.8 kB / 1.329 GB, free: 10.51 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.4579, allocations: 87.91 kB / 1.329 GB, free: 10.42 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.4581, allocations: 135.1 kB / 1.329 GB, free: 10.27 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.4585, allocations: 240.7 kB / 1.33 GB, free: 10.02 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4585, allocations: 4 kB / 1.33 GB, free: 10.01 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000554/0.4591, allocations: 336.5 kB / 1.33 GB, free: 9.672 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/0.4591, allocations: 37.8 kB / 1.33 GB, free: 9.629 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.4591, allocations: 4 kB / 1.33 GB, free: 9.625 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.4591, allocations: 4 kB / 1.33 GB, free: 9.621 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.4593, allocations: 19.98 kB / 1.33 GB, free: 9.602 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.4593, allocations: 7.938 kB / 1.33 GB, free: 9.594 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.4594, allocations: 27.77 kB / 1.33 GB, free: 9.566 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.4594, allocations: 15.98 kB / 1.33 GB, free: 9.551 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.0002157/0.4597, allocations: 193.5 kB / 1.33 GB, free: 9.348 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.984e-05/0.4597, allocations: 27.86 kB / 1.33 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.265e-05/0.4598, allocations: 25.83 kB / 1.33 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.4598, allocations: 0 / 1.33 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4598, allocations: 4 kB / 1.33 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4598, allocations: 3.984 kB / 1.33 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003022/0.4601, allocations: 297.5 kB / 1.33 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4601, allocations: 0 / 1.33 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.4602, allocations: 19.92 kB / 1.331 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.4602, allocations: 0 / 1.331 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.4602, allocations: 8 kB / 1.331 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.4602, allocations: 0 / 1.331 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4602, allocations: 0 / 1.331 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007638/0.461, allocations: 469.3 kB / 1.331 GB, free: 8.438 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.901e-05/0.461, allocations: 97.12 kB / 1.331 GB, free: 8.324 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.416e-05/0.4611, allocations: 12 kB / 1.331 GB, free: 8.312 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.4612, allocations: 19.98 kB / 1.331 GB, free: 8.293 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.946e-05/0.4613, allocations: 27.89 kB / 1.331 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/0.4613, allocations: 8 kB / 1.331 GB, free: 8.258 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002058/0.4615, allocations: 201.9 kB / 1.331 GB, free: 8.062 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4615, allocations: 0 / 1.331 GB, free: 8.062 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002942/0.4618, allocations: 59.89 kB / 1.331 GB, free: 8.004 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.0002432/0.462, allocations: 140.7 kB / 1.331 GB, free: 7.859 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005256/0.4626, allocations: 263.2 kB / 1.332 GB, free: 7.59 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4626, allocations: 0 / 1.332 GB, free: 7.59 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002442/0.4628, allocations: 155.3 kB / 1.332 GB, free: 7.426 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.4631, allocations: 36.53 kB / 1.332 GB, free: 7.391 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008683/0.464, allocations: 464.1 kB / 1.332 GB, free: 6.906 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.4644, allocations: 0.7513 MB / 1.333 GB, free: 6.129 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.426e-05/0.4645, allocations: 21.55 kB / 1.333 GB, free: 6.105 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.989e-05/0.4645, allocations: 19.44 kB / 1.333 GB, free: 6.09 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.4645, allocations: 0 / 1.333 GB, free: 6.09 MB / 1.029 GB Notification: Performance of Templates: time 0.007198/0.4717, allocations: 2.821 MB / 1.336 GB, free: 3.293 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/jenkins/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: 9.58457223791629]