Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.6.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_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.008007/0.008007, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002106/0.002106, allocations: 202.5 kB / 16.68 MB, free: 5.969 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo): time 1.044/1.044, allocations: 143.3 MB / 433.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 63.89 kB / 0.5953 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3569, allocations: 82.02 MB / 0.6754 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00269/0.3596, allocations: 1.953 MB / 0.6773 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.3609, allocations: 0.713 MB / 0.678 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.269e-05/0.361, allocations: 2.938 kB / 0.678 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002163/0.3612, allocations: 81.77 kB / 0.6781 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.3614, allocations: 92.84 kB / 0.6782 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005392/0.3619, allocations: 190.2 kB / 0.6783 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.3622, allocations: 261.5 kB / 0.6786 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.3624, allocations: 63.66 kB / 0.6787 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.3626, allocations: 117.5 kB / 0.6788 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.3628, allocations: 160.8 kB / 0.6789 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.692e-05/0.3628, allocations: 19.06 kB / 0.6789 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.363, allocations: 93.64 kB / 0.679 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.903e-05/0.3631, allocations: 54.25 kB / 0.6791 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.3632, allocations: 105.3 kB / 0.6792 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003955/0.3636, allocations: 319 kB / 0.6795 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3636, allocations: 3.984 kB / 0.6795 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.442e-06/0.3636, allocations: 0 / 0.6795 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.583e-06/0.3636, allocations: 5.031 kB / 0.6795 GB, free: 14.09 MB / 0.5137 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.0008845/0.3645, allocations: 0.5835 MB / 0.6801 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.3646, allocations: 9.219 kB / 0.6801 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.937e-05/0.3646, allocations: 47.77 kB / 0.6801 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.177e-05/0.3647, allocations: 32.09 kB / 0.6802 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.3652, allocations: 313.9 kB / 0.6805 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.3652, allocations: 10.94 kB / 0.6805 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.3653, allocations: 18.84 kB / 0.6805 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004021/0.3657, allocations: 225.7 kB / 0.6807 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3657, allocations: 3.984 kB / 0.6807 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.3657, allocations: 6.656 kB / 0.6807 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3657, allocations: 3.688 kB / 0.6807 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002595/0.366, allocations: 135.3 kB / 0.6808 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008906/0.3669, allocations: 0.6805 MB / 0.6815 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003808/0.3673, allocations: 163.8 kB / 0.6817 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.3675, allocations: 104.7 kB / 0.6818 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.3675, allocations: 0 / 0.6818 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002914/0.3678, allocations: 174.6 kB / 0.6819 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.3678, allocations: 0 / 0.6819 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0007031/0.3686, allocations: 374.5 kB / 0.6823 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.394e-05/0.3687, allocations: 132.1 kB / 0.6824 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.3689, allocations: 287.9 kB / 0.6827 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.369, allocations: 32.45 kB / 0.6827 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.3691, allocations: 155.5 kB / 0.6829 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.571e-05/0.3692, allocations: 45.22 kB / 0.6829 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-05/0.3693, allocations: 42.14 kB / 0.6829 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3694, allocations: 345.6 kB / 0.6833 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.3696, allocations: 86.83 kB / 0.6834 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.3698, allocations: 128.1 kB / 0.6835 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003571/0.3702, allocations: 244.7 kB / 0.6837 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3702, allocations: 1.5 kB / 0.6837 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005252/0.3707, allocations: 340.2 kB / 0.684 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.447e-05/0.3708, allocations: 42.78 kB / 0.6841 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3708, allocations: 0 / 0.6841 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3708, allocations: 2.438 kB / 0.6841 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.3709, allocations: 29.08 kB / 0.6841 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.321e-06/0.371, allocations: 1.844 kB / 0.6841 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.3711, allocations: 27.34 kB / 0.6841 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.3711, allocations: 5.156 kB / 0.6841 GB, free: 10.39 MB / 0.5137 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.0001994/0.3713, allocations: 200.8 kB / 0.6843 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.94e-05/0.3714, allocations: 24.92 kB / 0.6844 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.418e-05/0.3714, allocations: 27.48 kB / 0.6844 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3714, allocations: 1.5 kB / 0.6844 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3714, allocations: 0 / 0.6844 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3715, allocations: 9.188 kB / 0.6844 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002835/0.3717, allocations: 293.6 kB / 0.6847 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3718, allocations: 0 / 0.6847 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.3719, allocations: 12.38 kB / 0.6847 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3719, allocations: 0 / 0.6847 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.3719, allocations: 12.11 kB / 0.6847 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3719, allocations: 0 / 0.6847 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3719, allocations: 1.375 kB / 0.6847 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007304/0.3727, allocations: 469 kB / 0.6851 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.316e-05/0.3728, allocations: 102.5 kB / 0.6852 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.07e-05/0.3728, allocations: 3.75 kB / 0.6852 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.3729, allocations: 16.11 kB / 0.6853 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.373, allocations: 22.53 kB / 0.6853 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.373, allocations: 8.266 kB / 0.6853 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002086/0.3732, allocations: 201.1 kB / 0.6855 GB, free: 9.363 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3732, allocations: 4.062 kB / 0.6855 GB, free: 9.359 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002888/0.3735, allocations: 63.36 kB / 0.6855 GB, free: 9.344 MB / 0.5137 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.001187/0.3747, allocations: 1.033 MB / 0.6866 GB, free: 8.551 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005165/0.3753, allocations: 294 kB / 0.6868 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3753, allocations: 3.938 kB / 0.6868 GB, free: 8.387 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002604/0.3755, allocations: 185.8 kB / 0.687 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.3759, allocations: 32.06 kB / 0.687 GB, free: 8.246 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003707/0.3796, allocations: 2.791 MB / 0.6898 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.38, allocations: 0.7524 MB / 0.6905 GB, free: 5.57 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.796e-05/0.3801, allocations: 18.5 kB / 0.6905 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.3802, allocations: 72.75 kB / 0.6906 GB, free: 5.5 MB / 0.5137 GB Notification: Performance of SimCode: time 4.41e-07/0.3803, allocations: 4 kB / 0.6906 GB, free: 5.496 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.4078, allocations: 5.412 MB / 0.6959 GB, free: 0.8789 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.991/8.399, allocations: 18.89 kB / 0.6959 GB, free: 0.8672 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.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 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)