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.004869/0.004869, allocations: 102.1 kB / 15.73 MB, free: 6.5 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.001327/0.001328, allocations: 203.2 kB / 16.68 MB, free: 6.367 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002476/0.002476, allocations: 286.7 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.032/1.032, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00271/0.00271, allocations: 104.6 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1665, allocations: 86.97 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003318/0.1699, allocations: 1.942 MB / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00127/0.1712, allocations: 0.7168 MB / 0.7685 GB, free: 6.262 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.1713, allocations: 4 kB / 0.7685 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000228/0.1715, allocations: 83.56 kB / 0.7686 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.1717, allocations: 95.58 kB / 0.7687 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005671/0.1722, allocations: 187 kB / 0.7688 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000339/0.1726, allocations: 267.4 kB / 0.7691 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.1728, allocations: 73.62 kB / 0.7692 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.1729, allocations: 119.6 kB / 0.7693 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/0.1731, allocations: 151.5 kB / 0.7694 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.145e-05/0.1732, allocations: 20 kB / 0.7694 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.1734, allocations: 91.92 kB / 0.7695 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.283e-05/0.1735, allocations: 55.84 kB / 0.7696 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.1736, allocations: 107.3 kB / 0.7697 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004049/0.174, allocations: 306.8 kB / 0.77 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.174, allocations: 7.938 kB / 0.77 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.313e-06/0.174, allocations: 0 / 0.77 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.174, allocations: 0 / 0.77 GB, free: 4.727 MB / 0.5606 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.0009025/0.1749, allocations: 0.5972 MB / 0.7706 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.175, allocations: 12.02 kB / 0.7706 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.482e-05/0.175, allocations: 46.75 kB / 0.7706 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.584e-05/0.1751, allocations: 32.75 kB / 0.7707 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.1756, allocations: 303 kB / 0.7709 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.1757, allocations: 12.38 kB / 0.771 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-05/0.1757, allocations: 12.38 kB / 0.771 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004309/0.1762, allocations: 227.1 kB / 0.7712 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1762, allocations: 3.938 kB / 0.7712 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.1762, allocations: 4 kB / 0.7712 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1762, allocations: 7.984 kB / 0.7712 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002795/0.1765, allocations: 128.4 kB / 0.7713 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008694/0.1774, allocations: 0.6886 MB / 0.772 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.1778, allocations: 158.5 kB / 0.7721 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.178, allocations: 105 kB / 0.7722 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.178, allocations: 0 / 0.7722 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000295/0.1783, allocations: 173.1 kB / 0.7724 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 3.226e-06/0.1783, allocations: 3.984 kB / 0.7724 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0007392/0.179, allocations: 381 kB / 0.7728 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.072e-05/0.1791, allocations: 128.5 kB / 0.7729 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002947/0.1795, allocations: 286.7 kB / 0.7732 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.1795, allocations: 33.64 kB / 0.7732 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.1796, allocations: 156.3 kB / 0.7734 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.569e-05/0.1797, allocations: 43.77 kB / 0.7734 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-05/0.1798, allocations: 45.64 kB / 0.7734 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1799, allocations: 338.8 kB / 0.7738 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.1801, allocations: 87.95 kB / 0.7738 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.1803, allocations: 131.5 kB / 0.774 GB, free: 356 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.1807, allocations: 248.9 kB / 0.7742 GB, free: 84 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1807, allocations: 0 / 0.7742 GB, free: 84 kB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.3168/0.4975, allocations: 331 kB / 0.7745 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.488e-05/0.4976, allocations: 35.81 kB / 0.7746 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4976, allocations: 1.125 kB / 0.7746 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.4976, allocations: 2 kB / 0.7746 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.4977, allocations: 25.31 kB / 0.7746 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.4978, allocations: 4.141 kB / 0.7746 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.4979, allocations: 23.44 kB / 0.7746 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.4979, allocations: 8.953 kB / 0.7746 GB, free: 14.78 MB / 0.5606 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.0001609/0.4981, allocations: 198.8 kB / 0.7748 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.4981, allocations: 28.11 kB / 0.7748 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.656e-05/0.4982, allocations: 29.28 kB / 0.7749 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.4982, allocations: 1.906 kB / 0.7749 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4982, allocations: 0.9688 kB / 0.7749 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.4982, allocations: 1.797 kB / 0.7749 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002444/0.4985, allocations: 290 kB / 0.7751 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4985, allocations: 0 / 0.7751 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.4986, allocations: 20.03 kB / 0.7752 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.4986, allocations: 0.8125 kB / 0.7752 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.4986, allocations: 5.016 kB / 0.7752 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4986, allocations: 3.031 kB / 0.7752 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.4986, allocations: 0.625 kB / 0.7752 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000699/0.4993, allocations: 471.9 kB / 0.7756 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.4994, allocations: 101.5 kB / 0.7757 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.4994, allocations: 8.656 kB / 0.7757 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.4996, allocations: 12.08 kB / 0.7757 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.69e-05/0.4996, allocations: 27.09 kB / 0.7758 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.4997, allocations: 5.781 kB / 0.7758 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001755/0.4999, allocations: 203.6 kB / 0.776 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4999, allocations: 0 / 0.776 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000284/0.5001, allocations: 63.94 kB / 0.776 GB, free: 14.16 MB / 0.5606 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.0009534/0.5011, allocations: 1.026 MB / 0.777 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004739/0.5016, allocations: 303 kB / 0.7773 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.5016, allocations: 0 / 0.7773 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002176/0.5018, allocations: 187.4 kB / 0.7775 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.5021, allocations: 32 kB / 0.7775 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.5053, allocations: 2.774 MB / 0.7802 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001819/0.5054, allocations: 0.7521 MB / 0.781 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.904e-05/0.5055, allocations: 23.75 kB / 0.781 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.762e-05/0.5057, allocations: 76.25 kB / 0.7811 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of SimCode: time 5.31e-07/0.5057, allocations: 4.156 kB / 0.7811 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02764/0.5333, allocations: 5.404 MB / 0.7864 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.84/8.373, allocations: 19.05 kB / 0.7864 GB, free: 10.52 MB / 0.5606 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)