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.006483/0.006483, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8055/0.8055, allocations: 135.2 MB / 151 MB, free: 13.81 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.752/1.752, allocations: 223.2 MB / 406.8 MB, free: 3.207 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000915/0.0009145, allocations: 96.62 kB / 489.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003858/0.0003857, allocations: 12 kB / 0.5692 GB, free: 14.03 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6713/0.6717, allocations: 82.3 MB / 0.6495 GB, free: 36.11 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1924/0.8642, allocations: 114.4 MB / 0.7613 GB, free: 1.531 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/0.8646, allocations: 87.94 kB / 0.7614 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01865/0.8833, allocations: 5.894 MB / 0.7671 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.449e-06/0.8834, allocations: 0 / 0.7671 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.425e-05/0.8834, allocations: 4 kB / 0.7671 GB, free: 11.54 MB / 0.5417 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.001118/0.8845, allocations: 0.5896 MB / 0.7677 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.146e-05/0.8846, allocations: 8.031 kB / 0.7677 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.53e-05/0.8847, allocations: 54.55 kB / 0.7678 GB, free: 10.82 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.582e-05/0.8848, allocations: 43.56 kB / 0.7678 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006027/0.8854, allocations: 289.5 kB / 0.7681 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.8855, allocations: 12 kB / 0.7681 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.8855, allocations: 12 kB / 0.7681 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005763/0.8861, allocations: 259.1 kB / 0.7683 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.8861, allocations: 0 / 0.7683 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.8862, allocations: 8 kB / 0.7683 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.8862, allocations: 4 kB / 0.7684 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003598/0.8866, allocations: 160.3 kB / 0.7685 GB, free: 9.984 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.8877, allocations: 0.7432 MB / 0.7692 GB, free: 9.184 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004984/0.8882, allocations: 222.6 kB / 0.7694 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.8883, allocations: 8 kB / 0.7695 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003648/0.8886, allocations: 208.9 kB / 0.7696 GB, free: 8.727 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.362e-06/0.8887, allocations: 0 / 0.7696 GB, free: 8.727 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.001067/0.8897, allocations: 0.5549 MB / 0.7702 GB, free: 8.145 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.805e-05/0.8898, allocations: 136.5 kB / 0.7703 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/0.8901, allocations: 249.9 kB / 0.7706 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.8902, allocations: 41.58 kB / 0.7706 GB, free: 7.691 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.8903, allocations: 152.2 kB / 0.7707 GB, free: 7.539 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.8903, allocations: 47.44 kB / 0.7708 GB, free: 7.492 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.244e-05/0.8904, allocations: 0 / 0.7708 GB, free: 7.492 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.8905, allocations: 342.8 kB / 0.7711 GB, free: 7.148 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.8908, allocations: 120.1 kB / 0.7712 GB, free: 7.027 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.891, allocations: 153.5 kB / 0.7714 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.8913, allocations: 144.2 kB / 0.7715 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/0.8913, allocations: 4 kB / 0.7715 GB, free: 6.711 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007461/0.8921, allocations: 418.8 kB / 0.7719 GB, free: 6.289 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.8921, allocations: 38.78 kB / 0.772 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.8921, allocations: 0 / 0.772 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.8922, allocations: 0 / 0.772 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.8923, allocations: 27.98 kB / 0.772 GB, free: 6.219 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.8923, allocations: 4 kB / 0.772 GB, free: 6.215 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.8925, allocations: 44.09 kB / 0.772 GB, free: 6.172 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.8926, allocations: 11.94 kB / 0.772 GB, free: 6.16 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002017/0.8928, allocations: 191.5 kB / 0.7722 GB, free: 5.957 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/0.8928, allocations: 35.58 kB / 0.7723 GB, free: 5.922 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.615e-05/0.8929, allocations: 33.83 kB / 0.7723 GB, free: 5.891 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.8929, allocations: 0 / 0.7723 GB, free: 5.891 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.8929, allocations: 0 / 0.7723 GB, free: 5.891 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.8929, allocations: 0 / 0.7723 GB, free: 5.891 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.8932, allocations: 301.5 kB / 0.7726 GB, free: 5.547 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.8932, allocations: 0 / 0.7726 GB, free: 5.547 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.8934, allocations: 19.98 kB / 0.7726 GB, free: 5.527 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.8934, allocations: 3.953 kB / 0.7726 GB, free: 5.523 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.8934, allocations: 12 kB / 0.7726 GB, free: 5.512 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.8934, allocations: 0 / 0.7726 GB, free: 5.512 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.8934, allocations: 4 kB / 0.7726 GB, free: 5.508 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.8945, allocations: 0.5821 MB / 0.7732 GB, free: 4.898 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.275e-05/0.8946, allocations: 96.86 kB / 0.7733 GB, free: 4.785 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.8946, allocations: 15.95 kB / 0.7733 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.8948, allocations: 36.03 kB / 0.7733 GB, free: 4.734 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.241e-05/0.8949, allocations: 27.95 kB / 0.7734 GB, free: 4.707 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.044e-05/0.8949, allocations: 11.98 kB / 0.7734 GB, free: 4.695 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002089/0.8951, allocations: 202 kB / 0.7736 GB, free: 4.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8951, allocations: 0 / 0.7736 GB, free: 4.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003311/0.8955, allocations: 67.83 kB / 0.7736 GB, free: 4.434 MB / 0.5417 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) * 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 (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.001236/0.8967, allocations: 1.069 MB / 0.7747 GB, free: 3.328 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005677/0.8973, allocations: 319.4 kB / 0.775 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.8973, allocations: 4 kB / 0.775 GB, free: 3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002793/0.8976, allocations: 187.4 kB / 0.7752 GB, free: 2.805 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.8979, allocations: 32.5 kB / 0.7752 GB, free: 2.773 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.9008, allocations: 2.116 MB / 0.7772 GB, free: 0.5859 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.9012, allocations: 0.7653 MB / 0.778 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 8.837e-05/0.9013, allocations: 17.42 kB / 0.778 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.9014, allocations: 71.34 kB / 0.7781 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of SimCode: time 3.41e-07/0.9015, allocations: 0 / 0.7781 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.9227, allocations: 4.892 MB / 0.7829 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003095/0.9231, allocations: 172 kB / 0.783 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.151/3.074, allocations: 0 / 0.783 GB, free: 10.7 MB / 0.5573 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)