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.001328/0.001328, 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.001175/0.001175, allocations: 193.8 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7587/0.7587, allocations: 132.2 MB / 422.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 63.7 kB / 0.5019 GB, free: 8.645 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.136, allocations: 80.2 MB / 0.5802 GB, free: 8.664 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002864/0.1389, allocations: 1.946 MB / 0.5821 GB, free: 6.695 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.14, allocations: 0.7091 MB / 0.5828 GB, free: 5.984 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.859e-05/0.1401, allocations: 3.938 kB / 0.5828 GB, free: 5.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.1403, allocations: 87.64 kB / 0.5829 GB, free: 5.895 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.1404, allocations: 95.55 kB / 0.583 GB, free: 5.801 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.1409, allocations: 186.8 kB / 0.5831 GB, free: 5.621 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002598/0.1412, allocations: 263.5 kB / 0.5834 GB, free: 5.363 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1413, allocations: 65.88 kB / 0.5835 GB, free: 5.301 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.1415, allocations: 123.6 kB / 0.5836 GB, free: 5.18 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.1416, allocations: 143.5 kB / 0.5837 GB, free: 5.039 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.636e-05/0.1417, allocations: 20 kB / 0.5837 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.1418, allocations: 103.8 kB / 0.5838 GB, free: 4.918 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.821e-05/0.1419, allocations: 59.78 kB / 0.5839 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.775e-05/0.142, allocations: 103.3 kB / 0.584 GB, free: 4.758 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.1423, allocations: 299.1 kB / 0.5843 GB, free: 4.465 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1423, allocations: 0 / 0.5843 GB, free: 4.465 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1423, allocations: 4 kB / 0.5843 GB, free: 4.461 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1423, allocations: 0 / 0.5843 GB, free: 4.461 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.0007522/0.1431, allocations: 0.5779 MB / 0.5848 GB, free: 3.828 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.1431, allocations: 15.97 kB / 0.5849 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.331e-05/0.1432, allocations: 50.73 kB / 0.5849 GB, free: 3.754 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.281e-05/0.1432, allocations: 24.66 kB / 0.5849 GB, free: 3.73 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.1436, allocations: 310.8 kB / 0.5852 GB, free: 3.387 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.1437, allocations: 12.12 kB / 0.5852 GB, free: 3.375 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.1437, allocations: 16 kB / 0.5852 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.1441, allocations: 223.1 kB / 0.5855 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.1441, allocations: 0 / 0.5855 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.1441, allocations: 8 kB / 0.5855 GB, free: 3.109 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.1441, allocations: 4 kB / 0.5855 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.1444, allocations: 132.3 kB / 0.5856 GB, free: 2.977 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007672/0.1451, allocations: 0.6846 MB / 0.5863 GB, free: 2.234 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003393/0.1455, allocations: 170.6 kB / 0.5864 GB, free: 2.059 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.1457, allocations: 96.81 kB / 0.5865 GB, free: 1.961 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.1457, allocations: 0 / 0.5865 GB, free: 1.961 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003004/0.146, allocations: 173.1 kB / 0.5867 GB, free: 1.773 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.146, allocations: 4 kB / 0.5867 GB, free: 1.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006378/0.1467, allocations: 370.9 kB / 0.587 GB, free: 1.395 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.1467, allocations: 136.5 kB / 0.5872 GB, free: 1.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.147, allocations: 274.7 kB / 0.5874 GB, free: 0.957 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.147, allocations: 37.69 kB / 0.5875 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.995e-05/0.1471, allocations: 156.2 kB / 0.5876 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.1472, allocations: 39.45 kB / 0.5877 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.924e-05/0.1472, allocations: 45.7 kB / 0.5877 GB, free: 0.668 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1474, allocations: 342.8 kB / 0.588 GB, free: 332 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.1475, allocations: 83.84 kB / 0.5881 GB, free: 248 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.1477, allocations: 133.8 kB / 0.5882 GB, free: 96 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003342/0.1481, allocations: 244.9 kB / 0.5885 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1481, allocations: 0 / 0.5885 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004725/0.1485, allocations: 338.8 kB / 0.5888 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.744e-05/0.1486, allocations: 41.8 kB / 0.5888 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1486, allocations: 4 kB / 0.5888 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1486, allocations: 0 / 0.5888 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.1488, allocations: 27.92 kB / 0.5889 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.1488, allocations: 0 / 0.5889 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.1489, allocations: 31.77 kB / 0.5889 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.1489, allocations: 7.984 kB / 0.5889 GB, free: 15.37 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.0001615/0.1491, allocations: 191.4 kB / 0.5891 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.7e-05/0.1491, allocations: 23.72 kB / 0.5891 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.1492, allocations: 29.83 kB / 0.5891 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1492, allocations: 4 kB / 0.5891 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1492, allocations: 0 / 0.5891 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.1492, allocations: 3.938 kB / 0.5891 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.1495, allocations: 293.3 kB / 0.5894 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1495, allocations: 0 / 0.5894 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.931e-05/0.1496, allocations: 15.98 kB / 0.5894 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1496, allocations: 0 / 0.5894 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.1496, allocations: 12 kB / 0.5894 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.1496, allocations: 7.984 kB / 0.5895 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1496, allocations: 96 / 0.5895 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006601/0.1503, allocations: 473.2 kB / 0.5899 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.58e-05/0.1503, allocations: 100.8 kB / 0.59 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.346e-05/0.1504, allocations: 11.98 kB / 0.59 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.1505, allocations: 16.05 kB / 0.59 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-05/0.1506, allocations: 27.91 kB / 0.5901 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.1506, allocations: 7.938 kB / 0.5901 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001679/0.1508, allocations: 205.9 kB / 0.5903 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1508, allocations: 0 / 0.5903 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002724/0.1511, allocations: 56.12 kB / 0.5903 GB, free: 13.82 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.0009705/0.152, allocations: 1.02 MB / 0.5913 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004386/0.1525, allocations: 302.1 kB / 0.5916 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1525, allocations: 256 / 0.5916 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.1527, allocations: 191.3 kB / 0.5918 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.153, allocations: 32.48 kB / 0.5918 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003101/0.1561, allocations: 2.758 MB / 0.5945 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.1564, allocations: 0.7514 MB / 0.5952 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.179e-05/0.1565, allocations: 21.55 kB / 0.5953 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.78e-05/0.1566, allocations: 71.41 kB / 0.5953 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of SimCode: time 2.01e-07/0.1566, allocations: 0 / 0.5953 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.1845, allocations: 5.311 MB / 0.6005 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.893/7.078, allocations: 23.81 kB / 0.6005 GB, free: 3.277 MB / 0.4981 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)