Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006131/0.006131, allocations: 179.3 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06206/0.06206, allocations: 10.59 MB / 18.45 MB, free: 2.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.681/1.681, allocations: 205.2 MB / 226.5 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 96 kB / 276.9 MB, free: 15.65 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.715e-06/7.855e-06, allocations: 0 / 332.9 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3671, allocations: 49.99 MB / 382.9 MB, free: 39.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1167/0.4838, allocations: 77.83 MB / 460.8 MB, free: 9.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.4841, allocations: 67.97 kB / 460.8 MB, free: 9.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01767/0.5018, allocations: 5.773 MB / 466.6 MB, free: 4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.696e-05/0.5019, allocations: 19.98 kB / 466.6 MB, free: 3.98 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001615/0.5035, allocations: 0.7051 MB / 467.3 MB, free: 3.234 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.5036, allocations: 12.03 kB / 467.3 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002611/0.5039, allocations: 59.25 kB / 467.4 MB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.5051, allocations: 471.2 kB / 467.9 MB, free: 2.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.164e-05/0.5051, allocations: 16 kB / 467.9 MB, free: 2.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.5053, allocations: 27.98 kB / 467.9 MB, free: 2.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000662/0.5059, allocations: 277.9 kB / 468.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009294/0.5069, allocations: 448.8 kB / 468.6 MB, free: 1.879 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.131e-05/0.5069, allocations: 7.906 kB / 468.6 MB, free: 1.871 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.086e-05/0.507, allocations: 8 kB / 468.6 MB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.507, allocations: 8 kB / 468.6 MB, free: 1.855 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003414/0.5104, allocations: 1.539 MB / 470.2 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.511, allocations: 162.3 kB / 470.3 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.5113, allocations: 93.48 kB / 470.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.5113, allocations: 4.234 kB / 470.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004236/0.5117, allocations: 187.4 kB / 470.6 MB, free: 15.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 5.46e-06/0.5118, allocations: 4 kB / 470.6 MB, free: 15.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009573/0.5127, allocations: 317.2 kB / 470.9 MB, free: 15.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.5128, allocations: 59.41 kB / 471 MB, free: 15.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005804/0.5134, allocations: 380.9 kB / 471.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.5134, allocations: 25.7 kB / 471.4 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.5137, allocations: 255.4 kB / 471.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.5138, allocations: 98.66 kB / 471.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.504e-05/0.5138, allocations: 0 / 471.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002421/0.5141, allocations: 370.8 kB / 472.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.5143, allocations: 97.28 kB / 472.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004191/0.5148, allocations: 399.2 kB / 472.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003601/0.5151, allocations: 172.8 kB / 472.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.5151, allocations: 4 kB / 472.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001258/0.5164, allocations: 0.5292 MB / 473.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.5164, allocations: 7.984 kB / 473.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.5165, allocations: 12 kB / 473.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.581e-05/0.5165, allocations: 16.81 kB / 473.3 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/0.5172, allocations: 135.8 kB / 473.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.743e-05/0.5172, allocations: 19.94 kB / 473.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.5176, allocations: 59.36 kB / 473.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/0.5177, allocations: 28 kB / 473.5 MB, free: 12.64 MB / 362.7 MB Warning: Assuming fixed start value for the following 17 variables: R.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real R_outer.CS:DISCRETE(fixed = false ) "Control signal" type: Real R_outer.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R_outer.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real R_inner.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R_inner.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real P_outer.Y[3]:VARIABLE(protected = true ) type: Real [3] P_outer.U[2]:VARIABLE(protected = true ) type: Real [2] P_outer.w:VARIABLE(protected = true ) "proper part of the output" type: Real P2.Y[3]:VARIABLE(protected = true ) type: Real [3] P2.U[2]:VARIABLE(protected = true ) type: Real [2] P2.w:VARIABLE(protected = true ) "proper part of the output" type: Real R_inner.CS:DISCRETE(fixed = false ) "Control signal" type: Real P_inner.w:VARIABLE(protected = true ) "proper part of the output" type: Real R.CS:DISCRETE(fixed = false ) "Control signal" type: Real P1.w:VARIABLE(protected = true ) "proper part of the output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.R.FBout,R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,$PRE.R_outer.FBout,R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,$PRE.R_inner.FBout,R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.R.CS,R.CS,$PRE.R_inner.CS,R_inner.CS,R_inner.TS_in,R_outer.TS_in,R.TS_in,R_inner.ATreq_in,R_outer.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * 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.0002994/0.518, allocations: 173.6 kB / 473.7 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.869e-05/0.5181, allocations: 47.34 kB / 473.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.5182, allocations: 52.84 kB / 473.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.5182, allocations: 4 kB / 473.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5183, allocations: 1.406 kB / 473.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.5183, allocations: 3.984 kB / 473.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005257/0.5188, allocations: 373.7 kB / 474.2 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5188, allocations: 0 / 474.2 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003929/0.5192, allocations: 51.97 kB / 474.2 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.5192, allocations: 4 kB / 474.2 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.853e-05/0.5193, allocations: 11.98 kB / 474.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.5193, allocations: 4 kB / 474.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5193, allocations: 0 / 474.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001102/0.5204, allocations: 493.4 kB / 474.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.5206, allocations: 120.4 kB / 474.9 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.573e-05/0.5207, allocations: 19.98 kB / 474.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.5208, allocations: 7.984 kB / 474.9 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.404e-05/0.5209, allocations: 19.97 kB / 474.9 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.5209, allocations: 11.98 kB / 474.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002915/0.5212, allocations: 275.1 kB / 475.2 MB, free: 10.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004988/0.5217, allocations: 83.69 kB / 475.3 MB, free: 10.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (P1.w,P2.Y[3],P2.U[2],P2.w,P_inner.w,P_outer.Y[3],P_outer.U[2],P_outer.w) * Number of discrete variables: 15 ($whenCondition3,$whenCondition2,$whenCondition1,R.CS,R.FBout,R.cs,R.satin,R_outer.CS,R_outer.FBout,R_outer.cs,R_outer.satin,R_inner.CS,R_inner.FBout,R_inner.cs,R_inner.satin) * Number of discrete states: 6 (R_inner.FBout,R_inner.cs,R_outer.FBout,R_outer.cs,R.FBout,R.cs) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.0002209/0.522, allocations: 127.2 kB / 475.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005672/0.5226, allocations: 345.5 kB / 475.7 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.5226, allocations: 1.062 kB / 475.7 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.5228, allocations: 131.8 kB / 475.9 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.5231, allocations: 46.88 kB / 475.9 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.5244, allocations: 0.6605 MB / 476.6 MB, free: 9.508 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006197/0.525, allocations: 0.9162 MB / 477.5 MB, free: 8.566 MB / 362.7 MB Notification: Performance of SimCode: time 2.826e-06/0.525, allocations: 0 / 477.5 MB, free: 8.566 MB / 362.7 MB Notification: Performance of Templates: time 0.008566/0.5336, allocations: 3.385 MB / 480.9 MB, free: 5.211 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)