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.001109/0.001109, allocations: 80.81 kB / 19.94 MB, free: 4.543 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.001784/0.001784, allocations: 173 kB / 23.36 MB, free: 1.129 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 1.033/1.033, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.407/2.407, allocations: 438.8 MB / 0.6827 GB, free: 13.56 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.563e-06/1.563e-06, allocations: 3.938 kB / 0.8386 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.844e-05/2.001e-05, allocations: 8.781 kB / 0.8386 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00221/0.00223, allocations: 1.967 MB / 0.8405 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.003244, allocations: 0.7321 MB / 0.8412 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.003346, allocations: 4 kB / 0.8412 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.003548, allocations: 87.56 kB / 0.8413 GB, free: 11.37 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 9.995e-05/0.003648, allocations: 91.52 kB / 0.8414 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.004089, allocations: 187.6 kB / 0.8416 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.004326, allocations: 263.4 kB / 0.8418 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.004437, allocations: 42.78 kB / 0.8419 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.004601, allocations: 171.6 kB / 0.842 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.004745, allocations: 115.7 kB / 0.8421 GB, free: 10.51 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.699e-05/0.004772, allocations: 20 kB / 0.8422 GB, free: 10.49 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.004883, allocations: 87.92 kB / 0.8422 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 5.996e-05/0.004943, allocations: 47.84 kB / 0.8423 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.17e-05/0.005005, allocations: 63.77 kB / 0.8423 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.005246, allocations: 227.2 kB / 0.8426 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.005248, allocations: 4 kB / 0.8426 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of FrontEnd: time 5.72e-07/0.005248, allocations: 0 / 0.8426 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.156e-06/0.005251, allocations: 0 / 0.8426 GB, free: 10.07 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.0005624/0.005814, allocations: 477.1 kB / 0.843 GB, free: 9.574 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.005846, allocations: 12.62 kB / 0.843 GB, free: 9.562 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/0.005892, allocations: 28.91 kB / 0.8431 GB, free: 9.535 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.006095, allocations: 204.8 kB / 0.8433 GB, free: 9.309 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.006116, allocations: 16.38 kB / 0.8433 GB, free: 9.293 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.006144, allocations: 20.38 kB / 0.8433 GB, free: 9.273 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.006367, allocations: 253.4 kB / 0.8435 GB, free: 8.98 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.006374, allocations: 192 / 0.8435 GB, free: 8.98 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.006387, allocations: 4.375 kB / 0.8435 GB, free: 8.977 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.006392, allocations: 7.938 kB / 0.8435 GB, free: 8.969 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.157e-05/0.006464, allocations: 80.88 kB / 0.8436 GB, free: 8.883 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004135/0.006878, allocations: 459.7 kB / 0.8441 GB, free: 8.41 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.007003, allocations: 144.1 kB / 0.8442 GB, free: 8.254 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.621e-05/0.007049, allocations: 66.52 kB / 0.8443 GB, free: 8.18 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 8.857e-06/0.007058, allocations: 4 kB / 0.8443 GB, free: 8.176 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001192/0.007177, allocations: 141.6 kB / 0.8444 GB, free: 8.012 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.007179, allocations: 0 / 0.8444 GB, free: 8.012 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.0002023/0.007381, allocations: 217.8 kB / 0.8446 GB, free: 7.777 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.007431, allocations: 136.5 kB / 0.8447 GB, free: 7.613 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.007556, allocations: 225 kB / 0.845 GB, free: 7.379 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.007576, allocations: 37.7 kB / 0.845 GB, free: 7.336 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.139e-05/0.007638, allocations: 140.8 kB / 0.8451 GB, free: 7.195 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.007663, allocations: 43.61 kB / 0.8452 GB, free: 7.152 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-05/0.007712, allocations: 45.64 kB / 0.8452 GB, free: 7.102 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.034e-05/0.007792, allocations: 334.8 kB / 0.8455 GB, free: 6.766 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.213e-05/0.007834, allocations: 56.52 kB / 0.8456 GB, free: 6.703 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.83e-05/0.007913, allocations: 146.2 kB / 0.8457 GB, free: 6.523 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.649e-05/0.008009, allocations: 147.3 kB / 0.8459 GB, free: 6.355 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.008011, allocations: 0 / 0.8459 GB, free: 6.355 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001369/0.008148, allocations: 179.8 kB / 0.846 GB, free: 6.16 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.008175, allocations: 41.62 kB / 0.8461 GB, free: 6.113 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.00818, allocations: 0 / 0.8461 GB, free: 6.113 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.008191, allocations: 4 kB / 0.8461 GB, free: 6.109 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.794e-05/0.008259, allocations: 23.98 kB / 0.8461 GB, free: 6.086 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.008262, allocations: 3.938 kB / 0.8461 GB, free: 6.082 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.557e-05/0.008318, allocations: 19.97 kB / 0.8461 GB, free: 6.062 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.008329, allocations: 12 kB / 0.8461 GB, free: 6.051 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.079e-05/0.00842, allocations: 154.4 kB / 0.8463 GB, free: 5.883 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.008442, allocations: 19.98 kB / 0.8463 GB, free: 5.863 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.212e-05/0.008474, allocations: 37.69 kB / 0.8463 GB, free: 5.832 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.008476, allocations: 0 / 0.8463 GB, free: 5.832 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.008477, allocations: 0 / 0.8463 GB, free: 5.832 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.00848, allocations: 0 / 0.8463 GB, free: 5.832 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.008586, allocations: 125.8 kB / 0.8465 GB, free: 5.691 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.008587, allocations: 0 / 0.8465 GB, free: 5.691 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.525e-05/0.008633, allocations: 23.92 kB / 0.8465 GB, free: 5.668 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.008634, allocations: 0 / 0.8465 GB, free: 5.668 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.008646, allocations: 8 kB / 0.8465 GB, free: 5.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.008647, allocations: 0 / 0.8465 GB, free: 5.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.008649, allocations: 3.938 kB / 0.8465 GB, free: 5.656 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.008869, allocations: 271.7 kB / 0.8467 GB, free: 5.352 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.818e-05/0.008887, allocations: 19.84 kB / 0.8468 GB, free: 5.332 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.00891, allocations: 7.938 kB / 0.8468 GB, free: 5.324 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.038e-05/0.00895, allocations: 12 kB / 0.8468 GB, free: 5.312 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.009, allocations: 31.92 kB / 0.8468 GB, free: 5.281 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.009013, allocations: 7.984 kB / 0.8468 GB, free: 5.273 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.605e-05/0.009069, allocations: 70.78 kB / 0.8469 GB, free: 5.199 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.009069, allocations: 4 kB / 0.8469 GB, free: 5.195 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001523/0.009221, allocations: 55.89 kB / 0.8469 GB, free: 5.141 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.0001245/0.009346, allocations: 120.3 kB / 0.8471 GB, free: 5.012 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001659/0.009511, allocations: 207.6 kB / 0.8473 GB, free: 4.781 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.009515, allocations: 4.188 kB / 0.8473 GB, free: 4.777 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.763e-05/0.009592, allocations: 141.9 kB / 0.8474 GB, free: 4.617 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.009721, allocations: 36.86 kB / 0.8474 GB, free: 4.582 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00042/0.01014, allocations: 411.6 kB / 0.8478 GB, free: 4.148 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.154e-05/0.01018, allocations: 83.94 kB / 0.8479 GB, free: 4.047 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.686e-05/0.01023, allocations: 21.47 kB / 0.8479 GB, free: 4.023 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.01034, allocations: 99.34 kB / 0.848 GB, free: 3.926 MB / 0.8073 GB Notification: Performance of SimCode: time 6.21e-07/0.01034, allocations: 0 / 0.848 GB, free: 3.926 MB / 0.8073 GB Notification: Performance of Templates: time 0.004614/0.01496, allocations: 3.124 MB / 0.8511 GB, free: 0.8438 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 -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.367694769054651]