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.001443/0.001443, allocations: 108 kB / 15.61 MB, free: 148 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.001448/0.001448, allocations: 194 kB / 16.53 MB, free: 6.691 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.362/1.362, 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.002388/0.002388, allocations: 278.9 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9833/0.9833, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002781/0.002781, allocations: 107.1 kB / 0.5953 GB, free: 27.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1504, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003237/0.1537, allocations: 1.931 MB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1548, allocations: 0.7142 MB / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.077e-05/0.1549, allocations: 0 / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002164/0.1552, allocations: 85.34 kB / 0.683 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.1553, allocations: 89.58 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005227/0.1558, allocations: 184.6 kB / 0.6832 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002986/0.1561, allocations: 271.9 kB / 0.6835 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.1563, allocations: 67.84 kB / 0.6835 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.1565, allocations: 115.7 kB / 0.6837 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002014/0.1567, allocations: 155.5 kB / 0.6838 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/0.1567, allocations: 20 kB / 0.6838 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.1569, allocations: 87.94 kB / 0.6839 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.528e-05/0.157, allocations: 63.77 kB / 0.684 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.1571, allocations: 103.4 kB / 0.6841 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003374/0.1574, allocations: 299 kB / 0.6844 GB, free: 12.42 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1574, allocations: 7.938 kB / 0.6844 GB, free: 12.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1574, allocations: 0 / 0.6844 GB, free: 12.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1575, allocations: 0 / 0.6844 GB, free: 12.41 MB / 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.0008437/0.1583, allocations: 0.576 MB / 0.6849 GB, free: 11.78 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.1583, allocations: 16.03 kB / 0.6849 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.177e-05/0.1584, allocations: 46.73 kB / 0.685 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.371e-05/0.1585, allocations: 32.56 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004422/0.1589, allocations: 298.9 kB / 0.6853 GB, free: 11.35 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.159, allocations: 12.38 kB / 0.6853 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.159, allocations: 12.38 kB / 0.6853 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003857/0.1594, allocations: 227.1 kB / 0.6855 GB, free: 11.08 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1594, allocations: 4 kB / 0.6855 GB, free: 11.08 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.1594, allocations: 4 kB / 0.6855 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.1594, allocations: 4 kB / 0.6855 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.1597, allocations: 128.4 kB / 0.6857 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008687/0.1606, allocations: 0.6884 MB / 0.6863 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003707/0.161, allocations: 162.5 kB / 0.6865 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.1611, allocations: 101 kB / 0.6866 GB, free: 9.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.1612, allocations: 0 / 0.6866 GB, free: 9.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003333/0.1615, allocations: 181 kB / 0.6868 GB, free: 9.734 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1615, allocations: 0 / 0.6868 GB, free: 9.734 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006877/0.1622, allocations: 378.8 kB / 0.6871 GB, free: 9.352 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.1623, allocations: 132.5 kB / 0.6873 GB, free: 9.191 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.1626, allocations: 278.6 kB / 0.6875 GB, free: 8.914 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.1626, allocations: 33.7 kB / 0.6876 GB, free: 8.875 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.1628, allocations: 152.3 kB / 0.6877 GB, free: 8.723 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.1628, allocations: 51.34 kB / 0.6877 GB, free: 8.672 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.642e-05/0.1629, allocations: 41.7 kB / 0.6878 GB, free: 8.625 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1631, allocations: 342.8 kB / 0.6881 GB, free: 8.281 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.1632, allocations: 83.95 kB / 0.6882 GB, free: 8.199 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001992/0.1634, allocations: 130.2 kB / 0.6883 GB, free: 8.055 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.1638, allocations: 242.7 kB / 0.6885 GB, free: 7.793 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1638, allocations: 0 / 0.6885 GB, free: 7.793 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005233/0.1643, allocations: 342.9 kB / 0.6889 GB, free: 7.449 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.1644, allocations: 35.72 kB / 0.6889 GB, free: 7.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1644, allocations: 4 kB / 0.6889 GB, free: 7.406 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.1644, allocations: 0 / 0.6889 GB, free: 7.406 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.1645, allocations: 23.98 kB / 0.6889 GB, free: 7.383 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.1645, allocations: 0 / 0.6889 GB, free: 7.383 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.1647, allocations: 27.83 kB / 0.689 GB, free: 7.355 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.1647, allocations: 4 kB / 0.689 GB, free: 7.352 MB / 494.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.0001866/0.1649, allocations: 201.7 kB / 0.6892 GB, free: 7.141 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.1649, allocations: 27.72 kB / 0.6892 GB, free: 7.113 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.647e-05/0.165, allocations: 33.83 kB / 0.6892 GB, free: 7.082 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.165, allocations: 7.922 kB / 0.6892 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.165, allocations: 0 / 0.6892 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.165, allocations: 0 / 0.6892 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.1653, allocations: 297.3 kB / 0.6895 GB, free: 6.734 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1653, allocations: 0 / 0.6895 GB, free: 6.734 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.983e-05/0.1654, allocations: 15.98 kB / 0.6895 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1654, allocations: 4 kB / 0.6895 GB, free: 6.715 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.1655, allocations: 8 kB / 0.6895 GB, free: 6.707 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1655, allocations: 3.984 kB / 0.6895 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1655, allocations: 4 kB / 0.6895 GB, free: 6.699 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007271/0.1662, allocations: 464 kB / 0.69 GB, free: 6.223 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.27e-05/0.1663, allocations: 100.8 kB / 0.6901 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.267e-05/0.1663, allocations: 12.06 kB / 0.6901 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.1665, allocations: 11.98 kB / 0.6901 GB, free: 6.082 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.79e-05/0.1665, allocations: 27.95 kB / 0.6901 GB, free: 6.055 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.1666, allocations: 4 kB / 0.6901 GB, free: 6.051 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001944/0.1668, allocations: 202 kB / 0.6903 GB, free: 5.855 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1668, allocations: 0 / 0.6903 GB, free: 5.855 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.167, allocations: 60.03 kB / 0.6904 GB, free: 5.797 MB / 494.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.001158/0.1682, allocations: 1.034 MB / 0.6914 GB, free: 4.73 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005102/0.1687, allocations: 299.2 kB / 0.6917 GB, free: 4.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1688, allocations: 4.25 kB / 0.6917 GB, free: 4.422 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.169, allocations: 179.4 kB / 0.6919 GB, free: 4.234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.1693, allocations: 30.44 kB / 0.6919 GB, free: 4.203 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.1729, allocations: 2.782 MB / 0.6946 GB, free: 1.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.1733, allocations: 0.7551 MB / 0.6953 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.313e-05/0.1733, allocations: 17.55 kB / 0.6954 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.1735, allocations: 75.41 kB / 0.6954 GB, free: 452 kB / 494.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1735, allocations: 0 / 0.6954 GB, free: 452 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.2021, allocations: 5.342 MB / 0.7006 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.405/7.607, allocations: 14.73 kB / 0.7007 GB, free: 11.2 MB / 0.4981 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)