Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.003829/0.003829, allocations: 101.1 kB / 15.88 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 194.5 kB / 16.79 MB, free: 6.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 222.9 MB / 240.5 MB, free: 13.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6418/0.6418, allocations: 115.3 MB / 405.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001222, allocations: 63.89 kB / 493 MB, free: 0.7656 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2753, allocations: 76.17 MB / 0.5558 GB, free: 35.6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002396/0.2778, allocations: 1.988 MB / 0.5578 GB, free: 34.23 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009001/0.2787, allocations: 0.7159 MB / 0.5585 GB, free: 33.75 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.278e-05/0.2788, allocations: 2.688 kB / 0.5585 GB, free: 33.75 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.279, allocations: 81.78 kB / 0.5585 GB, free: 33.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.442e-05/0.2791, allocations: 82.45 kB / 0.5586 GB, free: 33.71 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004041/0.2795, allocations: 159 kB / 0.5588 GB, free: 33.62 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.2797, allocations: 242.4 kB / 0.559 GB, free: 33.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.2798, allocations: 72.5 kB / 0.5591 GB, free: 33.49 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.454e-05/0.2799, allocations: 97.42 kB / 0.5592 GB, free: 33.46 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.2801, allocations: 150.8 kB / 0.5593 GB, free: 33.41 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.2801, allocations: 8.312 kB / 0.5593 GB, free: 33.41 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.2802, allocations: 79.56 kB / 0.5594 GB, free: 33.39 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.774e-05/0.2803, allocations: 49.88 kB / 0.5594 GB, free: 33.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.544e-05/0.2804, allocations: 93.67 kB / 0.5595 GB, free: 33.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.2806, allocations: 291 kB / 0.5598 GB, free: 33.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2806, allocations: 0.7188 kB / 0.5598 GB, free: 33.19 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2806, allocations: 1.531 kB / 0.5598 GB, free: 33.19 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.2807, allocations: 0.875 kB / 0.5598 GB, free: 33.19 MB / 446.1 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.0006326/0.2813, allocations: 0.5804 MB / 0.5604 GB, free: 32.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2813, allocations: 15.31 kB / 0.5604 GB, free: 32.67 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.857e-05/0.2814, allocations: 45.73 kB / 0.5604 GB, free: 32.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.079e-05/0.2814, allocations: 33.45 kB / 0.5605 GB, free: 32.61 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.2818, allocations: 295.6 kB / 0.5608 GB, free: 32.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2818, allocations: 16.22 kB / 0.5608 GB, free: 32.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.2818, allocations: 13.03 kB / 0.5608 GB, free: 32.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003276/0.2822, allocations: 227.7 kB / 0.561 GB, free: 32.21 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.2822, allocations: 1.625 kB / 0.561 GB, free: 32.21 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.2822, allocations: 6.781 kB / 0.561 GB, free: 32.21 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.2822, allocations: 3.719 kB / 0.561 GB, free: 32.21 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002263/0.2825, allocations: 136.4 kB / 0.5611 GB, free: 32.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006302/0.2831, allocations: 0.6873 MB / 0.5618 GB, free: 31.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.2834, allocations: 167.7 kB / 0.562 GB, free: 31.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.2836, allocations: 98.28 kB / 0.5621 GB, free: 31.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.2836, allocations: 2.312 kB / 0.5621 GB, free: 31.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.2838, allocations: 167.7 kB / 0.5622 GB, free: 31.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.2838, allocations: 0 / 0.5622 GB, free: 31.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005714/0.2844, allocations: 375.6 kB / 0.5626 GB, free: 31.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.2845, allocations: 137.9 kB / 0.5627 GB, free: 31.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.2847, allocations: 280 kB / 0.563 GB, free: 30.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.2847, allocations: 33.75 kB / 0.563 GB, free: 30.92 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/0.2848, allocations: 151.3 kB / 0.5632 GB, free: 30.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.2848, allocations: 50.23 kB / 0.5632 GB, free: 30.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.156e-05/0.2849, allocations: 45.38 kB / 0.5632 GB, free: 30.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.353e-05/0.285, allocations: 339.7 kB / 0.5636 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.2851, allocations: 86.09 kB / 0.5637 GB, free: 30.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.2853, allocations: 133.7 kB / 0.5638 GB, free: 30.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.2856, allocations: 243.6 kB / 0.564 GB, free: 30.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2856, allocations: 2.781 kB / 0.564 GB, free: 30.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004244/0.286, allocations: 334.4 kB / 0.5643 GB, free: 30.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.286, allocations: 39.31 kB / 0.5644 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.2861, allocations: 1.766 kB / 0.5644 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.2861, allocations: 2.875 kB / 0.5644 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.2862, allocations: 29.91 kB / 0.5644 GB, free: 29.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.2862, allocations: 1.859 kB / 0.5644 GB, free: 29.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.2863, allocations: 23.39 kB / 0.5644 GB, free: 29.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.2863, allocations: 9.844 kB / 0.5644 GB, free: 29.96 MB / 446.1 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.0001263/0.2865, allocations: 197.5 kB / 0.5646 GB, free: 29.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.2865, allocations: 25.28 kB / 0.5647 GB, free: 29.78 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.526e-05/0.2866, allocations: 32.16 kB / 0.5647 GB, free: 29.76 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2866, allocations: 1.375 kB / 0.5647 GB, free: 29.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2866, allocations: 1.219 kB / 0.5647 GB, free: 29.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.2866, allocations: 1.812 kB / 0.5647 GB, free: 29.76 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.2868, allocations: 288.6 kB / 0.565 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2868, allocations: 0 / 0.565 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.634e-05/0.2869, allocations: 21 kB / 0.565 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2869, allocations: 1.375 kB / 0.565 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.2869, allocations: 3.781 kB / 0.565 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2869, allocations: 2.25 kB / 0.565 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2869, allocations: 0 / 0.565 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/0.2876, allocations: 472.7 kB / 0.5654 GB, free: 29.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-05/0.2876, allocations: 100.8 kB / 0.5655 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/0.2877, allocations: 7.562 kB / 0.5655 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.2878, allocations: 17.38 kB / 0.5656 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.165e-05/0.2879, allocations: 25.41 kB / 0.5656 GB, free: 29.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.2879, allocations: 5.672 kB / 0.5656 GB, free: 29.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001551/0.288, allocations: 205.7 kB / 0.5658 GB, free: 29.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.288, allocations: 0 / 0.5658 GB, free: 29.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002532/0.2883, allocations: 60.03 kB / 0.5658 GB, free: 29.07 MB / 446.1 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.0008343/0.2891, allocations: 1.022 MB / 0.5668 GB, free: 28.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004039/0.2896, allocations: 297.5 kB / 0.5671 GB, free: 28.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2896, allocations: 0.625 kB / 0.5671 GB, free: 28.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.2898, allocations: 187.3 kB / 0.5673 GB, free: 28.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.2901, allocations: 39.52 kB / 0.5673 GB, free: 28.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.2934, allocations: 2.824 MB / 0.5701 GB, free: 26.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.2936, allocations: 0.7561 MB / 0.5708 GB, free: 25.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.086e-05/0.2937, allocations: 22.69 kB / 0.5709 GB, free: 25.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.913e-05/0.2938, allocations: 72.11 kB / 0.5709 GB, free: 25.53 MB / 446.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2938, allocations: 1.906 kB / 0.5709 GB, free: 25.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01458/0.3084, allocations: 4.932 MB / 0.5757 GB, free: 25.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/0.3086, allocations: 200.5 kB / 0.5759 GB, free: 24.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/1.949, allocations: 1.203 kB / 0.5759 GB, free: 24.84 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)