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.001208/0.001208, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001744/0.002952, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001062/0.001062, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001476/0.002539, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.015/1.015, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09435/1.11, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.281/2.281, allocations: 447.1 MB / 0.675 GB, free: 5.934 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2434/2.525, allocations: 146 MB / 0.8176 GB, free: 3.852 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 0.8189 GB, free: 2.539 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.462e-05/1.607e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.535 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00338/0.003396, allocations: 2.044 MB / 0.8209 GB, free: 484 kB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.00459, allocations: 0.7359 MB / 0.8216 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.004698, allocations: 4 kB / 0.8216 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.004888, allocations: 91.56 kB / 0.8217 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.005032, allocations: 95.56 kB / 0.8218 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.005453, allocations: 179.5 kB / 0.822 GB, free: 15.37 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.005754, allocations: 255.4 kB / 0.8222 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.005887, allocations: 54.75 kB / 0.8223 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.006121, allocations: 175.6 kB / 0.8224 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.006297, allocations: 115.7 kB / 0.8226 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.006335, allocations: 20 kB / 0.8226 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.006522, allocations: 95.92 kB / 0.8227 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.738e-05/0.00659, allocations: 43.81 kB / 0.8227 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.945e-05/0.006659, allocations: 47.88 kB / 0.8228 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.00695, allocations: 207.2 kB / 0.823 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.243e-05/0.006962, allocations: 3.984 kB / 0.823 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.21e-07/0.006963, allocations: 4 kB / 0.823 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.38e-05/0.006977, allocations: 0 / 0.823 GB, free: 14.36 MB / 0.8073 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.0007073/0.007684, allocations: 0.5085 MB / 0.8235 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.007717, allocations: 8.031 kB / 0.8235 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.5e-05/0.007782, allocations: 32.91 kB / 0.8235 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.008046, allocations: 200.8 kB / 0.8237 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.008072, allocations: 12.38 kB / 0.8237 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.008108, allocations: 20.38 kB / 0.8237 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.008407, allocations: 261.4 kB / 0.824 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.008418, allocations: 192 / 0.824 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.008435, allocations: 8.375 kB / 0.824 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.008446, allocations: 7.938 kB / 0.824 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.008554, allocations: 73.61 kB / 0.8241 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.009099, allocations: 459.7 kB / 0.8245 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.00926, allocations: 148.1 kB / 0.8246 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.748e-05/0.009328, allocations: 62.55 kB / 0.8247 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.013e-05/0.009338, allocations: 0 / 0.8247 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001661/0.009504, allocations: 157.6 kB / 0.8248 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.009505, allocations: 0 / 0.8248 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.000269/0.009774, allocations: 217.4 kB / 0.8251 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.009847, allocations: 166.2 kB / 0.8252 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.01003, allocations: 232.9 kB / 0.8254 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.01005, allocations: 37.7 kB / 0.8255 GB, free: 11.53 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.412e-05/0.01013, allocations: 136.8 kB / 0.8256 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/0.01017, allocations: 47.62 kB / 0.8256 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.384e-05/0.01023, allocations: 41.69 kB / 0.8257 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.01034, allocations: 334.8 kB / 0.826 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.333e-05/0.0104, allocations: 56.52 kB / 0.8261 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.01051, allocations: 148.5 kB / 0.8262 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.01065, allocations: 156.6 kB / 0.8263 GB, free: 10.55 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.01066, allocations: 4.031 kB / 0.8264 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002047/0.01086, allocations: 183.7 kB / 0.8265 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.01091, allocations: 41.64 kB / 0.8266 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.01091, allocations: 3.984 kB / 0.8266 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.01093, allocations: 4 kB / 0.8266 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.01103, allocations: 23.98 kB / 0.8266 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.01104, allocations: 7.922 kB / 0.8266 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.135e-05/0.01113, allocations: 23.88 kB / 0.8266 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.01114, allocations: 12.09 kB / 0.8266 GB, free: 10.22 MB / 0.8073 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.0001265/0.01127, allocations: 154.4 kB / 0.8268 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.727e-05/0.01131, allocations: 23.98 kB / 0.8268 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.337e-05/0.01135, allocations: 29.7 kB / 0.8268 GB, free: 10 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.01135, allocations: 0 / 0.8268 GB, free: 10 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.01135, allocations: 0 / 0.8268 GB, free: 10 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.01136, allocations: 0 / 0.8268 GB, free: 10 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.01152, allocations: 137.7 kB / 0.827 GB, free: 9.848 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.01152, allocations: 0 / 0.827 GB, free: 9.848 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.767e-05/0.0116, allocations: 23.94 kB / 0.827 GB, free: 9.824 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.436e-05/0.01162, allocations: 15.86 kB / 0.827 GB, free: 9.809 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.01163, allocations: 0 / 0.827 GB, free: 9.809 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.01165, allocations: 15.92 kB / 0.827 GB, free: 9.793 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.01165, allocations: 0 / 0.827 GB, free: 9.793 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.01165, allocations: 0 / 0.827 GB, free: 9.793 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003038/0.01195, allocations: 275.7 kB / 0.8273 GB, free: 9.484 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.01199, allocations: 11.94 kB / 0.8273 GB, free: 9.473 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.79e-05/0.01206, allocations: 11.98 kB / 0.8273 GB, free: 9.461 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.556e-05/0.01212, allocations: 27.89 kB / 0.8273 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.01214, allocations: 8.031 kB / 0.8273 GB, free: 9.426 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 8.518e-05/0.01223, allocations: 78.77 kB / 0.8274 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8e-08/0.01223, allocations: 0 / 0.8274 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000242/0.01247, allocations: 63.83 kB / 0.8275 GB, free: 9.281 MB / 0.8073 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.0001722/0.01264, allocations: 117.6 kB / 0.8276 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002451/0.01289, allocations: 214.2 kB / 0.8278 GB, free: 8.926 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/0.0129, allocations: 12.22 kB / 0.8278 GB, free: 8.914 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.01303, allocations: 148.3 kB / 0.8279 GB, free: 8.75 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.01329, allocations: 210.7 kB / 0.8281 GB, free: 8.508 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007465/0.01404, allocations: 423.5 kB / 0.8286 GB, free: 8.059 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.25e-05/0.01411, allocations: 83.81 kB / 0.8286 GB, free: 7.957 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 6.852e-05/0.01418, allocations: 13.48 kB / 0.8286 GB, free: 7.945 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.01435, allocations: 103.3 kB / 0.8287 GB, free: 7.844 MB / 0.8073 GB Notification: Performance of SimCode: time 7.31e-07/0.01435, allocations: 0 / 0.8287 GB, free: 7.844 MB / 0.8073 GB Notification: Performance of Templates: time 0.006656/0.021, allocations: 3.211 MB / 0.8319 GB, free: 4.668 MB / 0.8073 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.936781284399331]