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.001326/0.001326, allocations: 80.05 kB / 19.18 MB, free: 2.531 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.001426/0.001426, allocations: 164.8 kB / 22.46 MB, free: 5.355 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.412/1.412, allocations: 177.1 MB / 202.8 MB, free: 9.191 MB / 190.1 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.00244/0.00244, allocations: 242.2 kB / 259.4 MB, free: 492 kB / 238.1 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.061/1.061, allocations: 138.4 MB / 454.3 MB, free: 2.016 MB / 366.1 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.252e-06/1.252e-06, allocations: 0 / 0.6468 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.185e-05/2.31e-05, allocations: 2.281 kB / 0.6468 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003146/0.003169, allocations: 1.929 MB / 0.6487 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001282/0.004451, allocations: 0.7011 MB / 0.6493 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.97e-05/0.004541, allocations: 7.938 kB / 0.6494 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.004763, allocations: 91.5 kB / 0.6494 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.004899, allocations: 83.64 kB / 0.6495 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005668/0.005466, allocations: 191.5 kB / 0.6497 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003378/0.005804, allocations: 267.3 kB / 0.65 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.005958, allocations: 50.16 kB / 0.65 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/0.006177, allocations: 151.7 kB / 0.6502 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.006392, allocations: 139.7 kB / 0.6503 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.006435, allocations: 20 kB / 0.6503 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.006594, allocations: 87.92 kB / 0.6504 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.276e-05/0.006686, allocations: 63.77 kB / 0.6504 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.052e-05/0.006777, allocations: 59.78 kB / 0.6505 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.007211, allocations: 335 kB / 0.6508 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.007214, allocations: 0 / 0.6508 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.152e-06/0.007215, allocations: 0 / 0.6508 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.007224, allocations: 0 / 0.6508 GB, free: 0.875 MB / 0.5606 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.0009773/0.008202, allocations: 0.5063 MB / 0.6513 GB, free: 340 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.008247, allocations: 9.344 kB / 0.6513 GB, free: 332 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.495e-05/0.008332, allocations: 36.75 kB / 0.6514 GB, free: 296 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006157/0.008948, allocations: 244.9 kB / 0.6516 GB, free: 28 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.008983, allocations: 12.36 kB / 0.6516 GB, free: 16 kB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.009034, allocations: 16.38 kB / 0.6516 GB, free: 0 / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2353/0.2443, allocations: 303.5 kB / 0.6519 GB, free: 57.07 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.2443, allocations: 192 / 0.6519 GB, free: 57.07 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.2444, allocations: 10.78 kB / 0.6519 GB, free: 57.07 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.2444, allocations: 3.969 kB / 0.6519 GB, free: 57.07 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002479/0.2446, allocations: 164.5 kB / 0.6521 GB, free: 57.04 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007076/0.2453, allocations: 0.5765 MB / 0.6526 GB, free: 56.67 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.2457, allocations: 188.2 kB / 0.6528 GB, free: 56.61 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.2458, allocations: 116.6 kB / 0.6529 GB, free: 56.57 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.2458, allocations: 3.531 kB / 0.6529 GB, free: 56.57 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002244/0.246, allocations: 207.9 kB / 0.6531 GB, free: 56.46 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.2461, allocations: 3.469 kB / 0.6531 GB, free: 56.46 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0005854/0.2466, allocations: 438 kB / 0.6536 GB, free: 56.34 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.2467, allocations: 135.9 kB / 0.6537 GB, free: 56.18 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.2469, allocations: 264 kB / 0.6539 GB, free: 56.07 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.2469, allocations: 33.39 kB / 0.654 GB, free: 56.03 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.829e-05/0.2469, allocations: 160.7 kB / 0.6541 GB, free: 55.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.247, allocations: 44.89 kB / 0.6542 GB, free: 55.87 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.979e-05/0.247, allocations: 42.31 kB / 0.6542 GB, free: 55.85 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.779e-05/0.2471, allocations: 343.3 kB / 0.6545 GB, free: 55.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.2472, allocations: 116.4 kB / 0.6546 GB, free: 55.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.2474, allocations: 216.1 kB / 0.6549 GB, free: 55.29 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002639/0.2477, allocations: 245 kB / 0.6551 GB, free: 55.16 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2477, allocations: 1.125 kB / 0.6551 GB, free: 55.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004236/0.2481, allocations: 379.2 kB / 0.6555 GB, free: 54.98 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.2481, allocations: 39.25 kB / 0.6555 GB, free: 54.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2481, allocations: 0 / 0.6555 GB, free: 54.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.2481, allocations: 1.156 kB / 0.6555 GB, free: 54.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.2482, allocations: 26.62 kB / 0.6555 GB, free: 54.94 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.2483, allocations: 3.422 kB / 0.6555 GB, free: 54.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.2484, allocations: 29.34 kB / 0.6555 GB, free: 54.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.2484, allocations: 6.406 kB / 0.6556 GB, free: 54.93 MB / 0.5606 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.0001234/0.2485, allocations: 189.2 kB / 0.6557 GB, free: 54.77 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.2485, allocations: 25.67 kB / 0.6558 GB, free: 54.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.753e-05/0.2486, allocations: 30.3 kB / 0.6558 GB, free: 54.75 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2486, allocations: 4.531 kB / 0.6558 GB, free: 54.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2486, allocations: 0.625 kB / 0.6558 GB, free: 54.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2486, allocations: 3.969 kB / 0.6558 GB, free: 54.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.2487, allocations: 205.5 kB / 0.656 GB, free: 54.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2487, allocations: 3.438 kB / 0.656 GB, free: 54.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.2488, allocations: 22.86 kB / 0.656 GB, free: 54.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2488, allocations: 0 / 0.656 GB, free: 54.58 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.2489, allocations: 10.52 kB / 0.656 GB, free: 54.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2489, allocations: 2.734 kB / 0.656 GB, free: 54.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2489, allocations: 3.125 kB / 0.656 GB, free: 54.58 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006124/0.2495, allocations: 0.525 MB / 0.6565 GB, free: 54.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.336e-05/0.2495, allocations: 18.83 kB / 0.6566 GB, free: 54.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.2495, allocations: 7.344 kB / 0.6566 GB, free: 54.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.2496, allocations: 10.34 kB / 0.6566 GB, free: 54.29 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.2497, allocations: 32.61 kB / 0.6566 GB, free: 54.28 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.2497, allocations: 3.344 kB / 0.6566 GB, free: 54.28 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001227/0.2499, allocations: 193.8 kB / 0.6568 GB, free: 54.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.2499, allocations: 0 / 0.6568 GB, free: 54.18 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002648/0.2501, allocations: 66.14 kB / 0.6569 GB, free: 54.17 MB / 0.5606 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.0001788/0.2503, allocations: 138.7 kB / 0.657 GB, free: 54.07 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004066/0.2507, allocations: 327.7 kB / 0.6573 GB, free: 53.89 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2507, allocations: 0 / 0.6573 GB, free: 53.89 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.2509, allocations: 192.5 kB / 0.6575 GB, free: 53.76 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.2512, allocations: 34.7 kB / 0.6575 GB, free: 53.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006149/0.2518, allocations: 474.4 kB / 0.658 GB, free: 53.46 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.645e-05/0.2519, allocations: 142.9 kB / 0.6581 GB, free: 53.38 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.556e-05/0.2519, allocations: 20.3 kB / 0.6581 GB, free: 53.38 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.408e-05/0.252, allocations: 17.28 kB / 0.6581 GB, free: 53.38 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.252, allocations: 0.5469 kB / 0.6581 GB, free: 53.38 MB / 0.5606 GB Notification: Performance of Templates: time 0.005806/0.2578, allocations: 2.879 MB / 0.661 GB, free: 53.14 MB / 0.5606 GB " [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.851785909384489] Failed to read output from testmodel.py, exit status != 0: 0.2651202380657196 0.27421191300000003 0.264670037 Calling exit ...