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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001858/0.001858, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 225.6 MB / 249.4 MB, free: 3.309 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.906/2.906, allocations: 496.2 MB / 0.7819 GB, free: 12.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001951/0.001951, allocations: 71.89 kB / 1.136 GB, free: 12.51 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.08/1.082, allocations: 173.6 MB / 1.305 GB, free: 33.42 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002831/1.084, allocations: 1.969 MB / 1.307 GB, free: 32.06 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001078/1.086, allocations: 0.7239 MB / 1.308 GB, free: 31.56 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/1.086, allocations: 2.531 kB / 1.308 GB, free: 31.56 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002184/1.086, allocations: 85.97 kB / 1.308 GB, free: 31.54 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001095/1.086, allocations: 91.78 kB / 1.308 GB, free: 31.51 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005427/1.087, allocations: 190.3 kB / 1.308 GB, free: 31.41 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002417/1.087, allocations: 258.4 kB / 1.309 GB, free: 31.3 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/1.087, allocations: 56.66 kB / 1.309 GB, free: 31.27 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/1.087, allocations: 117.7 kB / 1.309 GB, free: 31.22 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/1.087, allocations: 162.5 kB / 1.309 GB, free: 31.17 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/1.087, allocations: 20.38 kB / 1.309 GB, free: 31.17 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/1.087, allocations: 93.7 kB / 1.309 GB, free: 31.15 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.839e-05/1.087, allocations: 64.3 kB / 1.309 GB, free: 31.11 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.097e-05/1.088, allocations: 101.9 kB / 1.309 GB, free: 31.03 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003749/1.088, allocations: 314.7 kB / 1.31 GB, free: 30.9 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/1.088, allocations: 2.875 kB / 1.31 GB, free: 30.9 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.894e-06/1.088, allocations: 0 / 1.31 GB, free: 30.9 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.865e-06/1.088, allocations: 3.938 kB / 1.31 GB, free: 30.9 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.0008202/1.089, allocations: 0.5854 MB / 1.31 GB, free: 30.38 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/1.089, allocations: 8.312 kB / 1.31 GB, free: 30.38 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.1e-05/1.089, allocations: 30.64 kB / 1.31 GB, free: 30.36 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/1.089, allocations: 316.1 kB / 1.31 GB, free: 30.1 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/1.089, allocations: 10.03 kB / 1.31 GB, free: 30.09 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/1.089, allocations: 13.12 kB / 1.31 GB, free: 30.09 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/1.09, allocations: 227.2 kB / 1.311 GB, free: 29.96 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/1.09, allocations: 2.938 kB / 1.311 GB, free: 29.96 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/1.09, allocations: 8 kB / 1.311 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/1.09, allocations: 2.844 kB / 1.311 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/1.09, allocations: 135.5 kB / 1.311 GB, free: 29.91 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006751/1.091, allocations: 0.6769 MB / 1.311 GB, free: 29.36 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/1.091, allocations: 164.4 kB / 1.312 GB, free: 29.29 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/1.091, allocations: 84.7 kB / 1.312 GB, free: 29.26 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/1.091, allocations: 1.906 kB / 1.312 GB, free: 29.26 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/1.091, allocations: 173.4 kB / 1.312 GB, free: 29.15 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/1.091, allocations: 0 / 1.312 GB, free: 29.15 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.000641/1.092, allocations: 380.5 kB / 1.312 GB, free: 29.01 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/1.092, allocations: 135.6 kB / 1.312 GB, free: 28.85 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/1.092, allocations: 278 kB / 1.313 GB, free: 28.7 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/1.092, allocations: 39.98 kB / 1.313 GB, free: 28.66 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.411e-05/1.092, allocations: 157.8 kB / 1.313 GB, free: 28.52 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.152e-05/1.092, allocations: 44.92 kB / 1.313 GB, free: 28.48 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.77e-05/1.092, allocations: 45.64 kB / 1.313 GB, free: 28.45 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.153e-05/1.093, allocations: 334.5 kB / 1.313 GB, free: 28.13 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/1.093, allocations: 89.78 kB / 1.313 GB, free: 28.11 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/1.093, allocations: 139.2 kB / 1.313 GB, free: 28.02 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/1.093, allocations: 236.3 kB / 1.314 GB, free: 27.88 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.093, allocations: 2.719 kB / 1.314 GB, free: 27.88 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004112/1.094, allocations: 334.9 kB / 1.314 GB, free: 27.74 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/1.094, allocations: 40.58 kB / 1.314 GB, free: 27.71 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/1.094, allocations: 2.719 kB / 1.314 GB, free: 27.71 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/1.094, allocations: 96 / 1.314 GB, free: 27.71 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/1.094, allocations: 32.84 kB / 1.314 GB, free: 27.7 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/1.094, allocations: 6.516 kB / 1.314 GB, free: 27.69 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/1.094, allocations: 22.59 kB / 1.314 GB, free: 27.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/1.094, allocations: 11.64 kB / 1.314 GB, free: 27.68 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.0001364/1.094, allocations: 201.4 kB / 1.314 GB, free: 27.5 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/1.094, allocations: 28.39 kB / 1.314 GB, free: 27.49 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.968e-05/1.094, allocations: 31.72 kB / 1.314 GB, free: 27.47 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/1.094, allocations: 0 / 1.314 GB, free: 27.47 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.094, allocations: 2.875 kB / 1.314 GB, free: 27.47 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/1.094, allocations: 0 / 1.314 GB, free: 27.47 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/1.094, allocations: 288.9 kB / 1.315 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/1.094, allocations: 0 / 1.315 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.626e-05/1.094, allocations: 20.09 kB / 1.315 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/1.094, allocations: 0 / 1.315 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/1.094, allocations: 2.125 kB / 1.315 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/1.094, allocations: 5.656 kB / 1.315 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/1.094, allocations: 0 / 1.315 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000589/1.095, allocations: 471.8 kB / 1.315 GB, free: 27.02 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.353e-05/1.095, allocations: 110.5 kB / 1.315 GB, free: 26.89 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.158e-05/1.095, allocations: 9.469 kB / 1.315 GB, free: 26.89 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.478e-05/1.095, allocations: 12.19 kB / 1.315 GB, free: 26.89 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/1.095, allocations: 22.91 kB / 1.315 GB, free: 26.89 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/1.095, allocations: 9.25 kB / 1.315 GB, free: 26.88 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001458/1.095, allocations: 201.4 kB / 1.315 GB, free: 26.77 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.095, allocations: 0 / 1.315 GB, free: 26.77 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002951/1.096, allocations: 55.5 kB / 1.316 GB, free: 26.77 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.0001694/1.096, allocations: 139.2 kB / 1.316 GB, free: 26.66 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003974/1.096, allocations: 256.7 kB / 1.316 GB, free: 26.54 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/1.096, allocations: 0 / 1.316 GB, free: 26.54 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001668/1.096, allocations: 157.3 kB / 1.316 GB, free: 26.46 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/1.097, allocations: 36.06 kB / 1.316 GB, free: 26.44 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008807/1.098, allocations: 491.2 kB / 1.317 GB, free: 26.17 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/1.098, allocations: 0.7572 MB / 1.317 GB, free: 25.46 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.309e-05/1.098, allocations: 19.89 kB / 1.317 GB, free: 25.46 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/1.098, allocations: 17.91 kB / 1.317 GB, free: 25.46 MB / 1.061 GB Notification: Performance of SimCode: time 7.41e-07/1.098, allocations: 0 / 1.317 GB, free: 25.46 MB / 1.061 GB Notification: Performance of Templates: time 0.006177/1.104, allocations: 2.897 MB / 1.32 GB, free: 25.23 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] 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: 9.723355308175087]