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.0007866/0.0007866, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008209/0.0008209, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.866/0.866, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.001314/0.001314, allocations: 229.6 kB / 259.4 MB, free: 13.01 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.6869/0.6869, allocations: 138.4 MB / 454.3 MB, free: 30 MB / 410.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.583e-06/1.583e-06, allocations: 0 / 0.6463 GB, free: 1.887 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.342e-05/1.5e-05, allocations: 5.094 kB / 0.6463 GB, free: 1.883 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.2345/0.2345, allocations: 1.925 MB / 0.6481 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001106/0.2356, allocations: 0.6998 MB / 0.6488 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.2357, allocations: 7.969 kB / 0.6488 GB, free: 55.83 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.2359, allocations: 80.94 kB / 0.6489 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.236, allocations: 93.25 kB / 0.649 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004747/0.2365, allocations: 187.3 kB / 0.6492 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0002564/0.2368, allocations: 259.3 kB / 0.6494 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.2369, allocations: 48.19 kB / 0.6495 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.237, allocations: 162 kB / 0.6496 GB, free: 55.75 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.2372, allocations: 140.1 kB / 0.6498 GB, free: 55.74 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.061e-05/0.2372, allocations: 20.53 kB / 0.6498 GB, free: 55.74 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.2374, allocations: 87.45 kB / 0.6499 GB, free: 55.74 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 6.436e-05/0.2374, allocations: 61.47 kB / 0.6499 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 6.247e-05/0.2375, allocations: 61.48 kB / 0.65 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0003065/0.2378, allocations: 337.5 kB / 0.6503 GB, free: 55.68 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2378, allocations: 0 / 0.6503 GB, free: 55.68 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2378, allocations: 0.9375 kB / 0.6503 GB, free: 55.68 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.2378, allocations: 0 / 0.6503 GB, free: 55.68 MB / 0.5573 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.0005277/0.2383, allocations: 0.5069 MB / 0.6508 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2384, allocations: 13.11 kB / 0.6508 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.088e-05/0.2384, allocations: 51.25 kB / 0.6509 GB, free: 55.26 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.276e-05/0.2385, allocations: 29.56 kB / 0.6509 GB, free: 55.25 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.2388, allocations: 243.6 kB / 0.6511 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.2388, allocations: 14.16 kB / 0.6511 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.2388, allocations: 16.28 kB / 0.6512 GB, free: 55.09 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.2391, allocations: 314.1 kB / 0.6515 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2391, allocations: 0.75 kB / 0.6515 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.2391, allocations: 9.594 kB / 0.6515 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.2391, allocations: 5.531 kB / 0.6515 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001661/0.2393, allocations: 158.4 kB / 0.6516 GB, free: 54.86 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005289/0.2398, allocations: 0.6124 MB / 0.6522 GB, free: 54.36 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.2401, allocations: 186.1 kB / 0.6524 GB, free: 54.27 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.2402, allocations: 120.2 kB / 0.6525 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.2402, allocations: 10.23 kB / 0.6525 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001836/0.2404, allocations: 199.8 kB / 0.6527 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=15): time 1.193e-06/0.2404, allocations: 0 / 0.6527 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of matching and sorting (n=15): time 0.0004325/0.2408, allocations: 441.3 kB / 0.6531 GB, free: 53.85 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.2408, allocations: 136.9 kB / 0.6533 GB, free: 53.69 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.241, allocations: 278.8 kB / 0.6535 GB, free: 53.54 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.241, allocations: 32.39 kB / 0.6536 GB, free: 53.51 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 6.961e-05/0.2411, allocations: 164.4 kB / 0.6537 GB, free: 53.37 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.2411, allocations: 40.19 kB / 0.6538 GB, free: 53.34 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.2412, allocations: 41.81 kB / 0.6538 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.875e-05/0.2412, allocations: 339.2 kB / 0.6541 GB, free: 52.98 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.2413, allocations: 119 kB / 0.6542 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.2415, allocations: 216.5 kB / 0.6544 GB, free: 52.76 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.2417, allocations: 245.8 kB / 0.6547 GB, free: 52.61 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2417, allocations: 1.969 kB / 0.6547 GB, free: 52.61 MB / 0.5573 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003356/0.242, allocations: 379.3 kB / 0.655 GB, free: 52.43 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.242, allocations: 41.09 kB / 0.6551 GB, free: 52.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.242, allocations: 0 / 0.6551 GB, free: 52.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2421, allocations: 3.531 kB / 0.6551 GB, free: 52.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.387e-05/0.2421, allocations: 25.98 kB / 0.6551 GB, free: 52.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.2421, allocations: 1.906 kB / 0.6551 GB, free: 52.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.953e-05/0.2422, allocations: 25.27 kB / 0.6551 GB, free: 52.39 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.2422, allocations: 8.469 kB / 0.6551 GB, free: 52.39 MB / 0.5573 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.0001101/0.2423, allocations: 194.8 kB / 0.6553 GB, free: 52.22 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.2424, allocations: 31.31 kB / 0.6554 GB, free: 52.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.31e-05/0.2424, allocations: 30.22 kB / 0.6554 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2424, allocations: 1.938 kB / 0.6554 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2424, allocations: 0 / 0.6554 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2424, allocations: 2.391 kB / 0.6554 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.2426, allocations: 240.8 kB / 0.6556 GB, free: 52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2426, allocations: 0 / 0.6556 GB, free: 52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.307e-05/0.2427, allocations: 15.89 kB / 0.6556 GB, free: 52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2427, allocations: 0 / 0.6556 GB, free: 52 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.2427, allocations: 12.16 kB / 0.6556 GB, free: 51.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2427, allocations: 0 / 0.6556 GB, free: 51.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2427, allocations: 1.781 kB / 0.6556 GB, free: 51.99 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004924/0.2432, allocations: 0.5274 MB / 0.6562 GB, free: 51.71 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.2432, allocations: 19.19 kB / 0.6562 GB, free: 51.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.2432, allocations: 11.77 kB / 0.6562 GB, free: 51.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.507e-05/0.2433, allocations: 15.38 kB / 0.6562 GB, free: 51.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.357e-05/0.2433, allocations: 28.59 kB / 0.6562 GB, free: 51.69 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.2434, allocations: 8.25 kB / 0.6562 GB, free: 51.69 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001202/0.2435, allocations: 202.5 kB / 0.6564 GB, free: 51.58 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.21e-07/0.2435, allocations: 0 / 0.6564 GB, free: 51.58 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002032/0.2437, allocations: 63.3 kB / 0.6565 GB, free: 51.56 MB / 0.5573 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.0006048/0.2443, allocations: 1.095 MB / 0.6576 GB, free: 50.75 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0002893/0.2446, allocations: 330 kB / 0.6579 GB, free: 50.56 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2446, allocations: 0 / 0.6579 GB, free: 50.56 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.2447, allocations: 188.8 kB / 0.6581 GB, free: 50.44 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000203/0.2449, allocations: 32.53 kB / 0.6581 GB, free: 50.43 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.247, allocations: 2.938 MB / 0.661 GB, free: 48.54 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.341e-05/0.247, allocations: 140.6 kB / 0.6611 GB, free: 48.45 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 6.659e-05/0.2471, allocations: 21.05 kB / 0.6611 GB, free: 48.45 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.072e-05/0.2472, allocations: 77.66 kB / 0.6612 GB, free: 48.39 MB / 0.5573 GB Notification: Performance of SimCode: time 6.01e-07/0.2472, allocations: 0 / 0.6612 GB, free: 48.39 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02131/0.2685, allocations: 6.246 MB / 0.6673 GB, free: 47.24 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.562/6.83, allocations: 11.67 kB / 0.6673 GB, free: 47.24 MB / 0.5573 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=50 --tolerance=1e-06 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.382421030662954] Failed to read output from testmodel.py, exit status != 0: 6.9135411800816655 6.921833582 6.68186065 Calling exit ...