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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7457/0.7457, allocations: 133.4 MB / 146.7 MB, free: 10.77 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 221.3 MB / 400.4 MB, free: 5.816 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008952/0.0008952, allocations: 100.2 kB / 483.3 MB, free: 5.836 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 2.822e-05/2.824e-05, allocations: 4.266 kB / 0.5601 GB, free: 87.89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1269, allocations: 82.3 MB / 0.6405 GB, free: 7.707 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4832/0.6102, allocations: 114.4 MB / 0.7522 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.6104, allocations: 85.22 kB / 0.7523 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01512/0.6256, allocations: 5.877 MB / 0.758 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.252e-06/0.6256, allocations: 4 kB / 0.758 GB, free: 26.68 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.971e-05/0.6256, allocations: 3.844 kB / 0.758 GB, free: 26.68 MB / 0.5105 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.0007567/0.6264, allocations: 0.5565 MB / 0.7586 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.6264, allocations: 11.03 kB / 0.7586 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.845e-05/0.6265, allocations: 40.78 kB / 0.7586 GB, free: 26.16 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.049e-05/0.6266, allocations: 30.59 kB / 0.7586 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004069/0.627, allocations: 293.7 kB / 0.7589 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.627, allocations: 15.5 kB / 0.7589 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/0.6271, allocations: 11.09 kB / 0.7589 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003256/0.6274, allocations: 241.7 kB / 0.7592 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.6274, allocations: 0 / 0.7592 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.6275, allocations: 15.38 kB / 0.7592 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.6275, allocations: 3.844 kB / 0.7592 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.6277, allocations: 143.1 kB / 0.7593 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008217/0.6285, allocations: 0.7337 MB / 0.76 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.6287, allocations: 158.8 kB / 0.7602 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.6288, allocations: 109.5 kB / 0.7603 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.6289, allocations: 7.875 kB / 0.7603 GB, free: 25.13 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/0.6291, allocations: 183.6 kB / 0.7605 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=15): time 2.154e-06/0.6291, allocations: 0 / 0.7605 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.0005037/0.6296, allocations: 347.8 kB / 0.7608 GB, free: 24.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.6297, allocations: 132.3 kB / 0.7609 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.6299, allocations: 245.5 kB / 0.7612 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.6299, allocations: 36.78 kB / 0.7612 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.663e-05/0.63, allocations: 160.4 kB / 0.7614 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.234e-05/0.63, allocations: 46.2 kB / 0.7614 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.143e-05/0.63, allocations: 0 / 0.7614 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.388e-05/0.6301, allocations: 341 kB / 0.7617 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.6303, allocations: 94.03 kB / 0.7618 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.6304, allocations: 144.5 kB / 0.762 GB, free: 24.06 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.6305, allocations: 119.8 kB / 0.7621 GB, free: 24.01 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.6305, allocations: 0 / 0.7621 GB, free: 24.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000421/0.631, allocations: 372.3 kB / 0.7624 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.136e-05/0.631, allocations: 37.22 kB / 0.7625 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.631, allocations: 3.875 kB / 0.7625 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.631, allocations: 0 / 0.7625 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.6312, allocations: 38.64 kB / 0.7625 GB, free: 23.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.6312, allocations: 3.984 kB / 0.7625 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.6314, allocations: 42.59 kB / 0.7625 GB, free: 23.83 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.906e-05/0.6314, allocations: 10.47 kB / 0.7626 GB, free: 23.83 MB / 0.5105 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.618e-05/0.6315, allocations: 149.4 kB / 0.7627 GB, free: 23.69 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.6315, allocations: 35.12 kB / 0.7627 GB, free: 23.67 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.714e-05/0.6316, allocations: 27.91 kB / 0.7628 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.6316, allocations: 3.656 kB / 0.7628 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.6316, allocations: 3.984 kB / 0.7628 GB, free: 23.65 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.6316, allocations: 0 / 0.7628 GB, free: 23.65 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.6318, allocations: 303 kB / 0.7631 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6318, allocations: 0 / 0.7631 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.6319, allocations: 19.34 kB / 0.7631 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.6319, allocations: 15.78 kB / 0.7631 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.632, allocations: 3.906 kB / 0.7631 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.632, allocations: 0 / 0.7631 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.632, allocations: 0 / 0.7631 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006188/0.6326, allocations: 0.5212 MB / 0.7636 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.85e-05/0.6327, allocations: 100.5 kB / 0.7637 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.221e-05/0.6327, allocations: 7.828 kB / 0.7637 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.6329, allocations: 34.2 kB / 0.7637 GB, free: 23.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.437e-05/0.633, allocations: 30.47 kB / 0.7638 GB, free: 23.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/0.633, allocations: 10.44 kB / 0.7638 GB, free: 23.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001417/0.6331, allocations: 202.1 kB / 0.764 GB, free: 23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6331, allocations: 0 / 0.764 GB, free: 23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002855/0.6334, allocations: 70.08 kB / 0.764 GB, free: 22.99 MB / 0.5105 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007511/0.6342, allocations: 1.002 MB / 0.765 GB, free: 22.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002845/0.6345, allocations: 275.9 kB / 0.7653 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.6345, allocations: 4.25 kB / 0.7653 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.6346, allocations: 173.8 kB / 0.7654 GB, free: 22.17 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.6349, allocations: 30.72 kB / 0.7655 GB, free: 22.16 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008282/0.6357, allocations: 440.6 kB / 0.7659 GB, free: 21.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.636, allocations: 0.7523 MB / 0.7666 GB, free: 21.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 7.689e-05/0.636, allocations: 24.59 kB / 0.7667 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.482e-05/0.6361, allocations: 70.69 kB / 0.7667 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of SimCode: time 4.1e-07/0.6361, allocations: 3.719 kB / 0.7667 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01553/0.6517, allocations: 4.852 MB / 0.7715 GB, free: 18.91 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.6519, allocations: 151.7 kB / 0.7716 GB, free: 18.68 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.912/2.564, allocations: 7.125 kB / 0.7716 GB, free: 18.68 MB / 0.5105 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/linux/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)