Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_dev_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.001289/0.001289, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8451/0.8451, allocations: 133.6 MB / 141.6 MB, free: 2.895 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 221.5 MB / 395.5 MB, free: 10.76 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.0009675/0.0009675, allocations: 95.06 kB / 478.2 MB, free: 1.309 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.138e-05/2.16e-05, allocations: 4 kB / 0.5535 GB, free: 8.949 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4685/0.4686, allocations: 82.3 MB / 0.6339 GB, free: 40.79 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1551/0.6237, allocations: 118.6 MB / 0.7497 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.624, allocations: 79.95 kB / 0.7498 GB, free: 3.988 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.04909/0.6731, allocations: 16.78 MB / 0.7662 GB, free: 3.168 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.034e-06/0.6732, allocations: 0 / 0.7662 GB, free: 3.168 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001093/0.6733, allocations: 20 kB / 0.7662 GB, free: 3.148 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002184/0.6755, allocations: 0.9392 MB / 0.7671 GB, free: 2.156 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.6755, allocations: 8.031 kB / 0.7671 GB, free: 2.148 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003826/0.6759, allocations: 98.83 kB / 0.7672 GB, free: 2.051 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.6772, allocations: 0.5785 MB / 0.7678 GB, free: 1.434 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.6774, allocations: 84.66 kB / 0.7679 GB, free: 1.336 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.6775, allocations: 35.89 kB / 0.7679 GB, free: 1.301 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007194/0.6782, allocations: 342.6 kB / 0.7682 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009309/0.6792, allocations: 0.5063 MB / 0.7687 GB, free: 420 kB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.6792, allocations: 3.938 kB / 0.7687 GB, free: 416 kB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.539e-05/0.6793, allocations: 7.953 kB / 0.7687 GB, free: 408 kB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.6793, allocations: 12 kB / 0.7687 GB, free: 396 kB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003388/0.6827, allocations: 2.107 MB / 0.7708 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008903/0.6836, allocations: 431.5 kB / 0.7712 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.6839, allocations: 157.6 kB / 0.7714 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 5.274e-05/0.684, allocations: 4 kB / 0.7714 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004892/0.6845, allocations: 237.6 kB / 0.7716 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=45): time 2.535e-06/0.6845, allocations: 0 / 0.7716 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of matching and sorting (n=45): time 0.0007803/0.6853, allocations: 389.3 kB / 0.772 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.6854, allocations: 191.9 kB / 0.7721 GB, free: 12.75 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006261/0.686, allocations: 475.8 kB / 0.7726 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.752e-05/0.6861, allocations: 25.7 kB / 0.7726 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.6864, allocations: 364.6 kB / 0.773 GB, free: 11.88 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.6866, allocations: 157.6 kB / 0.7731 GB, free: 11.72 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.44e-05/0.6866, allocations: 0 / 0.7731 GB, free: 11.72 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002125/0.6868, allocations: 382.7 kB / 0.7735 GB, free: 11.34 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002574/0.6871, allocations: 145.1 kB / 0.7736 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.6874, allocations: 262.7 kB / 0.7739 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002916/0.6877, allocations: 164.7 kB / 0.774 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.6878, allocations: 3.938 kB / 0.774 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008319/0.6886, allocations: 483.2 kB / 0.7745 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004403/0.689, allocations: 0.983 MB / 0.7755 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.6891, allocations: 7.984 kB / 0.7755 GB, free: 9.18 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.6891, allocations: 5.094 kB / 0.7755 GB, free: 9.176 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005668/0.6897, allocations: 127.8 kB / 0.7756 GB, free: 9.051 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.6897, allocations: 8 kB / 0.7756 GB, free: 9.043 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005084/0.6902, allocations: 63.58 kB / 0.7757 GB, free: 8.98 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.6903, allocations: 20 kB / 0.7757 GB, free: 8.961 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.6903, allocations: 8 kB / 0.7757 GB, free: 8.953 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000698/0.691, allocations: 382.2 kB / 0.7761 GB, free: 8.578 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.691, allocations: 4 kB / 0.7761 GB, free: 8.574 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.691, allocations: 7.938 kB / 0.7761 GB, free: 8.566 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.6915, allocations: 116.2 kB / 0.7762 GB, free: 8.453 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.6915, allocations: 11.89 kB / 0.7762 GB, free: 8.441 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004817/0.692, allocations: 59.62 kB / 0.7762 GB, free: 8.383 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.6921, allocations: 19.98 kB / 0.7763 GB, free: 8.363 MB / 0.5573 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.0001668/0.6923, allocations: 122.8 kB / 0.7764 GB, free: 8.238 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006353/0.6929, allocations: 388.4 kB / 0.7767 GB, free: 7.852 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.693, allocations: 71.2 kB / 0.7768 GB, free: 7.781 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.6932, allocations: 74.81 kB / 0.7769 GB, free: 7.707 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.6932, allocations: 4 kB / 0.7769 GB, free: 7.703 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.6932, allocations: 4 kB / 0.7769 GB, free: 7.699 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.6933, allocations: 3.984 kB / 0.7769 GB, free: 7.695 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007604/0.694, allocations: 0.5678 MB / 0.7775 GB, free: 7.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.694, allocations: 0 / 0.7775 GB, free: 7.09 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005209/0.6946, allocations: 99.88 kB / 0.7775 GB, free: 6.992 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.6946, allocations: 4 kB / 0.7776 GB, free: 6.988 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.6946, allocations: 0 / 0.7776 GB, free: 6.988 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.6946, allocations: 4 kB / 0.7776 GB, free: 6.984 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.6946, allocations: 7.938 kB / 0.7776 GB, free: 6.977 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009968/0.6956, allocations: 0.6226 MB / 0.7782 GB, free: 6.336 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002847/0.6959, allocations: 196.1 kB / 0.7784 GB, free: 6.125 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.454e-05/0.696, allocations: 4 kB / 0.7784 GB, free: 6.121 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005379/0.6966, allocations: 55.94 kB / 0.7784 GB, free: 6.066 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.888e-05/0.6967, allocations: 35.91 kB / 0.7785 GB, free: 6.031 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-05/0.6967, allocations: 19.98 kB / 0.7785 GB, free: 6.012 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004776/0.6972, allocations: 359.2 kB / 0.7788 GB, free: 5.664 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6972, allocations: 0 / 0.7788 GB, free: 5.664 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0007461/0.698, allocations: 215.1 kB / 0.779 GB, free: 5.453 MB / 0.5573 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.001364/0.6994, allocations: 1.183 MB / 0.7802 GB, free: 4.242 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001206/0.7006, allocations: 0.7016 MB / 0.7809 GB, free: 3.516 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7006, allocations: 5.188 kB / 0.7809 GB, free: 3.512 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.7009, allocations: 183.6 kB / 0.781 GB, free: 3.332 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009267/0.7018, allocations: 157.9 kB / 0.7812 GB, free: 3.18 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.7041, allocations: 0.98 MB / 0.7821 GB, free: 2.16 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005339/0.7047, allocations: 0.9345 MB / 0.7831 GB, free: 1.199 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006212/0.7053, allocations: 131.2 kB / 0.7832 GB, free: 1.066 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003692/0.7057, allocations: 255.3 kB / 0.7834 GB, free: 0.8164 MB / 0.5573 GB Notification: Performance of SimCode: time 3.01e-07/0.7057, allocations: 0 / 0.7834 GB, free: 0.8164 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04308/0.7488, allocations: 13.64 MB / 0.7967 GB, free: 3.297 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002453/0.7491, allocations: 124.8 kB / 0.7969 GB, free: 3.102 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.415/3.164, allocations: 7.938 kB / 0.7969 GB, free: 3.094 MB / 0.573 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)