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.0008044/0.0008044, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 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.0008473/0.0008473, allocations: 165.9 kB / 22.45 MB, free: 2.098 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.8638/0.8638, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.001341/0.001341, allocations: 250.1 kB / 259.4 MB, free: 13.02 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 0.6761/0.6761, allocations: 138.4 MB / 454.3 MB, free: 1.633 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: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 0.6463 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.693e-05/1.823e-05, allocations: 2.281 kB / 0.6463 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001936/0.001954, allocations: 1.914 MB / 0.6482 GB, free: 27.61 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0008523/0.002807, allocations: 0.7088 MB / 0.6488 GB, free: 27.05 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.002928, allocations: 2.5 kB / 0.6488 GB, free: 27.05 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.003124, allocations: 86.16 kB / 0.6489 GB, free: 27 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 9.303e-05/0.003217, allocations: 96.42 kB / 0.649 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.003648, allocations: 187.6 kB / 0.6492 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.003869, allocations: 261.2 kB / 0.6495 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.003987, allocations: 59.89 kB / 0.6495 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.004123, allocations: 151.1 kB / 0.6497 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.004274, allocations: 144.5 kB / 0.6498 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.004306, allocations: 19.44 kB / 0.6498 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.004416, allocations: 88.73 kB / 0.6499 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 5.672e-05/0.004473, allocations: 54.55 kB / 0.6499 GB, free: 26.37 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.00453, allocations: 64.47 kB / 0.65 GB, free: 26.33 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.004787, allocations: 334 kB / 0.6503 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.053e-06/0.004789, allocations: 0 / 0.6503 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.213e-06/0.00479, allocations: 0 / 0.6503 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.004795, allocations: 1.188 kB / 0.6503 GB, free: 26.09 MB / 0.5105 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.0005055/0.0053, allocations: 0.5137 MB / 0.6508 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.005335, allocations: 10.06 kB / 0.6508 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.7e-05/0.005362, allocations: 48.7 kB / 0.6509 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.029e-05/0.005402, allocations: 30.66 kB / 0.6509 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.0057, allocations: 253.3 kB / 0.6512 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.005719, allocations: 14.59 kB / 0.6512 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.005744, allocations: 13.84 kB / 0.6512 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002666/0.006011, allocations: 306.1 kB / 0.6515 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.006021, allocations: 5.875 kB / 0.6515 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.006035, allocations: 9.781 kB / 0.6515 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.006042, allocations: 3.562 kB / 0.6515 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.00621, allocations: 165.6 kB / 0.6517 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005116/0.006721, allocations: 0.6039 MB / 0.6522 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.006939, allocations: 182.2 kB / 0.6524 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.85e-05/0.007038, allocations: 115.4 kB / 0.6525 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.00705, allocations: 5.188 kB / 0.6525 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001849/0.007235, allocations: 208.4 kB / 0.6527 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.007237, allocations: 4 kB / 0.6527 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.0004491/0.007686, allocations: 441.8 kB / 0.6532 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.007718, allocations: 139.6 kB / 0.6533 GB, free: 23.63 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.007883, allocations: 276.4 kB / 0.6536 GB, free: 23.45 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.007897, allocations: 32.39 kB / 0.6536 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.1e-05/0.007958, allocations: 154.6 kB / 0.6537 GB, free: 23.28 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.007982, allocations: 50.34 kB / 0.6538 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.008033, allocations: 45.64 kB / 0.6538 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 3.897e-05/0.008072, allocations: 338.4 kB / 0.6541 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.008182, allocations: 118.9 kB / 0.6543 GB, free: 22.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.008299, allocations: 213.7 kB / 0.6545 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.008485, allocations: 244.4 kB / 0.6547 GB, free: 22.45 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.008487, allocations: 0 / 0.6547 GB, free: 22.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003052/0.008792, allocations: 383.9 kB / 0.6551 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.008821, allocations: 40.38 kB / 0.6551 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.008826, allocations: 1.188 kB / 0.6551 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.008838, allocations: 2.531 kB / 0.6551 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.927e-05/0.008918, allocations: 25.64 kB / 0.6551 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.008923, allocations: 1.281 kB / 0.6551 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.695e-05/0.00899, allocations: 26.66 kB / 0.6552 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.009002, allocations: 6.188 kB / 0.6552 GB, free: 22.18 MB / 0.5105 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.933e-05/0.009101, allocations: 203 kB / 0.6554 GB, free: 21.99 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.398e-05/0.009125, allocations: 28.44 kB / 0.6554 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/0.00916, allocations: 31.14 kB / 0.6554 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.009162, allocations: 1.375 kB / 0.6554 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.009167, allocations: 5.406 kB / 0.6554 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.00917, allocations: 0 / 0.6554 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.009301, allocations: 233.4 kB / 0.6556 GB, free: 21.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.009303, allocations: 3.984 kB / 0.6556 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.872e-05/0.009362, allocations: 15.94 kB / 0.6557 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.009365, allocations: 5.531 kB / 0.6557 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.009378, allocations: 10.14 kB / 0.6557 GB, free: 21.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.00938, allocations: 5.219 kB / 0.6557 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.009381, allocations: 3.938 kB / 0.6557 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.009822, allocations: 0.5269 MB / 0.6562 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 2.096e-05/0.009843, allocations: 17.45 kB / 0.6562 GB, free: 21.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.00987, allocations: 13.02 kB / 0.6562 GB, free: 21.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.963e-05/0.00992, allocations: 12.5 kB / 0.6562 GB, free: 21.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.074e-05/0.009981, allocations: 27.59 kB / 0.6563 GB, free: 21.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.009997, allocations: 8.781 kB / 0.6563 GB, free: 21.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001108/0.01011, allocations: 201.9 kB / 0.6565 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7e-08/0.01011, allocations: 0 / 0.6565 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001877/0.0103, allocations: 54.83 kB / 0.6565 GB, free: 21.2 MB / 0.5105 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.0006051/0.0109, allocations: 1.104 MB / 0.6576 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002982/0.0112, allocations: 323.5 kB / 0.6579 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.0112, allocations: 0 / 0.6579 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.01132, allocations: 191 kB / 0.6581 GB, free: 19.97 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.01153, allocations: 30.11 kB / 0.6581 GB, free: 19.96 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.01358, allocations: 2.933 MB / 0.661 GB, free: 17.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.393e-05/0.01366, allocations: 140.1 kB / 0.6611 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 6.346e-05/0.01373, allocations: 18.14 kB / 0.6611 GB, free: 17.74 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.177e-05/0.0138, allocations: 78.41 kB / 0.6612 GB, free: 17.67 MB / 0.5105 GB Notification: Performance of SimCode: time 8.31e-07/0.0138, allocations: 0 / 0.6612 GB, free: 17.67 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.03263, allocations: 6.244 MB / 0.6673 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.611/6.643, allocations: 12.38 kB / 0.6673 GB, free: 11.64 MB / 0.5105 GB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.438725437037647] Failed to read output from testmodel.py, exit status != 0: 6.724412573501468 6.731761321 6.725145273 Calling exit ...