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.007888/0.007889, 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.9145/0.9145, allocations: 135.2 MB / 151 MB, free: 13.82 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.776/1.776, allocations: 223.2 MB / 406.8 MB, free: 3.258 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.0009898/0.0009897, allocations: 98.02 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004352/0.0004346, allocations: 12 kB / 0.5692 GB, free: 14.06 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5247/0.5252, allocations: 82.3 MB / 0.6495 GB, free: 36.14 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1646/0.6899, allocations: 114.4 MB / 0.7613 GB, free: 1.559 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004702/0.6904, allocations: 83.94 kB / 0.7614 GB, free: 1.477 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01927/0.7097, allocations: 5.889 MB / 0.7671 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.667e-06/0.7098, allocations: 0 / 0.7671 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.642e-05/0.7099, allocations: 4 kB / 0.7671 GB, free: 11.57 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.001074/0.7109, allocations: 0.6012 MB / 0.7677 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.644e-05/0.711, allocations: 8.031 kB / 0.7677 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.48e-05/0.7111, allocations: 50.55 kB / 0.7678 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.595e-05/0.7112, allocations: 35.62 kB / 0.7678 GB, free: 10.81 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.7117, allocations: 293.5 kB / 0.7681 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.7118, allocations: 8 kB / 0.7681 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.7118, allocations: 19.98 kB / 0.7681 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/0.7123, allocations: 259.1 kB / 0.7683 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.7124, allocations: 0 / 0.7683 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.7124, allocations: 4 kB / 0.7683 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.7124, allocations: 7.984 kB / 0.7684 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003302/0.7128, allocations: 164.3 kB / 0.7685 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.7138, allocations: 0.7355 MB / 0.7692 GB, free: 9.215 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.7144, allocations: 222.4 kB / 0.7694 GB, free: 8.988 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.7144, allocations: 0 / 0.7694 GB, free: 8.988 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003857/0.7148, allocations: 217.1 kB / 0.7696 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.7148, allocations: 0 / 0.7696 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.00109/0.7159, allocations: 0.5549 MB / 0.7702 GB, free: 8.176 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.7161, allocations: 140.5 kB / 0.7703 GB, free: 8.008 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.7164, allocations: 245.9 kB / 0.7706 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.7164, allocations: 33.64 kB / 0.7706 GB, free: 7.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.7165, allocations: 156.2 kB / 0.7707 GB, free: 7.574 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.7166, allocations: 47.44 kB / 0.7708 GB, free: 7.527 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.7166, allocations: 0 / 0.7708 GB, free: 7.527 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.7168, allocations: 342.8 kB / 0.7711 GB, free: 7.184 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.717, allocations: 120.1 kB / 0.7712 GB, free: 7.062 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.7173, allocations: 161.5 kB / 0.7714 GB, free: 6.887 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.7176, allocations: 136.1 kB / 0.7715 GB, free: 6.75 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.7176, allocations: 0 / 0.7715 GB, free: 6.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007466/0.7184, allocations: 418.9 kB / 0.7719 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/0.7184, allocations: 38.78 kB / 0.7719 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.7184, allocations: 7.938 kB / 0.772 GB, free: 6.277 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.7185, allocations: 0 / 0.772 GB, free: 6.277 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.7186, allocations: 32.08 kB / 0.772 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.7187, allocations: 0 / 0.772 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/0.7188, allocations: 39.91 kB / 0.772 GB, free: 6.207 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.7189, allocations: 12 kB / 0.772 GB, free: 6.195 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.0002279/0.7191, allocations: 187.5 kB / 0.7722 GB, free: 5.996 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.575e-05/0.7192, allocations: 39.66 kB / 0.7723 GB, free: 5.957 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.364e-05/0.7193, allocations: 29.78 kB / 0.7723 GB, free: 5.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.7193, allocations: 4 kB / 0.7723 GB, free: 5.926 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.7193, allocations: 3.984 kB / 0.7723 GB, free: 5.922 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.7193, allocations: 0 / 0.7723 GB, free: 5.922 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003295/0.7196, allocations: 301.5 kB / 0.7726 GB, free: 5.578 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.7196, allocations: 0 / 0.7726 GB, free: 5.578 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.7198, allocations: 24 kB / 0.7726 GB, free: 5.555 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.7198, allocations: 7.938 kB / 0.7726 GB, free: 5.547 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.804e-05/0.7198, allocations: 8 kB / 0.7726 GB, free: 5.539 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.7198, allocations: 0 / 0.7726 GB, free: 5.539 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.7198, allocations: 4 kB / 0.7726 GB, free: 5.535 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.7209, allocations: 0.588 MB / 0.7732 GB, free: 4.922 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.721, allocations: 92.86 kB / 0.7733 GB, free: 4.812 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.7211, allocations: 11.95 kB / 0.7733 GB, free: 4.801 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.7212, allocations: 40.03 kB / 0.7733 GB, free: 4.762 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.184e-05/0.7213, allocations: 27.95 kB / 0.7734 GB, free: 4.734 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.7214, allocations: 8 kB / 0.7734 GB, free: 4.727 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002025/0.7216, allocations: 201.9 kB / 0.7736 GB, free: 4.531 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7216, allocations: 0 / 0.7736 GB, free: 4.531 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003388/0.7219, allocations: 67.84 kB / 0.7736 GB, free: 4.465 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.00136/0.7233, allocations: 1.063 MB / 0.7747 GB, free: 3.363 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005561/0.7239, allocations: 315.3 kB / 0.775 GB, free: 3.043 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.7239, allocations: 0 / 0.775 GB, free: 3.043 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002776/0.7242, allocations: 199.3 kB / 0.7751 GB, free: 2.836 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.7245, allocations: 32.69 kB / 0.7752 GB, free: 2.805 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.7275, allocations: 2.119 MB / 0.7772 GB, free: 0.6133 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.728, allocations: 0.7519 MB / 0.778 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001056/0.7281, allocations: 21.78 kB / 0.778 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.7282, allocations: 67.41 kB / 0.7781 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of SimCode: time 8.61e-07/0.7282, allocations: 0 / 0.7781 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02265/0.7509, allocations: 4.908 MB / 0.7829 GB, free: 10.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/0.7513, allocations: 180.6 kB / 0.783 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.15/2.901, allocations: 0 / 0.783 GB, free: 10.73 MB / 0.5573 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)