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.0009441/0.0009441, allocations: 180.9 kB / 7.65 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.9155/0.9155, allocations: 133.6 MB / 141.6 MB, free: 2.879 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.523/1.523, allocations: 221.5 MB / 395.4 MB, free: 10.81 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.0008875/0.0008877, allocations: 99.73 kB / 478.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.28e-05/2.283e-05, allocations: 4 kB / 0.5535 GB, free: 8.949 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4377/0.4377, allocations: 82.28 MB / 0.6339 GB, free: 40.78 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1585/0.5963, allocations: 118.6 MB / 0.7497 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.5965, allocations: 75.97 kB / 0.7498 GB, free: 3.992 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.04764/0.6442, allocations: 16.79 MB / 0.7662 GB, free: 3.16 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.883e-06/0.6442, allocations: 0 / 0.7662 GB, free: 3.16 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001007/0.6444, allocations: 20 kB / 0.7662 GB, free: 3.141 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.002154/0.6465, allocations: 0.9392 MB / 0.7671 GB, free: 2.148 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.6466, allocations: 16.03 kB / 0.7671 GB, free: 2.133 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004295/0.647, allocations: 94.83 kB / 0.7672 GB, free: 2.039 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.6483, allocations: 0.5746 MB / 0.7678 GB, free: 1.426 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.6485, allocations: 84.7 kB / 0.7679 GB, free: 1.328 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.6486, allocations: 35.91 kB / 0.7679 GB, free: 1.293 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007347/0.6493, allocations: 334.6 kB / 0.7682 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008448/0.6502, allocations: 0.5103 MB / 0.7687 GB, free: 416 kB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.6502, allocations: 3.938 kB / 0.7687 GB, free: 412 kB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.773e-05/0.6503, allocations: 11.95 kB / 0.7687 GB, free: 400 kB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.6503, allocations: 12 kB / 0.7687 GB, free: 388 kB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003054/0.6534, allocations: 2.107 MB / 0.7708 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008226/0.6542, allocations: 431.5 kB / 0.7712 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.6545, allocations: 153.6 kB / 0.7714 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.6545, allocations: 4 kB / 0.7714 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004185/0.655, allocations: 237.6 kB / 0.7716 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=45): time 2.755e-06/0.655, allocations: 8 kB / 0.7716 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of matching and sorting (n=45): time 0.0007173/0.6557, allocations: 385.3 kB / 0.772 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.933e-05/0.6558, allocations: 195.8 kB / 0.7722 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005723/0.6564, allocations: 471.8 kB / 0.7726 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.156e-05/0.6564, allocations: 25.7 kB / 0.7726 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000276/0.6567, allocations: 368.6 kB / 0.773 GB, free: 11.87 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.6569, allocations: 153.7 kB / 0.7731 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.6569, allocations: 0 / 0.7731 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.6571, allocations: 386.7 kB / 0.7735 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.6573, allocations: 141.1 kB / 0.7736 GB, free: 11.19 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.6577, allocations: 264 kB / 0.7739 GB, free: 10.89 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.6579, allocations: 168.6 kB / 0.774 GB, free: 10.72 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.658, allocations: 0 / 0.774 GB, free: 10.72 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007547/0.6587, allocations: 479.1 kB / 0.7745 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000363/0.6591, allocations: 0.9909 MB / 0.7755 GB, free: 9.176 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.6591, allocations: 1.094 kB / 0.7755 GB, free: 9.176 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.6591, allocations: 8 kB / 0.7755 GB, free: 9.168 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005176/0.6597, allocations: 123.8 kB / 0.7756 GB, free: 9.047 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.6597, allocations: 7.984 kB / 0.7756 GB, free: 9.039 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004864/0.6602, allocations: 67.59 kB / 0.7757 GB, free: 8.973 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.281e-05/0.6602, allocations: 19.98 kB / 0.7757 GB, free: 8.953 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 8.877e-06/0.6602, allocations: 4 kB / 0.7757 GB, free: 8.949 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000635/0.6609, allocations: 382.2 kB / 0.776 GB, free: 8.574 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.6609, allocations: 8.25 kB / 0.7761 GB, free: 8.566 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.823e-06/0.6609, allocations: 8 kB / 0.7761 GB, free: 8.559 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004761/0.6614, allocations: 115.8 kB / 0.7762 GB, free: 8.445 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.6614, allocations: 7.938 kB / 0.7762 GB, free: 8.438 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004338/0.6618, allocations: 59.62 kB / 0.7762 GB, free: 8.379 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.6619, allocations: 20 kB / 0.7763 GB, free: 8.359 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.0001502/0.662, allocations: 125.2 kB / 0.7764 GB, free: 8.234 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006061/0.6627, allocations: 388.4 kB / 0.7767 GB, free: 7.848 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.6628, allocations: 71.11 kB / 0.7768 GB, free: 7.777 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.663, allocations: 74.84 kB / 0.7769 GB, free: 7.703 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.663, allocations: 4.062 kB / 0.7769 GB, free: 7.699 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.663, allocations: 4 kB / 0.7769 GB, free: 7.695 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.413e-06/0.663, allocations: 4 kB / 0.7769 GB, free: 7.691 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008555/0.6639, allocations: 0.5717 MB / 0.7775 GB, free: 7.082 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.6639, allocations: 0 / 0.7775 GB, free: 7.082 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005138/0.6644, allocations: 99.88 kB / 0.7776 GB, free: 6.984 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.6645, allocations: 0 / 0.7776 GB, free: 6.984 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.173e-05/0.6645, allocations: 7.984 kB / 0.7776 GB, free: 6.977 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.6645, allocations: 7.953 kB / 0.7776 GB, free: 6.969 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.6645, allocations: 0 / 0.7776 GB, free: 6.969 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.6657, allocations: 0.6187 MB / 0.7782 GB, free: 6.332 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003266/0.6661, allocations: 200.1 kB / 0.7784 GB, free: 6.117 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.982e-05/0.6662, allocations: 4 kB / 0.7784 GB, free: 6.113 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/0.6667, allocations: 55.95 kB / 0.7784 GB, free: 6.059 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.6668, allocations: 35.89 kB / 0.7785 GB, free: 6.023 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.465e-05/0.6669, allocations: 16 kB / 0.7785 GB, free: 6.008 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005365/0.6674, allocations: 363.2 kB / 0.7788 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6674, allocations: 0 / 0.7788 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0008301/0.6683, allocations: 219.1 kB / 0.779 GB, free: 5.441 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.001481/0.6697, allocations: 1.179 MB / 0.7802 GB, free: 4.234 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001148/0.6709, allocations: 0.7066 MB / 0.7809 GB, free: 3.504 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.6709, allocations: 4.062 kB / 0.7809 GB, free: 3.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002953/0.6712, allocations: 183.6 kB / 0.781 GB, free: 3.32 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008817/0.6721, allocations: 156 kB / 0.7812 GB, free: 3.168 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.6743, allocations: 0.9713 MB / 0.7821 GB, free: 2.156 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.6747, allocations: 0.9384 MB / 0.7831 GB, free: 1.191 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006112/0.6753, allocations: 123.2 kB / 0.7832 GB, free: 1.066 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.6757, allocations: 263.3 kB / 0.7834 GB, free: 0.8086 MB / 0.5573 GB Notification: Performance of SimCode: time 3.6e-07/0.6757, allocations: 4 kB / 0.7834 GB, free: 0.8047 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.7121, allocations: 13.63 MB / 0.7967 GB, free: 3.281 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/0.7123, allocations: 115 kB / 0.7969 GB, free: 3.094 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/3.208, allocations: 0 / 0.7969 GB, free: 3.094 MB / 0.573 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)