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.00168/0.00168, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001843/0.001843, allocations: 214.5 kB / 22.25 MB, free: 5.129 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.56/1.56, allocations: 230.6 MB / 256 MB, free: 7.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.548/3.548, allocations: 0.5096 GB / 0.8147 GB, free: 17.21 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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: 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.00214/0.00214, allocations: 67.7 kB / 1.184 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4852/0.4874, allocations: 181.4 MB / 1.361 GB, free: 140 kB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004499/0.4919, allocations: 1.998 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.4934, allocations: 0.7567 MB / 1.364 GB, free: 13.35 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.4935, allocations: 3.938 kB / 1.364 GB, free: 13.35 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0003001/0.4938, allocations: 79.66 kB / 1.364 GB, free: 13.27 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.494, allocations: 99.55 kB / 1.364 GB, free: 13.17 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007366/0.4947, allocations: 190.3 kB / 1.364 GB, free: 12.99 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003828/0.4951, allocations: 259.5 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.4953, allocations: 54.11 kB / 1.365 GB, free: 12.68 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.4955, allocations: 115.7 kB / 1.365 GB, free: 12.57 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.4957, allocations: 155.5 kB / 1.365 GB, free: 12.41 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/0.4958, allocations: 20 kB / 1.365 GB, free: 12.39 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.4959, allocations: 107.8 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.908e-05/0.496, allocations: 55.78 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.4962, allocations: 107.3 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004507/0.4966, allocations: 306.8 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4966, allocations: 0 / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4966, allocations: 0 / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.4966, allocations: 0 / 1.366 GB, free: 11.83 MB / 1.061 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.0009544/0.4976, allocations: 0.518 MB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.4976, allocations: 8.031 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.975e-05/0.4977, allocations: 32.75 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005653/0.4983, allocations: 245.2 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.4983, allocations: 8.375 kB / 1.366 GB, free: 10.96 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.4984, allocations: 20.38 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004303/0.4988, allocations: 227.2 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4988, allocations: 0 / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.966e-05/0.4988, allocations: 8 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.4988, allocations: 4 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/0.4991, allocations: 140.3 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009481/0.5001, allocations: 0.6409 MB / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003603/0.5005, allocations: 162.5 kB / 1.368 GB, free: 9.695 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.5006, allocations: 88.81 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.5006, allocations: 0 / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003105/0.501, allocations: 161 kB / 1.368 GB, free: 9.43 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.501, allocations: 4 kB / 1.368 GB, free: 9.426 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0007555/0.5017, allocations: 386 kB / 1.368 GB, free: 9.039 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.5018, allocations: 140.5 kB / 1.368 GB, free: 8.871 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003305/0.5021, allocations: 273.9 kB / 1.369 GB, free: 8.594 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.5022, allocations: 37.69 kB / 1.369 GB, free: 8.551 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.5023, allocations: 152.3 kB / 1.369 GB, free: 8.398 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.033e-05/0.5024, allocations: 47.67 kB / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-05/0.5025, allocations: 45.8 kB / 1.369 GB, free: 8.301 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001851/0.5026, allocations: 338.8 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.5028, allocations: 83.91 kB / 1.369 GB, free: 7.879 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.503, allocations: 135.1 kB / 1.369 GB, free: 7.73 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.5034, allocations: 248.8 kB / 1.37 GB, free: 7.465 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5034, allocations: 0 / 1.37 GB, free: 7.465 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005313/0.5039, allocations: 335 kB / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.29e-05/0.504, allocations: 41.8 kB / 1.37 GB, free: 7.078 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.504, allocations: 4 kB / 1.37 GB, free: 7.074 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.504, allocations: 0 / 1.37 GB, free: 7.074 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.5041, allocations: 23.98 kB / 1.37 GB, free: 7.051 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.5041, allocations: 0 / 1.37 GB, free: 7.051 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.5043, allocations: 27.88 kB / 1.37 GB, free: 7.023 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.5043, allocations: 7.938 kB / 1.37 GB, free: 7.016 MB / 1.061 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.0002096/0.5045, allocations: 195.5 kB / 1.37 GB, free: 6.809 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.5045, allocations: 23.86 kB / 1.37 GB, free: 6.785 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.254e-05/0.5046, allocations: 33.7 kB / 1.37 GB, free: 6.75 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.5046, allocations: 4 kB / 1.37 GB, free: 6.746 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5046, allocations: 4 kB / 1.37 GB, free: 6.742 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.5046, allocations: 0 / 1.37 GB, free: 6.742 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.5049, allocations: 268.4 kB / 1.371 GB, free: 6.438 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.5049, allocations: 0 / 1.371 GB, free: 6.438 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.505, allocations: 15.98 kB / 1.371 GB, free: 6.422 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.505, allocations: 0 / 1.371 GB, free: 6.422 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.5051, allocations: 11.94 kB / 1.371 GB, free: 6.41 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.5051, allocations: 0 / 1.371 GB, free: 6.41 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5051, allocations: 0 / 1.371 GB, free: 6.41 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007793/0.5058, allocations: 470.4 kB / 1.371 GB, free: 5.926 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.5059, allocations: 19.89 kB / 1.371 GB, free: 5.906 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.575e-05/0.5059, allocations: 8 kB / 1.371 GB, free: 5.898 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.506, allocations: 16.05 kB / 1.371 GB, free: 5.883 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.063e-05/0.5061, allocations: 27.95 kB / 1.371 GB, free: 5.855 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.5062, allocations: 7.984 kB / 1.371 GB, free: 5.848 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002155/0.5064, allocations: 205.1 kB / 1.371 GB, free: 5.648 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.5064, allocations: 0 / 1.371 GB, free: 5.648 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003189/0.5067, allocations: 59.89 kB / 1.371 GB, free: 5.59 MB / 1.061 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.0002147/0.5069, allocations: 133 kB / 1.371 GB, free: 5.453 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004983/0.5074, allocations: 259.2 kB / 1.372 GB, free: 5.188 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5074, allocations: 0 / 1.372 GB, free: 5.188 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002392/0.5076, allocations: 159.3 kB / 1.372 GB, free: 5.02 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.508, allocations: 35.56 kB / 1.372 GB, free: 4.988 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008851/0.5088, allocations: 448.5 kB / 1.372 GB, free: 4.52 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.5093, allocations: 0.7514 MB / 1.373 GB, free: 3.742 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.781e-05/0.5094, allocations: 21.47 kB / 1.373 GB, free: 3.723 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.263e-05/0.5094, allocations: 23.42 kB / 1.373 GB, free: 3.699 MB / 1.061 GB Notification: Performance of SimCode: time 3.5e-07/0.5094, allocations: 3.938 kB / 1.373 GB, free: 3.695 MB / 1.061 GB Notification: Performance of Templates: time 0.007658/0.5171, allocations: 2.908 MB / 1.376 GB, free: 0.8086 MB / 1.061 GB " [Timeout remaining time 299] 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.38674678420648]