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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 174.8 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.7534/0.7534, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.406/1.406, allocations: 221.3 MB / 400.4 MB, free: 5.84 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.0008858/0.0008859, allocations: 99.75 kB / 483.3 MB, free: 5.859 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.387e-05, allocations: 3.875 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1337, allocations: 82.31 MB / 0.6405 GB, free: 7.711 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5004/0.6342, allocations: 114.4 MB / 0.7522 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.6344, allocations: 82.19 kB / 0.7523 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.0156/0.65, allocations: 5.876 MB / 0.758 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6501, allocations: 4 kB / 0.758 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.169e-05/0.6501, allocations: 3.844 kB / 0.758 GB, free: 26.62 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.0008073/0.6509, allocations: 0.5557 MB / 0.7586 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.6509, allocations: 7.781 kB / 0.7586 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.312e-05/0.651, allocations: 52.83 kB / 0.7586 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.742e-05/0.6511, allocations: 27.09 kB / 0.7586 GB, free: 26.08 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004131/0.6515, allocations: 291.1 kB / 0.7589 GB, free: 25.83 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.6516, allocations: 22.2 kB / 0.7589 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.338e-05/0.6516, allocations: 10.31 kB / 0.7589 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.652, allocations: 244.3 kB / 0.7592 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.652, allocations: 0 / 0.7592 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.652, allocations: 11.19 kB / 0.7592 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.652, allocations: 7.812 kB / 0.7592 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.6522, allocations: 145.3 kB / 0.7593 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009003/0.6531, allocations: 0.7343 MB / 0.7601 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.6534, allocations: 156.1 kB / 0.7602 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.6535, allocations: 109.4 kB / 0.7603 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.6535, allocations: 7.844 kB / 0.7603 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/0.6537, allocations: 174.8 kB / 0.7605 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=15): time 2.505e-06/0.6537, allocations: 0 / 0.7605 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.0005339/0.6543, allocations: 351.9 kB / 0.7608 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.6543, allocations: 132.4 kB / 0.7609 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002188/0.6546, allocations: 250 kB / 0.7612 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.6546, allocations: 29.11 kB / 0.7612 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.6547, allocations: 160.5 kB / 0.7614 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.6547, allocations: 45.67 kB / 0.7614 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.6547, allocations: 6.875 kB / 0.7614 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.6549, allocations: 339.4 kB / 0.7617 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.655, allocations: 90.28 kB / 0.7618 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.6551, allocations: 136 kB / 0.7619 GB, free: 24 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001339/0.6553, allocations: 129.1 kB / 0.7621 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.6553, allocations: 0 / 0.7621 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004508/0.6558, allocations: 373.4 kB / 0.7624 GB, free: 23.83 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.6558, allocations: 37.38 kB / 0.7625 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.6558, allocations: 3.844 kB / 0.7625 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.6558, allocations: 0 / 0.7625 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.656, allocations: 35.36 kB / 0.7625 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.656, allocations: 0 / 0.7625 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.6562, allocations: 42.27 kB / 0.7625 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.22e-05/0.6562, allocations: 11.67 kB / 0.7626 GB, free: 23.77 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 0.0001051/0.6563, allocations: 149.7 kB / 0.7627 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.6564, allocations: 31.05 kB / 0.7627 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.432e-05/0.6564, allocations: 28.02 kB / 0.7628 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.6564, allocations: 7.781 kB / 0.7628 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.6564, allocations: 0 / 0.7628 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.6564, allocations: 0 / 0.7628 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.6567, allocations: 302.7 kB / 0.763 GB, free: 23.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.6567, allocations: 0 / 0.763 GB, free: 23.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.6568, allocations: 23.11 kB / 0.7631 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.6568, allocations: 11.86 kB / 0.7631 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.6568, allocations: 14.64 kB / 0.7631 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6568, allocations: 0 / 0.7631 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.6568, allocations: 0 / 0.7631 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006436/0.6575, allocations: 0.5199 MB / 0.7636 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.686e-05/0.6576, allocations: 95.61 kB / 0.7637 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.6576, allocations: 15.38 kB / 0.7637 GB, free: 23.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.6578, allocations: 31.11 kB / 0.7637 GB, free: 23.05 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.959e-05/0.6579, allocations: 27.08 kB / 0.7638 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.6579, allocations: 15.08 kB / 0.7638 GB, free: 23.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001564/0.6581, allocations: 199.8 kB / 0.764 GB, free: 22.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6581, allocations: 0 / 0.764 GB, free: 22.94 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002797/0.6584, allocations: 64.59 kB / 0.764 GB, free: 22.93 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.0008576/0.6592, allocations: 1.009 MB / 0.765 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003048/0.6595, allocations: 271.5 kB / 0.7653 GB, free: 22.17 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.6596, allocations: 4.25 kB / 0.7653 GB, free: 22.17 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.6597, allocations: 177.4 kB / 0.7654 GB, free: 22.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.66, allocations: 30 kB / 0.7655 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000908/0.6609, allocations: 441.7 kB / 0.7659 GB, free: 21.85 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.6612, allocations: 0.7534 MB / 0.7666 GB, free: 21.12 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.427e-05/0.6613, allocations: 16.92 kB / 0.7667 GB, free: 21.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.983e-05/0.6614, allocations: 67.78 kB / 0.7667 GB, free: 21.1 MB / 0.5105 GB Notification: Performance of SimCode: time 3.21e-07/0.6614, allocations: 0 / 0.7667 GB, free: 21.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01541/0.6768, allocations: 4.867 MB / 0.7715 GB, free: 18.83 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001262/0.677, allocations: 140.9 kB / 0.7716 GB, free: 18.61 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.487, allocations: 4 kB / 0.7716 GB, free: 18.61 MB / 0.5105 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/linux/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)