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.001332/0.001332, allocations: 108 kB / 15.61 MB, free: 152 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.001263/0.001263, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.375/1.375, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9487/0.9487, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002154, allocations: 60.33 kB / 0.5054 GB, free: 5.25 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1556, allocations: 80.92 MB / 0.5845 GB, free: 4.488 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003415/0.159, allocations: 1.942 MB / 0.5864 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.1603, allocations: 0.7129 MB / 0.5871 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001426/0.1605, allocations: 0 / 0.5871 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.1607, allocations: 91.62 kB / 0.5872 GB, free: 1.723 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.1609, allocations: 83.62 kB / 0.5872 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006908/0.1616, allocations: 186.7 kB / 0.5874 GB, free: 1.461 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.162, allocations: 259.5 kB / 0.5877 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.1622, allocations: 82.02 kB / 0.5877 GB, free: 1.129 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.1624, allocations: 111.7 kB / 0.5878 GB, free: 1.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002557/0.1627, allocations: 151.5 kB / 0.588 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.304e-05/0.1628, allocations: 20 kB / 0.588 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.1629, allocations: 95.88 kB / 0.5881 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.1631, allocations: 63.83 kB / 0.5882 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.1632, allocations: 107.3 kB / 0.5883 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004465/0.1636, allocations: 291.2 kB / 0.5885 GB, free: 312 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/0.1637, allocations: 7.984 kB / 0.5885 GB, free: 304 kB / 494.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1637, allocations: 0 / 0.5885 GB, free: 304 kB / 494.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.1637, allocations: 0 / 0.5885 GB, free: 304 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.001253/0.1649, allocations: 0.5896 MB / 0.5891 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.165, allocations: 12.03 kB / 0.5891 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.909e-05/0.1651, allocations: 46.73 kB / 0.5892 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.1652, allocations: 32.59 kB / 0.5892 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004783/0.1657, allocations: 294.8 kB / 0.5895 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.1657, allocations: 12.12 kB / 0.5895 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.1658, allocations: 16 kB / 0.5895 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.1662, allocations: 219.2 kB / 0.5897 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1662, allocations: 3.984 kB / 0.5897 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.1662, allocations: 8 kB / 0.5897 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.1663, allocations: 4 kB / 0.5897 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002543/0.1665, allocations: 136.3 kB / 0.5899 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008631/0.1674, allocations: 0.6924 MB / 0.5905 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.1678, allocations: 158.7 kB / 0.5907 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.168, allocations: 96.83 kB / 0.5908 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.168, allocations: 0 / 0.5908 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.1684, allocations: 177.1 kB / 0.591 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.784e-06/0.1684, allocations: 0 / 0.591 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006689/0.1691, allocations: 374.8 kB / 0.5913 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.112e-05/0.1692, allocations: 132.5 kB / 0.5914 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.1695, allocations: 282.6 kB / 0.5917 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.1695, allocations: 33.64 kB / 0.5917 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.763e-05/0.1696, allocations: 164.2 kB / 0.5919 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.573e-05/0.1697, allocations: 47.38 kB / 0.5919 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.236e-05/0.1698, allocations: 37.72 kB / 0.592 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1699, allocations: 342.8 kB / 0.5923 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.17, allocations: 79.95 kB / 0.5924 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.1702, allocations: 141.3 kB / 0.5925 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.1706, allocations: 240.8 kB / 0.5927 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1706, allocations: 0 / 0.5927 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005034/0.1711, allocations: 338.9 kB / 0.5931 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.699e-05/0.1711, allocations: 33.7 kB / 0.5931 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1712, allocations: 4 kB / 0.5931 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.1712, allocations: 0 / 0.5931 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.1713, allocations: 27.92 kB / 0.5931 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.1713, allocations: 0 / 0.5931 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.1715, allocations: 35.67 kB / 0.5932 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.1715, allocations: 4.094 kB / 0.5932 GB, free: 11.21 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.000172/0.1717, allocations: 192.1 kB / 0.5934 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.075e-05/0.1717, allocations: 27.66 kB / 0.5934 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.802e-05/0.1718, allocations: 29.83 kB / 0.5934 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1718, allocations: 4 kB / 0.5934 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1718, allocations: 0 / 0.5934 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.1718, allocations: 3.938 kB / 0.5934 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.172, allocations: 289.4 kB / 0.5937 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1721, allocations: 0 / 0.5937 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.1722, allocations: 19.98 kB / 0.5937 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.1722, allocations: 0 / 0.5937 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.1722, allocations: 8 kB / 0.5937 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1722, allocations: 0 / 0.5937 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1722, allocations: 0 / 0.5937 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007079/0.1729, allocations: 477.1 kB / 0.5942 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.579e-05/0.173, allocations: 104.7 kB / 0.5943 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.806e-05/0.1731, allocations: 12 kB / 0.5943 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.1732, allocations: 15.98 kB / 0.5943 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.1733, allocations: 27.89 kB / 0.5943 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.1733, allocations: 4 kB / 0.5943 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001825/0.1735, allocations: 202 kB / 0.5945 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1735, allocations: 192 / 0.5945 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002916/0.1738, allocations: 60.11 kB / 0.5946 GB, free: 9.66 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.1748, allocations: 1.024 MB / 0.5956 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004674/0.1753, allocations: 299.3 kB / 0.5959 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.1753, allocations: 4 kB / 0.5959 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002288/0.1755, allocations: 183.3 kB / 0.596 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.1759, allocations: 32.48 kB / 0.5961 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.1792, allocations: 2.764 MB / 0.5988 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.1795, allocations: 0.7553 MB / 0.5995 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.671e-05/0.1796, allocations: 21.52 kB / 0.5995 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.1797, allocations: 75.42 kB / 0.5996 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of SimCode: time 5.91e-07/0.1797, allocations: 0 / 0.5996 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2383/0.418, allocations: 5.314 MB / 0.6048 GB, free: 52.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.101/7.519, allocations: 6.516 kB / 0.6048 GB, free: 52.48 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)