Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001423/0.001423, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.00162/0.00162, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.453/1.453, allocations: 177.1 MB / 203.1 MB, free: 5.246 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002622/0.002622, allocations: 233.1 kB / 259.8 MB, free: 12.71 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.077/1.077, allocations: 138.5 MB / 454.7 MB, free: 1.457 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 0.5543 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.966e-05/2.104e-05, allocations: 6.312 kB / 0.5543 GB, free: 0.8398 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003411/0.003432, allocations: 1.912 MB / 0.5562 GB, free: 14.91 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.004935, allocations: 0.7089 MB / 0.5569 GB, free: 14.2 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.005056, allocations: 7.938 kB / 0.5569 GB, free: 14.19 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002463/0.005302, allocations: 79.64 kB / 0.557 GB, free: 14.11 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.005483, allocations: 91.56 kB / 0.557 GB, free: 14.02 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006472/0.006131, allocations: 187.5 kB / 0.5572 GB, free: 13.84 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004086/0.006539, allocations: 271.3 kB / 0.5575 GB, free: 13.57 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.006686, allocations: 42.17 kB / 0.5575 GB, free: 13.52 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.006947, allocations: 155.7 kB / 0.5577 GB, free: 13.37 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.007189, allocations: 143.7 kB / 0.5578 GB, free: 13.23 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.007237, allocations: 20 kB / 0.5578 GB, free: 13.21 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.007416, allocations: 91.86 kB / 0.5579 GB, free: 13.12 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 9.332e-05/0.007509, allocations: 59.77 kB / 0.558 GB, free: 13.06 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.007611, allocations: 63.77 kB / 0.558 GB, free: 13 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004842/0.008095, allocations: 327 kB / 0.5583 GB, free: 12.68 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.008098, allocations: 0 / 0.5583 GB, free: 12.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.008099, allocations: 0 / 0.5583 GB, free: 12.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.008105, allocations: 0 / 0.5583 GB, free: 12.68 MB / 490.7 MB 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.0009638/0.009068, allocations: 0.5141 MB / 0.5588 GB, free: 12.13 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.009104, allocations: 8.75 kB / 0.5589 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.009214, allocations: 48.73 kB / 0.5589 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005804/0.009795, allocations: 240.9 kB / 0.5591 GB, free: 11.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.009827, allocations: 24.36 kB / 0.5592 GB, free: 11.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.245e-05/0.009869, allocations: 12.38 kB / 0.5592 GB, free: 11.78 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005171/0.01039, allocations: 308.7 kB / 0.5595 GB, free: 11.44 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.0104, allocations: 192 / 0.5595 GB, free: 11.44 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.01042, allocations: 8.125 kB / 0.5595 GB, free: 11.43 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.01043, allocations: 7.938 kB / 0.5595 GB, free: 11.42 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000315/0.01074, allocations: 162 kB / 0.5596 GB, free: 11.26 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009326/0.01168, allocations: 0.5792 MB / 0.5602 GB, free: 10.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000433/0.01211, allocations: 184.2 kB / 0.5604 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/0.01233, allocations: 118.7 kB / 0.5605 GB, free: 10.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.01234, allocations: 0 / 0.5605 GB, free: 10.32 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003408/0.01268, allocations: 202.7 kB / 0.5607 GB, free: 10.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.01269, allocations: 0 / 0.5607 GB, free: 10.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008685/0.01355, allocations: 457.9 kB / 0.5611 GB, free: 9.629 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.01366, allocations: 132.5 kB / 0.5612 GB, free: 9.469 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.01397, allocations: 265.9 kB / 0.5615 GB, free: 9.199 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.014, allocations: 29.7 kB / 0.5615 GB, free: 9.164 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.01415, allocations: 164.3 kB / 0.5617 GB, free: 8.996 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.146e-05/0.01422, allocations: 43.61 kB / 0.5617 GB, free: 8.953 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.785e-05/0.0143, allocations: 41.67 kB / 0.5618 GB, free: 8.906 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.0145, allocations: 334.8 kB / 0.5621 GB, free: 8.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.01472, allocations: 125.7 kB / 0.5622 GB, free: 8.441 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004188/0.01514, allocations: 213 kB / 0.5624 GB, free: 8.199 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.01556, allocations: 245 kB / 0.5626 GB, free: 7.938 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01557, allocations: 0 / 0.5626 GB, free: 7.938 MB / 490.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006681/0.01624, allocations: 396.8 kB / 0.563 GB, free: 7.531 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.71e-05/0.01628, allocations: 37.69 kB / 0.5631 GB, free: 7.488 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.01629, allocations: 0 / 0.5631 GB, free: 7.488 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.0163, allocations: 0 / 0.5631 GB, free: 7.488 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.01643, allocations: 23.98 kB / 0.5631 GB, free: 7.465 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.01644, allocations: 3.938 kB / 0.5631 GB, free: 7.461 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.01658, allocations: 35.81 kB / 0.5631 GB, free: 7.426 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.0166, allocations: 4 kB / 0.5631 GB, free: 7.422 MB / 490.7 MB 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.0002116/0.01681, allocations: 192.4 kB / 0.5633 GB, free: 7.219 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.01687, allocations: 35.8 kB / 0.5633 GB, free: 7.184 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.118e-05/0.01693, allocations: 33.75 kB / 0.5634 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.01694, allocations: 0 / 0.5634 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.01694, allocations: 0 / 0.5634 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.01694, allocations: 0 / 0.5634 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.0172, allocations: 205.2 kB / 0.5636 GB, free: 6.922 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.0172, allocations: 0 / 0.5636 GB, free: 6.922 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.01731, allocations: 19.92 kB / 0.5636 GB, free: 6.902 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.01732, allocations: 3.938 kB / 0.5636 GB, free: 6.898 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.01734, allocations: 8 kB / 0.5636 GB, free: 6.891 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01734, allocations: 0 / 0.5636 GB, free: 6.891 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01734, allocations: 0 / 0.5636 GB, free: 6.891 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009221/0.01826, allocations: 0.533 MB / 0.5641 GB, free: 6.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.0183, allocations: 23.83 kB / 0.5641 GB, free: 6.297 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.01834, allocations: 8 kB / 0.5641 GB, free: 6.289 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.01846, allocations: 11.98 kB / 0.5642 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.778e-05/0.01854, allocations: 23.95 kB / 0.5642 GB, free: 6.254 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.01856, allocations: 12.06 kB / 0.5642 GB, free: 6.242 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002152/0.01878, allocations: 193.2 kB / 0.5644 GB, free: 6.059 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01878, allocations: 0 / 0.5644 GB, free: 6.059 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003109/0.01909, allocations: 63.83 kB / 0.5644 GB, free: 5.996 MB / 490.7 MB 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.0002135/0.0193, allocations: 131 kB / 0.5646 GB, free: 5.859 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005594/0.01986, allocations: 322.6 kB / 0.5649 GB, free: 5.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.01987, allocations: 8.188 kB / 0.5649 GB, free: 5.512 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.02015, allocations: 184.9 kB / 0.5651 GB, free: 5.312 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.02046, allocations: 43.5 kB / 0.5651 GB, free: 5.273 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009552/0.02141, allocations: 493.6 kB / 0.5656 GB, free: 4.762 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.02158, allocations: 136.7 kB / 0.5657 GB, free: 4.605 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.651e-05/0.02166, allocations: 17.48 kB / 0.5657 GB, free: 4.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.458e-05/0.02173, allocations: 28.48 kB / 0.5657 GB, free: 4.562 MB / 490.7 MB Notification: Performance of SimCode: time 3.91e-07/0.02173, allocations: 0 / 0.5657 GB, free: 4.562 MB / 490.7 MB Notification: Performance of Templates: time 0.007357/0.02908, allocations: 2.898 MB / 0.5686 GB, free: 1.707 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.478081800043583]