Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_IDEAS_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.004634/0.004634, allocations: 96.7 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.001031/0.001031, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.231/1.231, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7087/0.7087, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 63.62 kB / 0.5809 GB, free: 1.145 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1474, allocations: 80.2 MB / 0.6592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003425/0.1508, allocations: 1.945 MB / 0.6611 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.1522, allocations: 0.7248 MB / 0.6618 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.1523, allocations: 4 kB / 0.6618 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.1526, allocations: 79.64 kB / 0.6619 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.1528, allocations: 95.56 kB / 0.662 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000633/0.1534, allocations: 185.4 kB / 0.6621 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003777/0.1538, allocations: 263.4 kB / 0.6624 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.154, allocations: 73.81 kB / 0.6625 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.1542, allocations: 119.6 kB / 0.6626 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.1544, allocations: 155.4 kB / 0.6627 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.1545, allocations: 20 kB / 0.6627 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.1546, allocations: 95.92 kB / 0.6628 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.467e-05/0.1547, allocations: 51.83 kB / 0.6629 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.1549, allocations: 111.3 kB / 0.663 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.1552, allocations: 310.8 kB / 0.6633 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1553, allocations: 0 / 0.6633 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.805e-06/0.1553, allocations: 0 / 0.6633 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.1553, allocations: 3.938 kB / 0.6633 GB, free: 9.828 MB / 0.4981 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.0008927/0.1562, allocations: 0.5855 MB / 0.6639 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1562, allocations: 12.03 kB / 0.6639 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.949e-05/0.1563, allocations: 46.73 kB / 0.6639 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.105e-05/0.1563, allocations: 32.75 kB / 0.6639 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005175/0.1569, allocations: 303.1 kB / 0.6642 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.1569, allocations: 15.94 kB / 0.6642 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.294e-05/0.1569, allocations: 16 kB / 0.6643 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.1573, allocations: 223.1 kB / 0.6645 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1574, allocations: 0 / 0.6645 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.1574, allocations: 11.98 kB / 0.6645 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.1574, allocations: 4 kB / 0.6645 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.1576, allocations: 124.3 kB / 0.6646 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008234/0.1585, allocations: 0.6886 MB / 0.6653 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003452/0.1588, allocations: 166.6 kB / 0.6654 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.159, allocations: 98.69 kB / 0.6655 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.159, allocations: 8 kB / 0.6655 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.1593, allocations: 169.1 kB / 0.6657 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.1593, allocations: 0 / 0.6657 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006436/0.16, allocations: 363.1 kB / 0.666 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.084e-05/0.1601, allocations: 140.5 kB / 0.6662 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002543/0.1603, allocations: 278.7 kB / 0.6664 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.1603, allocations: 37.69 kB / 0.6665 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1605, allocations: 156.3 kB / 0.6666 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.052e-05/0.1605, allocations: 51.56 kB / 0.6667 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.865e-05/0.1606, allocations: 41.7 kB / 0.6667 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1607, allocations: 338.8 kB / 0.667 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.1609, allocations: 87.91 kB / 0.6671 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.1611, allocations: 142.6 kB / 0.6673 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.1614, allocations: 237.3 kB / 0.6675 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1614, allocations: 8.125 kB / 0.6675 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004802/0.1619, allocations: 335 kB / 0.6678 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.1619, allocations: 37.7 kB / 0.6679 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.162, allocations: 0 / 0.6679 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.162, allocations: 0 / 0.6679 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.1621, allocations: 27.92 kB / 0.6679 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1621, allocations: 3.938 kB / 0.6679 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.1622, allocations: 35.92 kB / 0.6679 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.1623, allocations: 7.984 kB / 0.6679 GB, free: 4.719 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.0001569/0.1624, allocations: 184.2 kB / 0.6681 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/0.1625, allocations: 23.86 kB / 0.6681 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.661e-05/0.1625, allocations: 33.83 kB / 0.6682 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1625, allocations: 0 / 0.6682 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.1625, allocations: 3.938 kB / 0.6682 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.1625, allocations: 0 / 0.6682 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.1628, allocations: 293.4 kB / 0.6684 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.1628, allocations: 7.938 kB / 0.6684 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.1629, allocations: 19.98 kB / 0.6685 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1629, allocations: 0 / 0.6685 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.1629, allocations: 4 kB / 0.6685 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1629, allocations: 3.984 kB / 0.6685 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1629, allocations: 3.938 kB / 0.6685 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006723/0.1636, allocations: 469.4 kB / 0.6689 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.309e-05/0.1637, allocations: 104.9 kB / 0.669 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.26e-05/0.1637, allocations: 11.98 kB / 0.669 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.1639, allocations: 11.98 kB / 0.669 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.849e-05/0.1639, allocations: 23.91 kB / 0.6691 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.164, allocations: 12 kB / 0.6691 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000177/0.1641, allocations: 205.9 kB / 0.6693 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1642, allocations: 64 / 0.6693 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002598/0.1644, allocations: 55.89 kB / 0.6693 GB, free: 3.176 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.0009833/0.1654, allocations: 1.016 MB / 0.6703 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000443/0.1659, allocations: 295.2 kB / 0.6706 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.1659, allocations: 4 kB / 0.6706 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.1661, allocations: 179.5 kB / 0.6708 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.1664, allocations: 46.84 kB / 0.6708 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.1696, allocations: 2.789 MB / 0.6736 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.1699, allocations: 0.7514 MB / 0.6743 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.691e-05/0.17, allocations: 21.53 kB / 0.6743 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.1701, allocations: 71.41 kB / 0.6744 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of SimCode: time 3.91e-07/0.1701, allocations: 4 kB / 0.6744 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.1939, allocations: 5.378 MB / 0.6796 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.265/7.459, allocations: 10.34 kB / 0.6796 GB, free: 8.57 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)