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.001736/0.001736, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002179/0.002179, allocations: 219.3 kB / 23.01 MB, free: 4.609 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.542/1.542, allocations: 230.6 MB / 256.8 MB, free: 8.039 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.894/2.894, allocations: 476.7 MB / 0.7714 GB, free: 4.277 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.002121/0.002121, allocations: 66.94 kB / 1.119 GB, free: 40.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3399, allocations: 170 MB / 1.285 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004029/0.3439, allocations: 2.004 MB / 1.287 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.3456, allocations: 0.7402 MB / 1.287 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.3458, allocations: 15.88 kB / 1.287 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003223/0.3461, allocations: 87.64 kB / 1.287 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.3463, allocations: 87.61 kB / 1.287 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007199/0.347, allocations: 191.7 kB / 1.288 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.3474, allocations: 255.5 kB / 1.288 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.3476, allocations: 46.19 kB / 1.288 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.3478, allocations: 119.6 kB / 1.288 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002831/0.3481, allocations: 167.5 kB / 1.288 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.94e-05/0.3481, allocations: 23.94 kB / 1.288 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001719/0.3483, allocations: 95.86 kB / 1.288 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.3484, allocations: 59.77 kB / 1.288 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.3485, allocations: 107.4 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005158/0.349, allocations: 310.8 kB / 1.289 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.3491, allocations: 0 / 1.289 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.384e-06/0.3491, allocations: 0 / 1.289 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.3491, allocations: 0 / 1.289 GB, free: 6.926 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.001019/0.3501, allocations: 0.524 MB / 1.289 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.3501, allocations: 16.02 kB / 1.289 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.543e-05/0.3502, allocations: 32.75 kB / 1.289 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006171/0.3508, allocations: 241.2 kB / 1.29 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.3509, allocations: 12.31 kB / 1.29 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.3509, allocations: 16.38 kB / 1.29 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.3514, allocations: 227.8 kB / 1.29 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3514, allocations: 0 / 1.29 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.3514, allocations: 8 kB / 1.29 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.3514, allocations: 4 kB / 1.29 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002686/0.3517, allocations: 128.3 kB / 1.29 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000997/0.3527, allocations: 0.6488 MB / 1.291 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003718/0.353, allocations: 158.4 kB / 1.291 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.3532, allocations: 88.95 kB / 1.291 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.3532, allocations: 0 / 1.291 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003133/0.3535, allocations: 173 kB / 1.291 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.984e-06/0.3535, allocations: 0 / 1.291 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0007547/0.3543, allocations: 386 kB / 1.291 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.3544, allocations: 132.5 kB / 1.291 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.3547, allocations: 277.9 kB / 1.292 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.3548, allocations: 29.7 kB / 1.292 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.3549, allocations: 160.3 kB / 1.292 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.144e-05/0.355, allocations: 47.62 kB / 1.292 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.047e-05/0.3551, allocations: 41.7 kB / 1.292 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.3552, allocations: 334.8 kB / 1.292 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.3554, allocations: 91.89 kB / 1.292 GB, free: 2.961 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.3557, allocations: 134 kB / 1.293 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.356, allocations: 242.7 kB / 1.293 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.356, allocations: 0 / 1.293 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005353/0.3566, allocations: 332.9 kB / 1.293 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.911e-05/0.3566, allocations: 41.69 kB / 1.293 GB, free: 2.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3566, allocations: 3.938 kB / 1.293 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3567, allocations: 4.094 kB / 1.293 GB, free: 2.164 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.3568, allocations: 28.02 kB / 1.293 GB, free: 2.137 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.3568, allocations: 4 kB / 1.293 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.3569, allocations: 27.83 kB / 1.293 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.357, allocations: 8 kB / 1.293 GB, free: 2.098 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.0002157/0.3572, allocations: 195.3 kB / 1.293 GB, free: 1.891 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.3572, allocations: 27.86 kB / 1.293 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.563e-05/0.3573, allocations: 33.77 kB / 1.293 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3573, allocations: 0 / 1.293 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.3573, allocations: 7.984 kB / 1.293 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3573, allocations: 0 / 1.293 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.3576, allocations: 256.5 kB / 1.294 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.3576, allocations: 0 / 1.294 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.3577, allocations: 12 kB / 1.294 GB, free: 1.516 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3577, allocations: 3.984 kB / 1.294 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.3577, allocations: 8 kB / 1.294 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3577, allocations: 0 / 1.294 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3577, allocations: 3.938 kB / 1.294 GB, free: 1.5 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008324/0.3586, allocations: 478.3 kB / 1.294 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.053e-05/0.3586, allocations: 19.89 kB / 1.294 GB, free: 0.9883 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.633e-05/0.3587, allocations: 8 kB / 1.294 GB, free: 0.9805 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.3588, allocations: 11.98 kB / 1.294 GB, free: 0.9688 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.3589, allocations: 27.95 kB / 1.294 GB, free: 0.9414 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.3589, allocations: 8.062 kB / 1.294 GB, free: 0.9336 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003125/0.3592, allocations: 205.2 kB / 1.294 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3592, allocations: 0 / 1.294 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003213/0.3595, allocations: 63.83 kB / 1.294 GB, free: 0.6758 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.0002589/0.3598, allocations: 131.1 kB / 1.295 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005006/0.3603, allocations: 259.3 kB / 1.295 GB, free: 280 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3603, allocations: 0 / 1.295 GB, free: 280 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002832/0.3606, allocations: 155.3 kB / 1.295 GB, free: 112 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.3609, allocations: 36.75 kB / 1.295 GB, free: 76 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.3619, allocations: 498.1 kB / 1.296 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.3623, allocations: 0.7476 MB / 1.296 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.412e-05/0.3624, allocations: 19.44 kB / 1.296 GB, free: 14.76 MB / 0.9981 GB Notification: Performance of SimCode: time 7.82e-07/0.3624, allocations: 0 / 1.296 GB, free: 14.76 MB / 0.9981 GB Notification: Performance of Templates: time 0.005955/0.3684, allocations: 2.999 MB / 1.299 GB, free: 11.77 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/jenkins1/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: 11.660841297009028]