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.004484/0.004484, allocations: 104.8 kB / 15.74 MB, free: 6.039 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.001007/0.001007, allocations: 191.5 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.228/1.228, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6895/0.6895, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001228, allocations: 63.47 kB / 0.5808 GB, free: 1.004 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1427, allocations: 80.22 MB / 0.6592 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003007/0.1457, allocations: 1.923 MB / 0.6611 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.147, allocations: 0.7284 MB / 0.6618 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.1472, allocations: 4 kB / 0.6618 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002355/0.1475, allocations: 79.64 kB / 0.6619 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.1476, allocations: 99.56 kB / 0.6619 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006123/0.1483, allocations: 189 kB / 0.6621 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003411/0.1486, allocations: 263.4 kB / 0.6624 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.1488, allocations: 72.69 kB / 0.6624 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.149, allocations: 119.6 kB / 0.6626 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.1492, allocations: 147.5 kB / 0.6627 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.142e-05/0.1492, allocations: 20 kB / 0.6627 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.1494, allocations: 95.92 kB / 0.6628 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.909e-05/0.1494, allocations: 59.83 kB / 0.6629 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.1496, allocations: 111.3 kB / 0.663 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003661/0.1499, allocations: 295.9 kB / 0.6633 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1499, allocations: 4 kB / 0.6633 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.985e-06/0.15, allocations: 0 / 0.6633 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.518e-06/0.15, allocations: 3.938 kB / 0.6633 GB, free: 9.688 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.0008404/0.1508, allocations: 0.5819 MB / 0.6638 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1509, allocations: 12.03 kB / 0.6638 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.622e-05/0.1509, allocations: 50.67 kB / 0.6639 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.408e-05/0.151, allocations: 32.56 kB / 0.6639 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004774/0.1515, allocations: 302.9 kB / 0.6642 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.1515, allocations: 15.94 kB / 0.6642 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.668e-05/0.1515, allocations: 16 kB / 0.6642 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003506/0.1519, allocations: 215.2 kB / 0.6645 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.1519, allocations: 0 / 0.6645 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.152, allocations: 8 kB / 0.6645 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.152, allocations: 4 kB / 0.6645 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.1522, allocations: 132.3 kB / 0.6646 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007926/0.153, allocations: 0.6846 MB / 0.6653 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.1534, allocations: 166.5 kB / 0.6654 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.1535, allocations: 92.95 kB / 0.6655 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.1535, allocations: 4 kB / 0.6655 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000254/0.1538, allocations: 181.1 kB / 0.6657 GB, free: 7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.1538, allocations: 0 / 0.6657 GB, free: 7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006231/0.1544, allocations: 373.4 kB / 0.666 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.1545, allocations: 140.4 kB / 0.6662 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.1548, allocations: 278.6 kB / 0.6664 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.1548, allocations: 33.7 kB / 0.6665 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1549, allocations: 156.3 kB / 0.6666 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.803e-05/0.1549, allocations: 47.38 kB / 0.6667 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.098e-05/0.155, allocations: 45.61 kB / 0.6667 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1551, allocations: 342.8 kB / 0.667 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.1553, allocations: 83.95 kB / 0.6671 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.1555, allocations: 132.6 kB / 0.6672 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.1558, allocations: 237.1 kB / 0.6675 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1558, allocations: 0 / 0.6675 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005014/0.1563, allocations: 343.1 kB / 0.6678 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.921e-05/0.1563, allocations: 37.69 kB / 0.6678 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1563, allocations: 0 / 0.6678 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.1564, allocations: 0 / 0.6678 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.1565, allocations: 31.91 kB / 0.6679 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.505e-06/0.1565, allocations: 3.938 kB / 0.6679 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.1566, allocations: 27.83 kB / 0.6679 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.1566, allocations: 4 kB / 0.6679 GB, free: 4.598 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.0001739/0.1568, allocations: 192.2 kB / 0.6681 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.124e-05/0.1569, allocations: 27.7 kB / 0.6681 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.538e-05/0.1569, allocations: 29.84 kB / 0.6681 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1569, allocations: 0 / 0.6681 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.157, allocations: 3.938 kB / 0.6681 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.157, allocations: 3.984 kB / 0.6681 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.1572, allocations: 289.4 kB / 0.6684 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1572, allocations: 0 / 0.6684 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.749e-05/0.1573, allocations: 19.98 kB / 0.6684 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.1573, allocations: 4 kB / 0.6684 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.1574, allocations: 7.984 kB / 0.6684 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.1574, allocations: 4 kB / 0.6684 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1574, allocations: 3.938 kB / 0.6685 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006852/0.1581, allocations: 458.3 kB / 0.6689 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-05/0.1581, allocations: 112.8 kB / 0.669 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.1582, allocations: 8 kB / 0.669 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.392e-05/0.1583, allocations: 11.98 kB / 0.669 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.81e-05/0.1584, allocations: 27.91 kB / 0.669 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.1584, allocations: 8 kB / 0.6691 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002111/0.1586, allocations: 201.9 kB / 0.6692 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1586, allocations: 4 kB / 0.6692 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002765/0.1589, allocations: 52.09 kB / 0.6693 GB, free: 3.055 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.001032/0.1599, allocations: 1.028 MB / 0.6703 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004604/0.1604, allocations: 295.5 kB / 0.6706 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1604, allocations: 0 / 0.6706 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002196/0.1607, allocations: 183.3 kB / 0.6708 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.161, allocations: 44.47 kB / 0.6708 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.1643, allocations: 2.777 MB / 0.6735 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.1646, allocations: 0.7475 MB / 0.6742 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.911e-05/0.1647, allocations: 17.55 kB / 0.6743 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.1648, allocations: 75.41 kB / 0.6743 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of SimCode: time 8.01e-07/0.1648, allocations: 0 / 0.6743 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.1896, allocations: 5.388 MB / 0.6796 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.259/7.449, allocations: 11.41 kB / 0.6796 GB, free: 8.449 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)