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.001167/0.001167, allocations: 108 kB / 15.6 MB, free: 132 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.001118/0.001118, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.302/1.302, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8734/0.8734, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 64.55 kB / 0.5055 GB, free: 5.219 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.139, allocations: 80.93 MB / 0.5845 GB, free: 4.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003078/0.1421, allocations: 1.938 MB / 0.5864 GB, free: 2.488 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.1433, allocations: 0.709 MB / 0.5871 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.1435, allocations: 7.938 kB / 0.5871 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.1437, allocations: 83.64 kB / 0.5872 GB, free: 1.688 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.1438, allocations: 91.62 kB / 0.5872 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005457/0.1444, allocations: 183.6 kB / 0.5874 GB, free: 1.418 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.1447, allocations: 259.5 kB / 0.5877 GB, free: 1.164 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.1448, allocations: 70.11 kB / 0.5877 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.145, allocations: 123.6 kB / 0.5878 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.1452, allocations: 147.5 kB / 0.588 GB, free: 0.832 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.321e-05/0.1452, allocations: 23.94 kB / 0.588 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.1454, allocations: 99.86 kB / 0.5881 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.1454, allocations: 47.84 kB / 0.5882 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.1456, allocations: 111.3 kB / 0.5883 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003059/0.1459, allocations: 295.1 kB / 0.5885 GB, free: 272 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1459, allocations: 0 / 0.5885 GB, free: 272 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1459, allocations: 0 / 0.5885 GB, free: 272 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1459, allocations: 0 / 0.5885 GB, free: 272 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.0007818/0.1467, allocations: 0.5974 MB / 0.5891 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.1467, allocations: 12.03 kB / 0.5891 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.454e-05/0.1468, allocations: 46.75 kB / 0.5892 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.538e-05/0.1468, allocations: 24.66 kB / 0.5892 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.1474, allocations: 298.8 kB / 0.5895 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.1474, allocations: 20.06 kB / 0.5895 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.1475, allocations: 16 kB / 0.5895 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004872/0.1479, allocations: 215.2 kB / 0.5897 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.148, allocations: 3.984 kB / 0.5897 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.148, allocations: 8 kB / 0.5897 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.148, allocations: 4 kB / 0.5897 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.1483, allocations: 132.3 kB / 0.5899 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007742/0.149, allocations: 0.6924 MB / 0.5905 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.1494, allocations: 162.5 kB / 0.5907 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.1496, allocations: 101 kB / 0.5908 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.1496, allocations: 0 / 0.5908 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.1499, allocations: 169.1 kB / 0.591 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.1499, allocations: 0 / 0.591 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.000655/0.1506, allocations: 370.9 kB / 0.5913 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/0.1507, allocations: 140.5 kB / 0.5914 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.1509, allocations: 282.6 kB / 0.5917 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.1509, allocations: 29.8 kB / 0.5917 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.151, allocations: 164.1 kB / 0.5919 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.1511, allocations: 51.44 kB / 0.5919 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.858e-05/0.1512, allocations: 45.64 kB / 0.592 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1513, allocations: 334.8 kB / 0.5923 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.1515, allocations: 83.97 kB / 0.5924 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001903/0.1517, allocations: 133.3 kB / 0.5925 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.152, allocations: 249 kB / 0.5928 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.152, allocations: 0 / 0.5928 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004817/0.1525, allocations: 335 kB / 0.5931 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.1526, allocations: 37.7 kB / 0.5931 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1526, allocations: 0 / 0.5931 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1526, allocations: 4 kB / 0.5931 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.1527, allocations: 23.92 kB / 0.5931 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.1527, allocations: 7.984 kB / 0.5931 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.1528, allocations: 27.67 kB / 0.5932 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.1529, allocations: 12 kB / 0.5932 GB, free: 11.16 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.0001567/0.153, allocations: 187.6 kB / 0.5934 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.837e-05/0.1531, allocations: 23.72 kB / 0.5934 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/0.1531, allocations: 29.77 kB / 0.5934 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1531, allocations: 4 kB / 0.5934 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1531, allocations: 0 / 0.5934 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1532, allocations: 7.922 kB / 0.5934 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000234/0.1534, allocations: 285.5 kB / 0.5937 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.1534, allocations: 0 / 0.5937 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.1535, allocations: 15.98 kB / 0.5937 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1535, allocations: 4 kB / 0.5937 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.1535, allocations: 7.984 kB / 0.5937 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1536, allocations: 0 / 0.5937 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.1536, allocations: 0 / 0.5937 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000681/0.1542, allocations: 477.1 kB / 0.5942 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.389e-05/0.1543, allocations: 100.8 kB / 0.5943 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.629e-05/0.1544, allocations: 12 kB / 0.5943 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.1545, allocations: 19.98 kB / 0.5943 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.916e-05/0.1546, allocations: 27.91 kB / 0.5943 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.1546, allocations: 8 kB / 0.5943 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001701/0.1548, allocations: 201.9 kB / 0.5945 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1548, allocations: 0 / 0.5945 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002712/0.155, allocations: 56.12 kB / 0.5946 GB, free: 9.621 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.001014/0.1561, allocations: 1.023 MB / 0.5956 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000458/0.1565, allocations: 303.2 kB / 0.5959 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1566, allocations: 4.25 kB / 0.5959 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.1568, allocations: 183.3 kB / 0.5961 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.1571, allocations: 36.48 kB / 0.5961 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.1604, allocations: 2.757 MB / 0.5988 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.1607, allocations: 0.7514 MB / 0.5995 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.001e-05/0.1608, allocations: 21.53 kB / 0.5995 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.689e-05/0.1609, allocations: 75.41 kB / 0.5996 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1609, allocations: 0 / 0.5996 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2211/0.382, allocations: 5.322 MB / 0.6048 GB, free: 52.69 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.136/7.518, allocations: 5.484 kB / 0.6048 GB, free: 52.69 MB / 0.4981 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)