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.001383/0.001383, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001631/0.001631, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9951/0.9951, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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 2.452/2.452, allocations: 438.8 MB / 0.6826 GB, free: 13.64 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.969e-05/2.126e-05, allocations: 6.312 kB / 0.8386 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00254/0.002561, allocations: 2.021 MB / 0.8406 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.003661, allocations: 0.7281 MB / 0.8413 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.003778, allocations: 7.938 kB / 0.8413 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0002048/0.003983, allocations: 87.58 kB / 0.8414 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.004086, allocations: 91.56 kB / 0.8415 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004402/0.004527, allocations: 175.5 kB / 0.8416 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0003755/0.004902, allocations: 263.4 kB / 0.8419 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.005029, allocations: 53.14 kB / 0.8419 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001803/0.005209, allocations: 163.7 kB / 0.8421 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.005354, allocations: 115.7 kB / 0.8422 GB, free: 10.51 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.005381, allocations: 20 kB / 0.8422 GB, free: 10.49 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.005528, allocations: 91.92 kB / 0.8423 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.057e-05/0.005588, allocations: 51.84 kB / 0.8424 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 5.751e-05/0.005646, allocations: 63.77 kB / 0.8424 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.005889, allocations: 231.2 kB / 0.8426 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.005892, allocations: 4 kB / 0.8426 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.91e-07/0.005893, allocations: 0 / 0.8426 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.005897, allocations: 3.938 kB / 0.8426 GB, free: 10.05 MB / 0.8073 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.0004906/0.006387, allocations: 473.1 kB / 0.8431 GB, free: 9.562 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.006417, allocations: 8.625 kB / 0.8431 GB, free: 9.555 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.83e-05/0.006466, allocations: 32.91 kB / 0.8431 GB, free: 9.523 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.006682, allocations: 204.8 kB / 0.8433 GB, free: 9.297 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.006704, allocations: 16.38 kB / 0.8434 GB, free: 9.281 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.006728, allocations: 20.38 kB / 0.8434 GB, free: 9.262 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.006959, allocations: 253.5 kB / 0.8436 GB, free: 8.969 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.006967, allocations: 192 / 0.8436 GB, free: 8.969 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.006978, allocations: 8.312 kB / 0.8436 GB, free: 8.961 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.006986, allocations: 7.938 kB / 0.8436 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.063e-05/0.007057, allocations: 72.95 kB / 0.8437 GB, free: 8.875 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004276/0.007484, allocations: 463.6 kB / 0.8441 GB, free: 8.398 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.007605, allocations: 148.1 kB / 0.8443 GB, free: 8.238 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.17e-05/0.007647, allocations: 50.56 kB / 0.8443 GB, free: 8.18 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.308e-06/0.007656, allocations: 4 kB / 0.8443 GB, free: 8.176 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000133/0.007789, allocations: 153.6 kB / 0.8445 GB, free: 8 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.007791, allocations: 0 / 0.8445 GB, free: 8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.0001968/0.007987, allocations: 206.5 kB / 0.8447 GB, free: 7.773 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.008035, allocations: 140.5 kB / 0.8448 GB, free: 7.605 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.008165, allocations: 221 kB / 0.845 GB, free: 7.375 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.008182, allocations: 37.7 kB / 0.8451 GB, free: 7.332 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.79e-05/0.00824, allocations: 136.8 kB / 0.8452 GB, free: 7.195 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.008266, allocations: 47.56 kB / 0.8452 GB, free: 7.148 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-05/0.008314, allocations: 49.58 kB / 0.8453 GB, free: 7.094 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.845e-05/0.008392, allocations: 334.8 kB / 0.8456 GB, free: 6.758 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.188e-05/0.008444, allocations: 56.52 kB / 0.8457 GB, free: 6.695 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.088e-05/0.008515, allocations: 146.2 kB / 0.8458 GB, free: 6.516 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.735e-05/0.008612, allocations: 152.7 kB / 0.8459 GB, free: 6.344 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.008614, allocations: 0 / 0.8459 GB, free: 6.344 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000141/0.008755, allocations: 175.8 kB / 0.8461 GB, free: 6.152 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.008785, allocations: 41.62 kB / 0.8461 GB, free: 6.105 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.82e-06/0.00879, allocations: 0 / 0.8461 GB, free: 6.105 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.008802, allocations: 0 / 0.8461 GB, free: 6.105 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.656e-05/0.008878, allocations: 27.92 kB / 0.8462 GB, free: 6.078 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.905e-06/0.008881, allocations: 0 / 0.8462 GB, free: 6.078 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.812e-05/0.008939, allocations: 23.94 kB / 0.8462 GB, free: 6.055 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.008949, allocations: 8.094 kB / 0.8462 GB, free: 6.047 MB / 0.8073 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 9.226e-05/0.009042, allocations: 166.8 kB / 0.8464 GB, free: 5.867 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.073e-05/0.009062, allocations: 15.98 kB / 0.8464 GB, free: 5.852 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.118e-05/0.009094, allocations: 33.7 kB / 0.8464 GB, free: 5.824 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.009095, allocations: 0 / 0.8464 GB, free: 5.824 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.009097, allocations: 0 / 0.8464 GB, free: 5.824 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.0091, allocations: 0 / 0.8464 GB, free: 5.824 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.009207, allocations: 133.8 kB / 0.8465 GB, free: 5.676 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.009209, allocations: 0 / 0.8465 GB, free: 5.676 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.463e-05/0.009263, allocations: 19.98 kB / 0.8466 GB, free: 5.656 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.009265, allocations: 0 / 0.8466 GB, free: 5.656 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.009275, allocations: 4 kB / 0.8466 GB, free: 5.652 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.009277, allocations: 4 kB / 0.8466 GB, free: 5.648 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.009279, allocations: 3.938 kB / 0.8466 GB, free: 5.645 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.009514, allocations: 267 kB / 0.8468 GB, free: 5.348 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.862e-05/0.009533, allocations: 19.86 kB / 0.8468 GB, free: 5.328 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.009555, allocations: 8 kB / 0.8468 GB, free: 5.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.402e-05/0.009599, allocations: 15.98 kB / 0.8469 GB, free: 5.305 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.412e-05/0.009653, allocations: 27.83 kB / 0.8469 GB, free: 5.277 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.009668, allocations: 12.02 kB / 0.8469 GB, free: 5.266 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.535e-05/0.009724, allocations: 74.78 kB / 0.847 GB, free: 5.188 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.009724, allocations: 0 / 0.847 GB, free: 5.188 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001615/0.009885, allocations: 59.89 kB / 0.847 GB, free: 5.129 MB / 0.8073 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.0001374/0.01002, allocations: 120.1 kB / 0.8471 GB, free: 5.004 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001727/0.0102, allocations: 208.6 kB / 0.8473 GB, free: 4.773 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.0102, allocations: 4.188 kB / 0.8473 GB, free: 4.77 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.866e-05/0.01028, allocations: 137.9 kB / 0.8475 GB, free: 4.613 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.01043, allocations: 34.67 kB / 0.8475 GB, free: 4.582 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004484/0.01088, allocations: 427.9 kB / 0.8479 GB, free: 4.133 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.051e-05/0.01092, allocations: 79.94 kB / 0.848 GB, free: 4.035 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.794e-05/0.01097, allocations: 17.48 kB / 0.848 GB, free: 4.016 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.0111, allocations: 99.34 kB / 0.8481 GB, free: 3.918 MB / 0.8073 GB Notification: Performance of SimCode: time 5.51e-07/0.0111, allocations: 0 / 0.8481 GB, free: 3.918 MB / 0.8073 GB Notification: Performance of Templates: time 0.005313/0.01641, allocations: 3.134 MB / 0.8512 GB, free: 0.8281 MB / 0.8073 GB " [Timeout remaining time 300] 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.407419844996184]