Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.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.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPID",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.001772/0.001772, allocations: 174.7 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.7383/0.7383, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.653/1.653, allocations: 221.3 MB / 400.4 MB, free: 5.805 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.0009229/0.0009229, allocations: 97.08 kB / 483.3 MB, free: 5.848 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.209e-05/4.213e-05, allocations: 2.312 kB / 0.5601 GB, free: 87.87 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1789, allocations: 82.3 MB / 0.6405 GB, free: 7.754 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6436/0.8226, allocations: 119.2 MB / 0.7569 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.8229, allocations: 85.14 kB / 0.757 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.04191/0.8648, allocations: 16.9 MB / 0.7735 GB, free: 19.93 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.226e-06/0.8649, allocations: 0 / 0.7735 GB, free: 19.93 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001217/0.865, allocations: 23.94 kB / 0.7735 GB, free: 19.91 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002119/0.8672, allocations: 0.9374 MB / 0.7745 GB, free: 18.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.8672, allocations: 8.031 kB / 0.7745 GB, free: 18.97 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002158/0.8674, allocations: 93.91 kB / 0.7746 GB, free: 18.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003065/0.8678, allocations: 102.8 kB / 0.7747 GB, free: 18.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.869, allocations: 0.5773 MB / 0.7752 GB, free: 18.28 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.8691, allocations: 96.34 kB / 0.7753 GB, free: 18.19 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.801e-05/0.8692, allocations: 59.59 kB / 0.7754 GB, free: 18.15 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009759/0.8702, allocations: 0.5795 MB / 0.7759 GB, free: 17.69 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.8702, allocations: 0 / 0.7759 GB, free: 17.69 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.173e-05/0.8703, allocations: 29.58 kB / 0.776 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.8703, allocations: 16 kB / 0.776 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006435/0.871, allocations: 373.2 kB / 0.7763 GB, free: 17.44 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003192/0.8742, allocations: 2.213 MB / 0.7785 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008016/0.875, allocations: 464.9 kB / 0.7789 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.8753, allocations: 172.4 kB / 0.7791 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 4.712e-05/0.8753, allocations: 7.953 kB / 0.7791 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004423/0.8758, allocations: 256.6 kB / 0.7793 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=45): time 3.075e-06/0.8758, allocations: 0 / 0.7793 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=45): time 0.0007512/0.8766, allocations: 406.7 kB / 0.7797 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.8767, allocations: 195.2 kB / 0.7799 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006531/0.8774, allocations: 0.5287 MB / 0.7804 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.111e-05/0.8774, allocations: 40.64 kB / 0.7805 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002829/0.8777, allocations: 357.2 kB / 0.7808 GB, free: 13.75 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.8779, allocations: 161.8 kB / 0.781 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.8779, allocations: 10.94 kB / 0.781 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.8781, allocations: 332.4 kB / 0.7813 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000266/0.8783, allocations: 151.4 kB / 0.7814 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.8787, allocations: 275.8 kB / 0.7817 GB, free: 12.96 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.8791, allocations: 203.3 kB / 0.7819 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.8791, allocations: 0 / 0.7819 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009241/0.88, allocations: 0.5356 MB / 0.7824 GB, free: 12.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004755/0.8805, allocations: 0.9918 MB / 0.7834 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.8805, allocations: 5.094 kB / 0.7834 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.8805, allocations: 4 kB / 0.7834 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/0.8811, allocations: 125.6 kB / 0.7835 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.8811, allocations: 4 kB / 0.7835 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005419/0.8817, allocations: 89.77 kB / 0.7836 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.8817, allocations: 18.69 kB / 0.7836 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.8817, allocations: 4 kB / 0.7836 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007526/0.8825, allocations: 472.5 kB / 0.7841 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.8825, allocations: 7.938 kB / 0.7841 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.8825, allocations: 4 kB / 0.7841 GB, free: 10.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004802/0.883, allocations: 114.6 kB / 0.7842 GB, free: 10.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.883, allocations: 11.92 kB / 0.7842 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004929/0.8835, allocations: 73.38 kB / 0.7843 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/0.8836, allocations: 15.25 kB / 0.7843 GB, free: 10.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001814/0.8838, allocations: 137 kB / 0.7844 GB, free: 10.46 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.8839, allocations: 79.05 kB / 0.7845 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000212/0.8841, allocations: 79.89 kB / 0.7846 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.8842, allocations: 8 kB / 0.7846 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.8842, allocations: 4 kB / 0.7846 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.8842, allocations: 3.984 kB / 0.7846 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000756/0.885, allocations: 0.6462 MB / 0.7852 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.885, allocations: 0 / 0.7852 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005078/0.8855, allocations: 99.81 kB / 0.7853 GB, free: 9.707 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.8855, allocations: 4 kB / 0.7853 GB, free: 9.703 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.708e-05/0.8856, allocations: 10.56 kB / 0.7853 GB, free: 9.699 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.8856, allocations: 3.953 kB / 0.7853 GB, free: 9.695 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.8856, allocations: 4 kB / 0.7853 GB, free: 9.691 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.8866, allocations: 0.6575 MB / 0.786 GB, free: 9.23 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.8869, allocations: 198.8 kB / 0.7862 GB, free: 9.047 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.219e-05/0.887, allocations: 11.69 kB / 0.7862 GB, free: 9.043 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/0.8875, allocations: 66.81 kB / 0.7863 GB, free: 8.984 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.8877, allocations: 35.97 kB / 0.7863 GB, free: 8.953 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.533e-05/0.8877, allocations: 19.55 kB / 0.7863 GB, free: 8.938 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005787/0.8883, allocations: 428.9 kB / 0.7867 GB, free: 8.625 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8883, allocations: 4 kB / 0.7867 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007/0.889, allocations: 229.6 kB / 0.7869 GB, free: 8.418 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001463/0.8905, allocations: 1.223 MB / 0.7881 GB, free: 7.387 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001192/0.8917, allocations: 0.7473 MB / 0.7889 GB, free: 6.824 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.8917, allocations: 3.938 kB / 0.7889 GB, free: 6.82 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.892, allocations: 186.6 kB / 0.789 GB, free: 6.695 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008966/0.8929, allocations: 184.3 kB / 0.7892 GB, free: 6.555 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.8953, allocations: 1.005 MB / 0.7902 GB, free: 5.633 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.8959, allocations: 0.935 MB / 0.7911 GB, free: 4.664 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0007033/0.8966, allocations: 135.7 kB / 0.7912 GB, free: 4.531 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003392/0.8969, allocations: 255.3 kB / 0.7915 GB, free: 4.473 MB / 0.5105 GB Notification: Performance of SimCode: time 6.11e-07/0.8969, allocations: 0 / 0.7915 GB, free: 4.473 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03927/0.9362, allocations: 14.96 MB / 0.8061 GB, free: 5.715 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/0.9365, allocations: 138.9 kB / 0.8062 GB, free: 5.488 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.604/3.54, allocations: 0 / 0.8062 GB, free: 5.488 MB / 0.5261 GB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)