Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001464/0.001464, allocations: 107.6 kB / 18.95 MB, free: 2.809 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.001834/0.001834, allocations: 214.4 kB / 22.25 MB, free: 5.117 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.671/1.671, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.522/3.522, allocations: 0.4892 GB / 0.7943 GB, free: 35.56 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002271/0.002271, allocations: 76.12 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5297/0.532, allocations: 176.1 MB / 1.326 GB, free: 1.852 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004633/0.5366, allocations: 1.92 MB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001837/0.5384, allocations: 0.7012 MB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.5387, allocations: 8 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.539, allocations: 83.62 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.5393, allocations: 87.58 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.5403, allocations: 195.2 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005877/0.5409, allocations: 259.4 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.5411, allocations: 48.41 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.5414, allocations: 115.7 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.5417, allocations: 155.5 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.999e-05/0.5417, allocations: 20 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.5419, allocations: 87.92 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.5421, allocations: 55.78 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.5422, allocations: 83.52 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005985/0.5428, allocations: 314.8 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.5428, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.164e-06/0.5428, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.41e-05/0.5428, allocations: 0 / 1.33 GB, free: 13.73 MB / 1.029 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.001233/0.5441, allocations: 0.5141 MB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.5441, allocations: 11.97 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.5442, allocations: 32.75 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006325/0.5449, allocations: 245.2 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.5449, allocations: 12.38 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.5449, allocations: 16.38 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005389/0.5455, allocations: 304.4 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.5455, allocations: 0 / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.5455, allocations: 8 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.5455, allocations: 12 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.5459, allocations: 167 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.5469, allocations: 0.5636 MB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/0.5473, allocations: 184.3 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.5475, allocations: 126.5 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.5475, allocations: 4 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003553/0.5479, allocations: 206.7 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.5479, allocations: 0 / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0008278/0.5487, allocations: 442.4 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.5489, allocations: 136.5 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.5492, allocations: 265.8 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.5492, allocations: 33.7 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.5494, allocations: 160.3 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.592e-05/0.5495, allocations: 43.58 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.5496, allocations: 41.7 kB / 1.333 GB, free: 9.977 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002049/0.5498, allocations: 334.8 kB / 1.333 GB, free: 9.641 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.55, allocations: 121.6 kB / 1.333 GB, free: 9.516 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.5502, allocations: 223.6 kB / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.5506, allocations: 244.6 kB / 1.334 GB, free: 9 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.5506, allocations: 0 / 1.334 GB, free: 9 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006614/0.5513, allocations: 376.9 kB / 1.334 GB, free: 8.613 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.19e-05/0.5513, allocations: 41.69 kB / 1.334 GB, free: 8.566 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.5514, allocations: 4 kB / 1.334 GB, free: 8.562 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.5514, allocations: 0 / 1.334 GB, free: 8.562 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.5515, allocations: 23.92 kB / 1.334 GB, free: 8.539 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.5515, allocations: 12.08 kB / 1.334 GB, free: 8.527 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.5517, allocations: 15.94 kB / 1.334 GB, free: 8.512 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.5517, allocations: 12 kB / 1.334 GB, free: 8.5 MB / 1.029 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.0002518/0.5519, allocations: 204.7 kB / 1.334 GB, free: 8.285 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-05/0.552, allocations: 23.86 kB / 1.334 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.758e-05/0.552, allocations: 29.77 kB / 1.335 GB, free: 8.23 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.552, allocations: 0 / 1.335 GB, free: 8.23 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.5521, allocations: 4 kB / 1.335 GB, free: 8.227 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.5521, allocations: 4 kB / 1.335 GB, free: 8.223 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.5523, allocations: 201.1 kB / 1.335 GB, free: 7.996 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.5523, allocations: 4 kB / 1.335 GB, free: 7.992 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.5524, allocations: 15.94 kB / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.5524, allocations: 0 / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.5525, allocations: 7.984 kB / 1.335 GB, free: 7.969 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.5525, allocations: 0 / 1.335 GB, free: 7.969 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.5525, allocations: 0 / 1.335 GB, free: 7.969 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008825/0.5534, allocations: 0.5237 MB / 1.335 GB, free: 7.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/0.5534, allocations: 19.92 kB / 1.335 GB, free: 7.391 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.5534, allocations: 19.92 kB / 1.335 GB, free: 7.371 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.5535, allocations: 11.98 kB / 1.335 GB, free: 7.359 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.713e-05/0.5536, allocations: 24.14 kB / 1.335 GB, free: 7.336 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.5537, allocations: 11.94 kB / 1.335 GB, free: 7.324 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002143/0.5539, allocations: 197.1 kB / 1.336 GB, free: 7.133 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.5539, allocations: 0 / 1.336 GB, free: 7.133 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003097/0.5542, allocations: 59.89 kB / 1.336 GB, free: 7.074 MB / 1.029 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.0002488/0.5544, allocations: 135.2 kB / 1.336 GB, free: 6.934 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006037/0.555, allocations: 322.6 kB / 1.336 GB, free: 6.594 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.555, allocations: 0 / 1.336 GB, free: 6.594 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002631/0.5553, allocations: 189 kB / 1.336 GB, free: 6.391 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.5556, allocations: 35.86 kB / 1.336 GB, free: 6.359 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009837/0.5566, allocations: 482.2 kB / 1.337 GB, free: 5.852 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001685/0.5568, allocations: 144.5 kB / 1.337 GB, free: 5.695 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.835e-05/0.5569, allocations: 17.42 kB / 1.337 GB, free: 5.68 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.466e-05/0.5569, allocations: 19.44 kB / 1.337 GB, free: 5.66 MB / 1.029 GB Notification: Performance of SimCode: time 9.82e-07/0.557, allocations: 0 / 1.337 GB, free: 5.66 MB / 1.029 GB Notification: Performance of Templates: time 0.008075/0.565, allocations: 3.087 MB / 1.34 GB, free: 2.609 MB / 1.029 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.432567987591028]