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.001416/0.001416, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001647/0.001647, allocations: 193.6 kB / 16.13 MB, free: 6.672 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.259/1.259, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.65/0.65, allocations: 132.2 MB / 422.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 56.25 kB / 0.5012 GB, free: 4.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3314, allocations: 80.2 MB / 0.5795 GB, free: 4.543 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002727/0.3342, allocations: 2.001 MB / 0.5814 GB, free: 3.145 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.3352, allocations: 0.7218 MB / 0.5822 GB, free: 2.648 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.3354, allocations: 2.938 kB / 0.5822 GB, free: 2.648 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.3356, allocations: 89.66 kB / 0.5822 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.3357, allocations: 78.8 kB / 0.5823 GB, free: 2.605 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004534/0.3362, allocations: 156.5 kB / 0.5825 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.3364, allocations: 237.8 kB / 0.5827 GB, free: 2.422 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.3366, allocations: 69.73 kB / 0.5828 GB, free: 2.387 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.3367, allocations: 104.1 kB / 0.5829 GB, free: 2.348 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.3369, allocations: 136.3 kB / 0.583 GB, free: 2.309 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.395e-05/0.337, allocations: 9.625 kB / 0.583 GB, free: 2.309 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.3371, allocations: 81.11 kB / 0.5831 GB, free: 2.289 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.758e-05/0.3372, allocations: 56.94 kB / 0.5831 GB, free: 2.258 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 8.563e-05/0.3373, allocations: 93.06 kB / 0.5832 GB, free: 2.195 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.3376, allocations: 291.1 kB / 0.5835 GB, free: 2.078 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3376, allocations: 0 / 0.5835 GB, free: 2.078 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.3376, allocations: 0 / 0.5835 GB, free: 2.078 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.3376, allocations: 1.312 kB / 0.5835 GB, free: 2.078 MB / 430.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.0007105/0.3383, allocations: 0.5785 MB / 0.5841 GB, free: 1.566 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.3384, allocations: 9.906 kB / 0.5841 GB, free: 1.566 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.929e-05/0.3384, allocations: 50.59 kB / 0.5841 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.621e-05/0.3385, allocations: 27.25 kB / 0.5841 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.3388, allocations: 302.8 kB / 0.5844 GB, free: 1.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.3388, allocations: 18.81 kB / 0.5845 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.3389, allocations: 13.62 kB / 0.5845 GB, free: 1.227 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.3392, allocations: 221.5 kB / 0.5847 GB, free: 1.102 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.3392, allocations: 0 / 0.5847 GB, free: 1.102 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.3393, allocations: 6.375 kB / 0.5847 GB, free: 1.098 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3393, allocations: 3.219 kB / 0.5847 GB, free: 1.098 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.3395, allocations: 132.3 kB / 0.5848 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.3402, allocations: 0.684 MB / 0.5855 GB, free: 0.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.3405, allocations: 172.2 kB / 0.5856 GB, free: 436 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.3407, allocations: 98.19 kB / 0.5857 GB, free: 400 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.3407, allocations: 6.172 kB / 0.5857 GB, free: 396 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.341, allocations: 169 kB / 0.5859 GB, free: 288 kB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.914e-06/0.341, allocations: 4.562 kB / 0.5859 GB, free: 284 kB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006157/0.3416, allocations: 378.4 kB / 0.5863 GB, free: 132 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.3417, allocations: 137.5 kB / 0.5864 GB, free: 15.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.342, allocations: 275.5 kB / 0.5867 GB, free: 15.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.342, allocations: 33.16 kB / 0.5867 GB, free: 15.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.839e-05/0.3421, allocations: 154.8 kB / 0.5868 GB, free: 15.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.3421, allocations: 41.44 kB / 0.5869 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.3422, allocations: 45.75 kB / 0.5869 GB, free: 15.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.3423, allocations: 338.1 kB / 0.5872 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.3425, allocations: 85.86 kB / 0.5873 GB, free: 15.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.3427, allocations: 130.1 kB / 0.5875 GB, free: 15.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.343, allocations: 245.2 kB / 0.5877 GB, free: 15.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.343, allocations: 1.156 kB / 0.5877 GB, free: 15.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004804/0.3435, allocations: 344.4 kB / 0.588 GB, free: 14.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.355e-05/0.3436, allocations: 46.81 kB / 0.5881 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3436, allocations: 1.375 kB / 0.5881 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.3436, allocations: 2.125 kB / 0.5881 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.3437, allocations: 25.8 kB / 0.5881 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.3437, allocations: 1.125 kB / 0.5881 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.3439, allocations: 26.25 kB / 0.5881 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.3439, allocations: 11 kB / 0.5881 GB, free: 14.82 MB / 446.1 MB 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.0001583/0.3441, allocations: 193.9 kB / 0.5883 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.679e-05/0.3441, allocations: 25.69 kB / 0.5883 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.015e-05/0.3442, allocations: 30.47 kB / 0.5884 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.3442, allocations: 1.375 kB / 0.5884 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.3442, allocations: 1.375 kB / 0.5884 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3442, allocations: 4.594 kB / 0.5884 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.3444, allocations: 285.3 kB / 0.5886 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.3444, allocations: 0 / 0.5886 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.598e-05/0.3445, allocations: 19.03 kB / 0.5887 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3445, allocations: 5.344 kB / 0.5887 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.3446, allocations: 4.484 kB / 0.5887 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3446, allocations: 0.6094 kB / 0.5887 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3446, allocations: 0.6562 kB / 0.5887 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006854/0.3453, allocations: 482.4 kB / 0.5891 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.35e-05/0.3453, allocations: 95.08 kB / 0.5892 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.3454, allocations: 9.172 kB / 0.5892 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.3455, allocations: 16.59 kB / 0.5892 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/0.3456, allocations: 35.7 kB / 0.5893 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.3456, allocations: 6.5 kB / 0.5893 GB, free: 14.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001927/0.3458, allocations: 203.1 kB / 0.5895 GB, free: 13.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3458, allocations: 0 / 0.5895 GB, free: 13.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002738/0.3461, allocations: 51.67 kB / 0.5895 GB, free: 13.91 MB / 446.1 MB 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.000973/0.3471, allocations: 1.031 MB / 0.5905 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004363/0.3475, allocations: 292.1 kB / 0.5908 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3475, allocations: 4.25 kB / 0.5908 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.3478, allocations: 186.2 kB / 0.591 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.348, allocations: 32.16 kB / 0.591 GB, free: 12.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003285/0.3513, allocations: 2.816 MB / 0.5938 GB, free: 11.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.3516, allocations: 0.7506 MB / 0.5945 GB, free: 10.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.828e-05/0.3517, allocations: 18.38 kB / 0.5945 GB, free: 10.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.991e-05/0.3518, allocations: 71.69 kB / 0.5946 GB, free: 10.36 MB / 446.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3518, allocations: 1.219 kB / 0.5946 GB, free: 10.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5432/0.895, allocations: 4.925 MB / 0.5994 GB, free: 8.652 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.8952, allocations: 189.8 kB / 0.5996 GB, free: 8.395 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/2.829, allocations: 0 / 0.5996 GB, free: 8.395 MB / 446.1 MB (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)