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.001555/0.001555, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002178/0.002178, allocations: 210.5 kB / 22.24 MB, free: 4.859 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.773/1.773, allocations: 230.6 MB / 256 MB, free: 7.801 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.977/2.977, allocations: 475.9 MB / 0.7699 GB, free: 4.793 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.002162/0.002162, allocations: 67.22 kB / 1.117 GB, free: 41.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4645/0.4667, allocations: 170 MB / 1.283 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004134/0.4708, allocations: 1.932 MB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001587/0.4724, allocations: 0.6896 MB / 1.286 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.4725, allocations: 3.938 kB / 1.286 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003165/0.4728, allocations: 91.64 kB / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.473, allocations: 87.56 kB / 1.286 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007541/0.4738, allocations: 187.3 kB / 1.286 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003964/0.4742, allocations: 259.4 kB / 1.286 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.4743, allocations: 54.16 kB / 1.286 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.4745, allocations: 115.7 kB / 1.286 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.4748, allocations: 155.5 kB / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.493e-05/0.4748, allocations: 20 kB / 1.286 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.475, allocations: 87.88 kB / 1.287 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.4751, allocations: 63.75 kB / 1.287 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.4752, allocations: 75.55 kB / 1.287 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004788/0.4757, allocations: 318.7 kB / 1.287 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4757, allocations: 0 / 1.287 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4757, allocations: 4 kB / 1.287 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.822e-06/0.4757, allocations: 0 / 1.287 GB, free: 7.879 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.00103/0.4767, allocations: 0.518 MB / 1.288 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.4768, allocations: 8.031 kB / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.19e-05/0.4768, allocations: 32.75 kB / 1.288 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000625/0.4775, allocations: 253.2 kB / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/0.4775, allocations: 8.375 kB / 1.288 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.4775, allocations: 16.38 kB / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.4781, allocations: 308.9 kB / 1.288 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.4781, allocations: 0 / 1.288 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.4781, allocations: 11.98 kB / 1.288 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.4781, allocations: 4 kB / 1.288 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.4784, allocations: 158 kB / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008954/0.4793, allocations: 0.5753 MB / 1.289 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004075/0.4797, allocations: 184.2 kB / 1.289 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.4799, allocations: 122.6 kB / 1.289 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.4799, allocations: 0 / 1.289 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003298/0.4803, allocations: 206.7 kB / 1.289 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.4803, allocations: 0 / 1.289 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0008603/0.4811, allocations: 448.3 kB / 1.29 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.4813, allocations: 136.5 kB / 1.29 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.4816, allocations: 273.8 kB / 1.29 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.4816, allocations: 33.7 kB / 1.29 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.4817, allocations: 148.3 kB / 1.29 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.961e-05/0.4818, allocations: 55.56 kB / 1.29 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.356e-05/0.4819, allocations: 45.7 kB / 1.29 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.482, allocations: 334.8 kB / 1.291 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.4822, allocations: 117.7 kB / 1.291 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.4825, allocations: 218.1 kB / 1.291 GB, free: 3.398 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003838/0.4829, allocations: 240.6 kB / 1.291 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4829, allocations: 0 / 1.291 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005998/0.4835, allocations: 382.8 kB / 1.292 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.977e-05/0.4835, allocations: 37.7 kB / 1.292 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.4835, allocations: 3.984 kB / 1.292 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.691e-05/0.4836, allocations: 4 kB / 1.292 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.4837, allocations: 19.98 kB / 1.292 GB, free: 2.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.4837, allocations: 4 kB / 1.292 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.4839, allocations: 15.94 kB / 1.292 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.4839, allocations: 16.09 kB / 1.292 GB, free: 2.645 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.0002097/0.4841, allocations: 191.3 kB / 1.292 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.4841, allocations: 31.84 kB / 1.292 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.087e-05/0.4842, allocations: 21.78 kB / 1.292 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.4842, allocations: 0 / 1.292 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4842, allocations: 0 / 1.292 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.4842, allocations: 7.984 kB / 1.292 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.4845, allocations: 209.1 kB / 1.292 GB, free: 2.145 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4845, allocations: 0 / 1.292 GB, free: 2.145 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.4846, allocations: 19.98 kB / 1.292 GB, free: 2.125 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.4846, allocations: 4 kB / 1.292 GB, free: 2.121 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.4846, allocations: 0 / 1.292 GB, free: 2.121 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.4846, allocations: 7.938 kB / 1.292 GB, free: 2.113 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.4846, allocations: 7.922 kB / 1.292 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008476/0.4855, allocations: 0.5197 MB / 1.293 GB, free: 1.551 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.093e-05/0.4855, allocations: 19.89 kB / 1.293 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.487e-05/0.4855, allocations: 8 kB / 1.293 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.4856, allocations: 16.05 kB / 1.293 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.493e-05/0.4857, allocations: 23.95 kB / 1.293 GB, free: 1.484 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.4858, allocations: 11.98 kB / 1.293 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002077/0.486, allocations: 197.1 kB / 1.293 GB, free: 1.285 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.486, allocations: 192 / 1.293 GB, free: 1.285 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003347/0.4863, allocations: 59.89 kB / 1.293 GB, free: 1.227 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.0002604/0.4866, allocations: 131.1 kB / 1.293 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005874/0.4872, allocations: 322.6 kB / 1.294 GB, free: 0.75 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4872, allocations: 0 / 1.294 GB, free: 0.75 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002945/0.4875, allocations: 189 kB / 1.294 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.4878, allocations: 35.23 kB / 1.294 GB, free: 0.5156 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.4889, allocations: 490.3 kB / 1.294 GB, free: 4 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.4891, allocations: 140.7 kB / 1.294 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.821e-05/0.4892, allocations: 21.41 kB / 1.294 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.406e-05/0.4893, allocations: 19.42 kB / 1.294 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of SimCode: time 6.11e-07/0.4893, allocations: 0 / 1.294 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of Templates: time 0.008016/0.4973, allocations: 3.077 MB / 1.297 GB, free: 12.78 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.637668637558818]