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.001084/0.001084, allocations: 102.9 kB / 16.27 MB, free: 5.93 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.001679/0.001679, allocations: 190.5 kB / 17.2 MB, free: 5.574 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.728/0.728, allocations: 122.9 MB / 413.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.89 kB / 0.4912 GB, free: 7.328 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3072, allocations: 77.92 MB / 0.5673 GB, free: 32.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002684/0.3099, allocations: 1.927 MB / 0.5692 GB, free: 31.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009824/0.3109, allocations: 0.7068 MB / 0.5699 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.405e-05/0.311, allocations: 2.344 kB / 0.5699 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.3112, allocations: 83.48 kB / 0.5699 GB, free: 30.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.3113, allocations: 88.22 kB / 0.57 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004882/0.3118, allocations: 195.6 kB / 0.5702 GB, free: 30.84 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002609/0.3121, allocations: 263.1 kB / 0.5705 GB, free: 30.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.3123, allocations: 72.06 kB / 0.5705 GB, free: 30.7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.3124, allocations: 115.2 kB / 0.5706 GB, free: 30.65 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.3126, allocations: 146.2 kB / 0.5708 GB, free: 30.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.79e-05/0.3126, allocations: 21.41 kB / 0.5708 GB, free: 30.6 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.3128, allocations: 100.8 kB / 0.5709 GB, free: 30.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.811e-05/0.3128, allocations: 64.14 kB / 0.571 GB, free: 30.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.152e-05/0.3129, allocations: 104.7 kB / 0.5711 GB, free: 30.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.3132, allocations: 297.3 kB / 0.5713 GB, free: 30.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3133, allocations: 2.219 kB / 0.5713 GB, free: 30.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3133, allocations: 1.141 kB / 0.5713 GB, free: 30.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.3133, allocations: 0 / 0.5713 GB, free: 30.34 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.0006769/0.314, allocations: 0.5791 MB / 0.5719 GB, free: 29.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.314, allocations: 11.75 kB / 0.5719 GB, free: 29.83 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.664e-05/0.314, allocations: 54.16 kB / 0.572 GB, free: 29.78 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.413e-05/0.3141, allocations: 32.94 kB / 0.572 GB, free: 29.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.3145, allocations: 297.3 kB / 0.5723 GB, free: 29.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.3145, allocations: 10.56 kB / 0.5723 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/0.3145, allocations: 15.25 kB / 0.5723 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003419/0.3149, allocations: 227.3 kB / 0.5725 GB, free: 29.37 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3149, allocations: 1.062 kB / 0.5725 GB, free: 29.37 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.3149, allocations: 7.219 kB / 0.5725 GB, free: 29.37 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.3149, allocations: 2.781 kB / 0.5725 GB, free: 29.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/0.3152, allocations: 132.2 kB / 0.5727 GB, free: 29.33 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006989/0.3159, allocations: 0.6862 MB / 0.5733 GB, free: 28.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.3162, allocations: 161.3 kB / 0.5735 GB, free: 28.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.3164, allocations: 95.3 kB / 0.5736 GB, free: 28.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.3164, allocations: 3.625 kB / 0.5736 GB, free: 28.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.3167, allocations: 173.1 kB / 0.5738 GB, free: 28.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.3167, allocations: 0 / 0.5738 GB, free: 28.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006186/0.3173, allocations: 384 kB / 0.5741 GB, free: 28.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.3174, allocations: 136.9 kB / 0.5742 GB, free: 28.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.3176, allocations: 276 kB / 0.5745 GB, free: 28.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.3176, allocations: 34.95 kB / 0.5745 GB, free: 28.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.524e-05/0.3177, allocations: 158.9 kB / 0.5747 GB, free: 27.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.3178, allocations: 37.2 kB / 0.5747 GB, free: 27.92 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.264e-05/0.3178, allocations: 42.42 kB / 0.5748 GB, free: 27.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.598e-05/0.3179, allocations: 343.2 kB / 0.5751 GB, free: 27.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.3181, allocations: 87.28 kB / 0.5752 GB, free: 27.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.3183, allocations: 135.2 kB / 0.5753 GB, free: 27.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.3186, allocations: 239.8 kB / 0.5755 GB, free: 27.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3186, allocations: 2.281 kB / 0.5755 GB, free: 27.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004633/0.3191, allocations: 330.5 kB / 0.5759 GB, free: 27.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.3191, allocations: 35.75 kB / 0.5759 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.3191, allocations: 2.422 kB / 0.5759 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.3191, allocations: 2.156 kB / 0.5759 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.3192, allocations: 26.39 kB / 0.5759 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.3193, allocations: 7.156 kB / 0.5759 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.3194, allocations: 30.14 kB / 0.576 GB, free: 27.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.3194, allocations: 6.906 kB / 0.576 GB, free: 27.13 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.0001295/0.3195, allocations: 198.1 kB / 0.5762 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.3196, allocations: 25.34 kB / 0.5762 GB, free: 26.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.3196, allocations: 35.72 kB / 0.5762 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3196, allocations: 2.094 kB / 0.5762 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3196, allocations: 0.6094 kB / 0.5762 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.3197, allocations: 0.5625 kB / 0.5762 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/0.3199, allocations: 290.8 kB / 0.5765 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3199, allocations: 1.344 kB / 0.5765 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.796e-05/0.32, allocations: 14.2 kB / 0.5765 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.32, allocations: 1.812 kB / 0.5765 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.32, allocations: 8.453 kB / 0.5765 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.32, allocations: 2.125 kB / 0.5765 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.32, allocations: 0.875 kB / 0.5765 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.3206, allocations: 474.7 kB / 0.577 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.3207, allocations: 94.94 kB / 0.5771 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.136e-05/0.3207, allocations: 8.641 kB / 0.5771 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.3208, allocations: 11.95 kB / 0.5771 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.593e-05/0.3209, allocations: 28.09 kB / 0.5771 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.321, allocations: 6.812 kB / 0.5771 GB, free: 26.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000154/0.3211, allocations: 206.8 kB / 0.5773 GB, free: 26.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3211, allocations: 2.156 kB / 0.5773 GB, free: 26.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002762/0.3214, allocations: 59.98 kB / 0.5774 GB, free: 26.23 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.0008864/0.3223, allocations: 1.026 MB / 0.5784 GB, free: 25.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004513/0.3228, allocations: 307.9 kB / 0.5787 GB, free: 25.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3228, allocations: 192 / 0.5787 GB, free: 25.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002043/0.323, allocations: 186.6 kB / 0.5788 GB, free: 25.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.3233, allocations: 35.17 kB / 0.5789 GB, free: 25.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003095/0.3264, allocations: 2.776 MB / 0.5816 GB, free: 23.49 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/0.3266, allocations: 0.7519 MB / 0.5823 GB, free: 22.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.399e-05/0.3267, allocations: 17.27 kB / 0.5823 GB, free: 22.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.093e-05/0.3267, allocations: 79.41 kB / 0.5824 GB, free: 22.73 MB / 446.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3268, allocations: 0 / 0.5824 GB, free: 22.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.3485, allocations: 5.327 MB / 0.5876 GB, free: 20.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.047/7.396, allocations: 9.781 kB / 0.5876 GB, free: 20.34 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)