Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001431/0.001431, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.002424/0.002424, allocations: 217 kB / 22.25 MB, free: 5.082 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.642/1.642, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.965/2.965, allocations: 476.7 MB / 0.7706 GB, free: 4.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.00215/0.00215, allocations: 66.45 kB / 1.118 GB, free: 40.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4873/0.4894, allocations: 170 MB / 1.284 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003891/0.4933, allocations: 2.004 MB / 1.286 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.4949, allocations: 0.7441 MB / 1.287 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.4951, allocations: 7.938 kB / 1.287 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002719/0.4953, allocations: 83.62 kB / 1.287 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.4955, allocations: 91.58 kB / 1.287 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000667/0.4961, allocations: 189.6 kB / 1.287 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003786/0.4965, allocations: 255.5 kB / 1.287 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.4967, allocations: 54.16 kB / 1.287 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.4969, allocations: 119.6 kB / 1.287 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.4972, allocations: 159.5 kB / 1.287 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.971e-05/0.4972, allocations: 20 kB / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001691/0.4974, allocations: 99.86 kB / 1.288 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.4975, allocations: 55.84 kB / 1.288 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.4976, allocations: 111.3 kB / 1.288 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.4981, allocations: 310.8 kB / 1.288 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.4981, allocations: 4 kB / 1.288 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4981, allocations: 0 / 1.288 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.46e-05/0.4981, allocations: 0 / 1.288 GB, free: 6.945 MB / 0.9825 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.0009686/0.4991, allocations: 0.5141 MB / 1.289 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.4991, allocations: 15.97 kB / 1.289 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.403e-05/0.4992, allocations: 28.75 kB / 1.289 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005695/0.4998, allocations: 241.2 kB / 1.289 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.4998, allocations: 16.38 kB / 1.289 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.4998, allocations: 16.31 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004244/0.5003, allocations: 227.8 kB / 1.289 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.5003, allocations: 0 / 1.289 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/0.5003, allocations: 7.984 kB / 1.289 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.5003, allocations: 4 kB / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.5006, allocations: 128.3 kB / 1.289 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009599/0.5015, allocations: 0.6488 MB / 1.29 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.5019, allocations: 162.5 kB / 1.29 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.5021, allocations: 84.95 kB / 1.29 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.5021, allocations: 4 kB / 1.29 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000307/0.5024, allocations: 173 kB / 1.29 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.5024, allocations: 0 / 1.29 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.000741/0.5031, allocations: 382.9 kB / 1.291 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.831e-05/0.5032, allocations: 132.5 kB / 1.291 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.5036, allocations: 281.8 kB / 1.291 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.123e-05/0.5036, allocations: 33.7 kB / 1.291 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.5038, allocations: 156.3 kB / 1.291 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.215e-05/0.5038, allocations: 43.64 kB / 1.291 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.45e-05/0.5039, allocations: 45.7 kB / 1.291 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.5041, allocations: 334.8 kB / 1.292 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.5042, allocations: 91.89 kB / 1.292 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.5044, allocations: 121.1 kB / 1.292 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.5048, allocations: 249.2 kB / 1.292 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.5048, allocations: 0 / 1.292 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005293/0.5053, allocations: 331 kB / 1.292 GB, free: 2.242 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.183e-05/0.5054, allocations: 37.69 kB / 1.292 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.5054, allocations: 4.094 kB / 1.292 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.5054, allocations: 7.938 kB / 1.292 GB, free: 2.188 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.5055, allocations: 27.92 kB / 1.292 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.5056, allocations: 0 / 1.292 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.5057, allocations: 23.88 kB / 1.292 GB, free: 2.137 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.5057, allocations: 12 kB / 1.292 GB, free: 2.125 MB / 0.9825 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.0002236/0.5059, allocations: 195.3 kB / 1.293 GB, free: 1.918 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.574e-05/0.506, allocations: 35.81 kB / 1.293 GB, free: 1.883 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.164e-05/0.506, allocations: 25.77 kB / 1.293 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.506, allocations: 0 / 1.293 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.506, allocations: 0 / 1.293 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.506, allocations: 0 / 1.293 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.5064, allocations: 268.5 kB / 1.293 GB, free: 1.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.5064, allocations: 0 / 1.293 GB, free: 1.551 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.5065, allocations: 16 kB / 1.293 GB, free: 1.535 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.5065, allocations: 0 / 1.293 GB, free: 1.535 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.5065, allocations: 7.984 kB / 1.293 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.5065, allocations: 4 kB / 1.293 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5065, allocations: 0 / 1.293 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007788/0.5073, allocations: 476.7 kB / 1.293 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.5073, allocations: 23.86 kB / 1.293 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.533e-05/0.5074, allocations: 12 kB / 1.293 GB, free: 1 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.837e-05/0.5075, allocations: 8.047 kB / 1.293 GB, free: 0.9922 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.372e-05/0.5076, allocations: 31.95 kB / 1.293 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.483e-05/0.5076, allocations: 8 kB / 1.293 GB, free: 0.9531 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002154/0.5078, allocations: 197.2 kB / 1.294 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.5078, allocations: 192 / 1.294 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002973/0.5081, allocations: 59.88 kB / 1.294 GB, free: 0.707 MB / 0.9825 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.0002334/0.5083, allocations: 139 kB / 1.294 GB, free: 0.5625 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004792/0.5088, allocations: 264.9 kB / 1.294 GB, free: 300 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5088, allocations: 3.938 kB / 1.294 GB, free: 296 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.509, allocations: 151.4 kB / 1.294 GB, free: 132 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.5093, allocations: 34.83 kB / 1.294 GB, free: 100 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009078/0.5102, allocations: 468.5 kB / 1.295 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.5106, allocations: 0.7476 MB / 1.295 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.12e-05/0.5107, allocations: 17.48 kB / 1.295 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.719e-05/0.5108, allocations: 19.44 kB / 1.295 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of SimCode: time 2.9e-07/0.5108, allocations: 0 / 1.295 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.007599/0.5184, allocations: 2.913 MB / 1.298 GB, free: 11.91 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.284829653799534]