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.001946/0.001946, 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.8529/0.8529, 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.943/1.943, allocations: 221.3 MB / 400.4 MB, free: 5.766 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.0008924/0.0008926, allocations: 82.95 kB / 483.3 MB, free: 5.828 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.124e-05/4.127e-05, allocations: 3.312 kB / 0.5601 GB, free: 87.87 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1918, allocations: 82.3 MB / 0.6405 GB, free: 7.738 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7142/0.906, allocations: 119.2 MB / 0.7569 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.9063, allocations: 75.36 kB / 0.757 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.04281/0.9491, allocations: 16.9 MB / 0.7735 GB, free: 20.24 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.793e-06/0.9491, allocations: 0 / 0.7735 GB, free: 20.24 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001081/0.9493, allocations: 23.94 kB / 0.7735 GB, free: 20.21 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.002017/0.9513, allocations: 0.9315 MB / 0.7745 GB, free: 19.28 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.9514, allocations: 11.97 kB / 0.7745 GB, free: 19.27 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.9516, allocations: 97.34 kB / 0.7746 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002992/0.9519, allocations: 98.88 kB / 0.7747 GB, free: 19.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.9531, allocations: 0.578 MB / 0.7752 GB, free: 18.58 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.9532, allocations: 97.66 kB / 0.7753 GB, free: 18.49 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.9534, allocations: 60.27 kB / 0.7754 GB, free: 18.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009109/0.9543, allocations: 0.5797 MB / 0.7759 GB, free: 17.99 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.9543, allocations: 0 / 0.7759 GB, free: 17.99 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.576e-05/0.9544, allocations: 27.83 kB / 0.776 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.9544, allocations: 12 kB / 0.776 GB, free: 17.97 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006212/0.955, allocations: 373.7 kB / 0.7763 GB, free: 17.74 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.958, allocations: 2.219 MB / 0.7785 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008241/0.9589, allocations: 468 kB / 0.7789 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.9592, allocations: 164.1 kB / 0.7791 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 5.044e-05/0.9592, allocations: 11.95 kB / 0.7791 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004134/0.9596, allocations: 247 kB / 0.7793 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=45): time 3.015e-06/0.9597, allocations: 3.984 kB / 0.7794 GB, free: 15.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=45): time 0.000733/0.9604, allocations: 412 kB / 0.7797 GB, free: 14.94 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.9605, allocations: 191.9 kB / 0.7799 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000652/0.9612, allocations: 0.5359 MB / 0.7805 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.578e-05/0.9613, allocations: 36.64 kB / 0.7805 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002649/0.9615, allocations: 352.2 kB / 0.7808 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/0.9617, allocations: 162.8 kB / 0.781 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.85e-05/0.9617, allocations: 9.688 kB / 0.781 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.9619, allocations: 328.1 kB / 0.7813 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002802/0.9622, allocations: 151.1 kB / 0.7814 GB, free: 13.51 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003787/0.9626, allocations: 277.4 kB / 0.7817 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003426/0.9629, allocations: 199.8 kB / 0.7819 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.9629, allocations: 8 kB / 0.7819 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009368/0.9639, allocations: 0.537 MB / 0.7824 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004752/0.9644, allocations: 0.9875 MB / 0.7834 GB, free: 11.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.9644, allocations: 5.094 kB / 0.7834 GB, free: 11.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.9644, allocations: 8 kB / 0.7834 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005413/0.965, allocations: 118.4 kB / 0.7835 GB, free: 11.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/0.965, allocations: 8 kB / 0.7835 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005318/0.9655, allocations: 89.64 kB / 0.7836 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.9656, allocations: 19.56 kB / 0.7836 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.9656, allocations: 7.938 kB / 0.7836 GB, free: 11.42 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007275/0.9664, allocations: 468.7 kB / 0.7841 GB, free: 11.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.9664, allocations: 8 kB / 0.7841 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.606e-06/0.9664, allocations: 8 kB / 0.7841 GB, free: 11.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004656/0.9669, allocations: 115.7 kB / 0.7842 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.9669, allocations: 4 kB / 0.7842 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/0.9674, allocations: 73.72 kB / 0.7843 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.9674, allocations: 15.44 kB / 0.7843 GB, free: 10.89 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.0001832/0.9676, allocations: 137.5 kB / 0.7844 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/0.9678, allocations: 75.05 kB / 0.7845 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002075/0.968, allocations: 79.77 kB / 0.7846 GB, free: 10.65 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.968, allocations: 4 kB / 0.7846 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.968, allocations: 0 / 0.7846 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.968, allocations: 11.98 kB / 0.7846 GB, free: 10.63 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007892/0.9688, allocations: 0.6485 MB / 0.7852 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.9688, allocations: 0 / 0.7852 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004826/0.9693, allocations: 99.5 kB / 0.7853 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.9694, allocations: 0 / 0.7853 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.746e-05/0.9694, allocations: 15.38 kB / 0.7853 GB, free: 10.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.9694, allocations: 7.953 kB / 0.7853 GB, free: 10 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.9694, allocations: 0 / 0.7853 GB, free: 10 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.9705, allocations: 0.6603 MB / 0.786 GB, free: 9.535 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000283/0.9708, allocations: 199.7 kB / 0.7862 GB, free: 9.352 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.303e-05/0.9709, allocations: 11.19 kB / 0.7862 GB, free: 9.348 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.9714, allocations: 62.95 kB / 0.7863 GB, free: 9.293 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.9715, allocations: 39.33 kB / 0.7863 GB, free: 9.258 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.04e-05/0.9715, allocations: 15.36 kB / 0.7863 GB, free: 9.246 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005172/0.9721, allocations: 426.2 kB / 0.7867 GB, free: 8.938 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9721, allocations: 0 / 0.7867 GB, free: 8.938 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007263/0.9728, allocations: 233.1 kB / 0.7869 GB, free: 8.73 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.001353/0.9742, allocations: 1.227 MB / 0.7881 GB, free: 7.695 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001132/0.9753, allocations: 0.743 MB / 0.7889 GB, free: 7.133 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.9753, allocations: 3.938 kB / 0.7889 GB, free: 7.129 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002897/0.9756, allocations: 192.4 kB / 0.789 GB, free: 7.004 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000917/0.9766, allocations: 172 kB / 0.7892 GB, free: 6.871 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.9789, allocations: 1.015 MB / 0.7902 GB, free: 5.945 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005173/0.9794, allocations: 0.9389 MB / 0.7911 GB, free: 4.973 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0007002/0.9801, allocations: 131.9 kB / 0.7912 GB, free: 4.844 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003419/0.9805, allocations: 256.8 kB / 0.7915 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of SimCode: time 9.72e-07/0.9805, allocations: 0 / 0.7915 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03622/1.017, allocations: 14.97 MB / 0.8061 GB, free: 6.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/1.017, allocations: 140.9 kB / 0.8062 GB, free: 5.797 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.713/3.73, allocations: 0 / 0.8062 GB, free: 5.797 MB / 0.5261 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)