Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_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.004994/0.004994, allocations: 103.1 kB / 15.74 MB, free: 6.066 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.001133/0.001133, allocations: 192.8 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7867/0.7867, allocations: 135.1 MB / 425.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 59.06 kB / 0.5851 GB, free: 21.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1366, allocations: 80.92 MB / 0.6641 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002985/0.1396, allocations: 1.951 MB / 0.666 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.1408, allocations: 0.7133 MB / 0.6667 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.141, allocations: 3.938 kB / 0.6667 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.1412, allocations: 87.62 kB / 0.6668 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001411/0.1414, allocations: 87.62 kB / 0.6669 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005615/0.1419, allocations: 191.5 kB / 0.6671 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003072/0.1422, allocations: 259.5 kB / 0.6673 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.1424, allocations: 81.5 kB / 0.6674 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.1426, allocations: 119.6 kB / 0.6675 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.1428, allocations: 151.5 kB / 0.6677 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.762e-05/0.1428, allocations: 20 kB / 0.6677 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.143, allocations: 95.86 kB / 0.6678 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.482e-05/0.143, allocations: 55.83 kB / 0.6678 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.1432, allocations: 107.3 kB / 0.6679 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003753/0.1436, allocations: 306.8 kB / 0.6682 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1436, allocations: 7.938 kB / 0.6682 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1436, allocations: 0 / 0.6682 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.1436, allocations: 0 / 0.6682 GB, free: 2.102 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.0007984/0.1444, allocations: 0.5894 MB / 0.6688 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.1444, allocations: 9.109 kB / 0.6688 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.159e-05/0.1445, allocations: 46.73 kB / 0.6689 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.707e-05/0.1446, allocations: 32.75 kB / 0.6689 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004609/0.145, allocations: 303.1 kB / 0.6692 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.1451, allocations: 19.94 kB / 0.6692 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.1451, allocations: 12 kB / 0.6692 GB, free: 1 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003677/0.1455, allocations: 223.1 kB / 0.6694 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1455, allocations: 4 kB / 0.6694 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.1455, allocations: 0 / 0.6694 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1455, allocations: 4 kB / 0.6694 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002569/0.1458, allocations: 132.3 kB / 0.6696 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008099/0.1466, allocations: 0.6848 MB / 0.6702 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/0.147, allocations: 166.6 kB / 0.6704 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.1472, allocations: 101 kB / 0.6705 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.1472, allocations: 0 / 0.6705 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.1475, allocations: 173 kB / 0.6707 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1475, allocations: 0 / 0.6707 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006485/0.1481, allocations: 374 kB / 0.671 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/0.1482, allocations: 136.5 kB / 0.6711 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.1485, allocations: 282.6 kB / 0.6714 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.1485, allocations: 37.64 kB / 0.6715 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.1486, allocations: 164.3 kB / 0.6716 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.796e-05/0.1487, allocations: 47.64 kB / 0.6717 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.209e-05/0.1487, allocations: 37.72 kB / 0.6717 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1489, allocations: 334.8 kB / 0.672 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.149, allocations: 87.95 kB / 0.6721 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1492, allocations: 146.8 kB / 0.6722 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.1496, allocations: 237.1 kB / 0.6725 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1496, allocations: 0 / 0.6725 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004879/0.1501, allocations: 343 kB / 0.6728 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.1501, allocations: 37.7 kB / 0.6728 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1501, allocations: 0 / 0.6728 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.1501, allocations: 4 kB / 0.6728 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.1503, allocations: 19.98 kB / 0.6728 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.1503, allocations: 11.88 kB / 0.6729 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.1504, allocations: 19.97 kB / 0.6729 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.1504, allocations: 16 kB / 0.6729 GB, free: 13 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.0001489/0.1506, allocations: 187.5 kB / 0.6731 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.868e-05/0.1506, allocations: 27.81 kB / 0.6731 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.057e-05/0.1507, allocations: 29.83 kB / 0.6731 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1507, allocations: 4 kB / 0.6731 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1507, allocations: 3.938 kB / 0.6731 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1507, allocations: 0 / 0.6731 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.151, allocations: 293.4 kB / 0.6734 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.151, allocations: 0 / 0.6734 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.1511, allocations: 19.92 kB / 0.6734 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1511, allocations: 0 / 0.6734 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.1512, allocations: 4 kB / 0.6734 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.1512, allocations: 0 / 0.6734 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1512, allocations: 3.938 kB / 0.6734 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000703/0.1519, allocations: 478.3 kB / 0.6739 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.1519, allocations: 96.94 kB / 0.674 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.073e-05/0.152, allocations: 8 kB / 0.674 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.1521, allocations: 11.98 kB / 0.674 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.1522, allocations: 35.83 kB / 0.674 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.1522, allocations: 8 kB / 0.674 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000177/0.1524, allocations: 198 kB / 0.6742 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1524, allocations: 0 / 0.6742 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002789/0.1527, allocations: 63.94 kB / 0.6743 GB, free: 11.45 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.0009988/0.1537, allocations: 1.023 MB / 0.6753 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004546/0.1542, allocations: 295.3 kB / 0.6756 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1542, allocations: 0 / 0.6756 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.1544, allocations: 187.5 kB / 0.6758 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.1547, allocations: 40.42 kB / 0.6758 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003271/0.158, allocations: 2.79 MB / 0.6785 GB, free: 6.965 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.1583, allocations: 0.7514 MB / 0.6793 GB, free: 6.188 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.597e-05/0.1584, allocations: 21.55 kB / 0.6793 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.1585, allocations: 71.42 kB / 0.6793 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of SimCode: time 5.11e-07/0.1585, allocations: 0 / 0.6793 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02362/0.1821, allocations: 5.394 MB / 0.6846 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.378/7.56, allocations: 7.922 kB / 0.6846 GB, free: 0.7891 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)