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.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.426/1.426, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002423/0.002423, allocations: 270.9 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.069/1.069, allocations: 178.6 MB / 0.5073 GB, free: 4.57 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004401/0.004401, allocations: 97.56 kB / 0.6065 GB, free: 24.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1616, allocations: 89.14 MB / 0.6936 GB, free: 4.234 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00337/0.165, allocations: 1.953 MB / 0.6955 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.1663, allocations: 0.7151 MB / 0.6962 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.46e-05/0.1664, allocations: 0.625 kB / 0.6962 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.1666, allocations: 84.69 kB / 0.6963 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.1668, allocations: 95.83 kB / 0.6964 GB, free: 1.383 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005681/0.1673, allocations: 185.4 kB / 0.6966 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000321/0.1677, allocations: 260.4 kB / 0.6968 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1679, allocations: 70.53 kB / 0.6969 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.168, allocations: 119.6 kB / 0.697 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.1682, allocations: 151.5 kB / 0.6971 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.983e-05/0.1683, allocations: 20 kB / 0.6971 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.1684, allocations: 83.94 kB / 0.6972 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.64e-05/0.1685, allocations: 63.77 kB / 0.6973 GB, free: 464 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.1686, allocations: 107.3 kB / 0.6974 GB, free: 356 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003661/0.169, allocations: 295.1 kB / 0.6977 GB, free: 60 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.169, allocations: 0 / 0.6977 GB, free: 60 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.169, allocations: 0 / 0.6977 GB, free: 60 kB / 494.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1691, allocations: 0 / 0.6977 GB, free: 60 kB / 494.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.0009139/0.17, allocations: 0.5858 MB / 0.6982 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.17, allocations: 12.03 kB / 0.6983 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.752e-05/0.1701, allocations: 46.73 kB / 0.6983 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.435e-05/0.1702, allocations: 32.56 kB / 0.6983 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.1706, allocations: 306.7 kB / 0.6986 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.1707, allocations: 12.38 kB / 0.6986 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/0.1707, allocations: 12.38 kB / 0.6986 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/0.1711, allocations: 227.8 kB / 0.6989 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1711, allocations: 4 kB / 0.6989 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.1712, allocations: 4 kB / 0.6989 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1712, allocations: 8 kB / 0.6989 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.1715, allocations: 132.3 kB / 0.699 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008765/0.1723, allocations: 0.6808 MB / 0.6997 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.1727, allocations: 162.5 kB / 0.6998 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.1729, allocations: 105 kB / 0.6999 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.173, allocations: 0 / 0.6999 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.1733, allocations: 173 kB / 0.7001 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.1733, allocations: 0 / 0.7001 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007256/0.1741, allocations: 380.5 kB / 0.7005 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.862e-05/0.1742, allocations: 136.5 kB / 0.7006 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.1744, allocations: 278.7 kB / 0.7008 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.1745, allocations: 29.7 kB / 0.7009 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.1746, allocations: 156.2 kB / 0.701 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.1747, allocations: 43.44 kB / 0.7011 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.061e-05/0.1748, allocations: 41.7 kB / 0.7011 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1749, allocations: 342.8 kB / 0.7014 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.1751, allocations: 87.95 kB / 0.7015 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.1753, allocations: 129.8 kB / 0.7016 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.1757, allocations: 245.5 kB / 0.7019 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.1757, allocations: 4 kB / 0.7019 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005499/0.1763, allocations: 343.5 kB / 0.7022 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.757e-05/0.1763, allocations: 37.69 kB / 0.7022 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.1763, allocations: 0 / 0.7022 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1763, allocations: 0 / 0.7022 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.1765, allocations: 27.98 kB / 0.7023 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.1765, allocations: 4.094 kB / 0.7023 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.1766, allocations: 23.83 kB / 0.7023 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.1767, allocations: 4 kB / 0.7023 GB, free: 10.98 MB / 0.4981 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.0002006/0.1769, allocations: 200 kB / 0.7025 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.072e-05/0.1769, allocations: 27.62 kB / 0.7025 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.326e-05/0.177, allocations: 29.83 kB / 0.7025 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.177, allocations: 3.938 kB / 0.7025 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.177, allocations: 4.094 kB / 0.7026 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.177, allocations: 3.938 kB / 0.7026 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.1773, allocations: 293.4 kB / 0.7028 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1773, allocations: 0 / 0.7028 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.1774, allocations: 15.98 kB / 0.7029 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1774, allocations: 0 / 0.7029 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.1775, allocations: 8 kB / 0.7029 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.279e-06/0.1775, allocations: 3.938 kB / 0.7029 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1775, allocations: 4 kB / 0.7029 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007485/0.1782, allocations: 467.9 kB / 0.7033 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.051e-05/0.1783, allocations: 104.8 kB / 0.7034 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/0.1784, allocations: 4 kB / 0.7034 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1785, allocations: 15.98 kB / 0.7034 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.1786, allocations: 23.95 kB / 0.7035 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.1786, allocations: 4 kB / 0.7035 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002038/0.1788, allocations: 206 kB / 0.7037 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.1788, allocations: 3.938 kB / 0.7037 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002924/0.1791, allocations: 55.94 kB / 0.7037 GB, free: 9.422 MB / 0.4981 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.001146/0.1803, allocations: 1.031 MB / 0.7047 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000503/0.1808, allocations: 295.2 kB / 0.705 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1808, allocations: 0 / 0.705 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.1811, allocations: 183.3 kB / 0.7052 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.1814, allocations: 36.8 kB / 0.7052 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003699/0.1851, allocations: 2.78 MB / 0.7079 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.1855, allocations: 0.7475 MB / 0.7087 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.969e-05/0.1856, allocations: 17.55 kB / 0.7087 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.1857, allocations: 79.41 kB / 0.7087 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.1857, allocations: 3.938 kB / 0.7088 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0287/0.2144, allocations: 5.348 MB / 0.714 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/7.866, allocations: 18.27 kB / 0.714 GB, free: 14.83 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)