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/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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.004323/0.004323, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001288/0.001288, allocations: 196.3 kB / 16.67 MB, free: 5.934 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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/package.mo): time 0.9283/0.9283, allocations: 143 MB / 433.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 67.89 kB / 0.5951 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3533, allocations: 82.03 MB / 0.6752 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00252/0.3558, allocations: 1.936 MB / 0.677 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001093/0.3569, allocations: 0.7217 MB / 0.6778 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.541e-05/0.357, allocations: 3.125 kB / 0.6778 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002109/0.3573, allocations: 82.66 kB / 0.6778 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.3574, allocations: 96.8 kB / 0.6779 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005055/0.3579, allocations: 186.8 kB / 0.6781 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002739/0.3582, allocations: 258.4 kB / 0.6784 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.3583, allocations: 81.42 kB / 0.6784 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.3585, allocations: 109.7 kB / 0.6785 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.3587, allocations: 156.3 kB / 0.6787 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.286e-05/0.3587, allocations: 19.84 kB / 0.6787 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.3589, allocations: 93.73 kB / 0.6788 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.473e-05/0.3589, allocations: 54.38 kB / 0.6788 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 9.887e-05/0.359, allocations: 110.1 kB / 0.6789 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.3594, allocations: 311.6 kB / 0.6792 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.3594, allocations: 0 / 0.6792 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3594, allocations: 4 kB / 0.6793 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.3594, allocations: 0 / 0.6793 GB, free: 14.12 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.0007988/0.3602, allocations: 0.5835 MB / 0.6798 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.3603, allocations: 10.16 kB / 0.6798 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.775e-05/0.3603, allocations: 48.08 kB / 0.6799 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.912e-05/0.3604, allocations: 31.44 kB / 0.6799 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.3608, allocations: 318.8 kB / 0.6802 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.3609, allocations: 9.781 kB / 0.6802 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.3609, allocations: 18.25 kB / 0.6802 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.3613, allocations: 230.5 kB / 0.6805 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3613, allocations: 0 / 0.6805 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.3613, allocations: 6.406 kB / 0.6805 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3614, allocations: 3.594 kB / 0.6805 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.3616, allocations: 130.9 kB / 0.6806 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007826/0.3624, allocations: 0.6894 MB / 0.6813 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003451/0.3628, allocations: 163.1 kB / 0.6814 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.3629, allocations: 100.6 kB / 0.6815 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.3629, allocations: 1.156 kB / 0.6815 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002679/0.3632, allocations: 173.4 kB / 0.6817 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.3632, allocations: 1.281 kB / 0.6817 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0007005/0.3639, allocations: 373.1 kB / 0.682 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.893e-05/0.364, allocations: 136 kB / 0.6822 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.3643, allocations: 280.2 kB / 0.6824 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.3643, allocations: 36.39 kB / 0.6825 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.3645, allocations: 159.5 kB / 0.6826 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.245e-05/0.3645, allocations: 45.11 kB / 0.6827 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.081e-05/0.3646, allocations: 42.2 kB / 0.6827 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3647, allocations: 345.6 kB / 0.683 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.3649, allocations: 86.83 kB / 0.6831 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.3651, allocations: 128.2 kB / 0.6832 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.3654, allocations: 244.4 kB / 0.6835 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3654, allocations: 3.938 kB / 0.6835 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004838/0.3659, allocations: 341 kB / 0.6838 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.366, allocations: 37.56 kB / 0.6838 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.366, allocations: 1.281 kB / 0.6838 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.366, allocations: 2.344 kB / 0.6838 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.3661, allocations: 26.17 kB / 0.6839 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.3661, allocations: 5.219 kB / 0.6839 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.3663, allocations: 25.97 kB / 0.6839 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.3663, allocations: 6.75 kB / 0.6839 GB, free: 10.42 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.0001706/0.3665, allocations: 193.5 kB / 0.6841 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.015e-05/0.3665, allocations: 24.48 kB / 0.6841 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.093e-05/0.3666, allocations: 28 kB / 0.6841 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3666, allocations: 0 / 0.6841 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.3666, allocations: 9.766 kB / 0.6841 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3666, allocations: 3.938 kB / 0.6842 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.3669, allocations: 293.9 kB / 0.6844 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3669, allocations: 4 kB / 0.6844 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.73e-05/0.367, allocations: 11.12 kB / 0.6844 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.367, allocations: 1.062 kB / 0.6844 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.367, allocations: 11.7 kB / 0.6845 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.367, allocations: 0 / 0.6845 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.367, allocations: 1.406 kB / 0.6845 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000669/0.3677, allocations: 468.1 kB / 0.6849 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.978e-05/0.3678, allocations: 98.45 kB / 0.685 GB, free: 9.551 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.109e-05/0.3678, allocations: 9.5 kB / 0.685 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.3679, allocations: 10.86 kB / 0.685 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/0.368, allocations: 26.66 kB / 0.685 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.3681, allocations: 4.094 kB / 0.685 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000189/0.3683, allocations: 210.2 kB / 0.6852 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.673e-06/0.3683, allocations: 0 / 0.6852 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000279/0.3685, allocations: 67.05 kB / 0.6853 GB, free: 9.371 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.001046/0.3696, allocations: 1.026 MB / 0.6863 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004877/0.3701, allocations: 293.8 kB / 0.6866 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3701, allocations: 0 / 0.6866 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002431/0.3704, allocations: 182.1 kB / 0.6868 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.3707, allocations: 48.44 kB / 0.6868 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003216/0.3739, allocations: 2.786 MB / 0.6895 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.3742, allocations: 0.7548 MB / 0.6903 GB, free: 5.598 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.552e-05/0.3743, allocations: 12.73 kB / 0.6903 GB, free: 5.594 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.3744, allocations: 77.84 kB / 0.6904 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.3744, allocations: 0 / 0.6904 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.396, allocations: 5.413 MB / 0.6956 GB, free: 0.9531 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.158/7.553, allocations: 8.984 kB / 0.6957 GB, free: 0.9492 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)