Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.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.Controllers.Examples.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") [: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.004541/0.004541, allocations: 182.5 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09417/0.09417, allocations: 10.59 MB / 18.46 MB, free: 2.172 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.731/1.731, allocations: 205.2 MB / 226.5 MB, free: 0.5273 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.000945/0.0009452, allocations: 88.19 kB / 276.9 MB, free: 15.65 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.572e-05/1.587e-05, allocations: 4 kB / 332.9 MB, free: 7.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3371, allocations: 49.98 MB / 382.9 MB, free: 39.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1169/0.454, allocations: 82.6 MB / 465.5 MB, free: 5.074 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.4544, allocations: 79.95 kB / 465.6 MB, free: 4.996 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03106/0.4854, allocations: 10.06 MB / 475.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.296e-05/0.4855, allocations: 19.19 kB / 475.7 MB, free: 10.88 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00135/0.4869, allocations: 0.7527 MB / 476.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.487, allocations: 8.031 kB / 476.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.4871, allocations: 59.33 kB / 476.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009606/0.4881, allocations: 445.9 kB / 476.9 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.839e-05/0.4882, allocations: 68.06 kB / 477 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.917e-05/0.4883, allocations: 27.89 kB / 477 MB, free: 9.418 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004712/0.4887, allocations: 237.2 kB / 477.3 MB, free: 9.188 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006488/0.4894, allocations: 368.8 kB / 477.6 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.4894, allocations: 8 kB / 477.6 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.4895, allocations: 0 / 477.6 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.4895, allocations: 8 kB / 477.6 MB, free: 8.781 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.4921, allocations: 1.45 MB / 479.1 MB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/0.4925, allocations: 173.8 kB / 479.3 MB, free: 7.086 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.4927, allocations: 125.1 kB / 479.4 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.644e-05/0.4928, allocations: 192 / 479.4 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003375/0.4932, allocations: 210.6 kB / 479.6 MB, free: 6.734 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.704e-06/0.4932, allocations: 7.938 kB / 479.6 MB, free: 6.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006322/0.4938, allocations: 301.8 kB / 479.9 MB, free: 6.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.888e-05/0.4939, allocations: 111 kB / 480 MB, free: 6.297 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004753/0.4944, allocations: 381.1 kB / 480.4 MB, free: 5.926 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.4944, allocations: 25.7 kB / 480.4 MB, free: 5.895 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.4946, allocations: 192 kB / 480.6 MB, free: 5.699 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.517e-05/0.4947, allocations: 90.75 kB / 480.7 MB, free: 5.609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.734e-05/0.4947, allocations: 0 / 480.7 MB, free: 5.609 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002306/0.495, allocations: 358.8 kB / 481 MB, free: 5.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.4952, allocations: 116.7 kB / 481.1 MB, free: 5.133 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.4955, allocations: 220.6 kB / 481.4 MB, free: 4.867 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002971/0.4958, allocations: 152 kB / 481.5 MB, free: 4.719 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4958, allocations: 0 / 481.5 MB, free: 4.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006711/0.4965, allocations: 412.6 kB / 481.9 MB, free: 4.309 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.4965, allocations: 7.906 kB / 481.9 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4965, allocations: 9.672 kB / 481.9 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.4965, allocations: 4.406 kB / 481.9 MB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006729/0.4972, allocations: 99.89 kB / 482 MB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.4972, allocations: 8 kB / 482 MB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.4975, allocations: 35.67 kB / 482.1 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.87e-05/0.4975, allocations: 16 kB / 482.1 MB, free: 4.133 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(protected = true ) type: Real [2] process.Y[3]:VARIABLE(protected = true ) type: Real [3] process.U[2]:VARIABLE(protected = true ) type: Real [2] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * 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.0002376/0.4978, allocations: 171.4 kB / 482.3 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.224e-05/0.4978, allocations: 47.44 kB / 482.3 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006912/0.4985, allocations: 352.4 kB / 482.6 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.4986, allocations: 4 kB / 482.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4986, allocations: 0 / 482.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.4986, allocations: 0 / 482.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004705/0.4991, allocations: 389.7 kB / 483 MB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4991, allocations: 0.5625 kB / 483 MB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006385/0.4997, allocations: 71.89 kB / 483.1 MB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.4997, allocations: 7.906 kB / 483.1 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.4998, allocations: 11.98 kB / 483.1 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4998, allocations: 0 / 483.1 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4998, allocations: 0 / 483.1 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008464/0.5006, allocations: 0.5098 MB / 483.6 MB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.5008, allocations: 128.5 kB / 483.8 MB, free: 2.371 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.5009, allocations: 8 kB / 483.8 MB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/0.5011, allocations: 19.98 kB / 483.8 MB, free: 2.344 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.725e-05/0.5012, allocations: 11.97 kB / 483.8 MB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.5012, allocations: 20 kB / 483.8 MB, free: 2.312 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000362/0.5016, allocations: 295.2 kB / 484.1 MB, free: 2.027 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005126/0.5021, allocations: 99.78 kB / 484.2 MB, free: 1.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * 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.00101/0.5031, allocations: 370.7 kB / 484.6 MB, free: 1.605 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006722/0.5038, allocations: 337.9 kB / 484.9 MB, free: 1.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5038, allocations: 0 / 484.9 MB, free: 1.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002667/0.5041, allocations: 189.5 kB / 485.1 MB, free: 1.078 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.5045, allocations: 54.66 kB / 485.1 MB, free: 1.027 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.506, allocations: 0.6548 MB / 485.8 MB, free: 352 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007462/0.5068, allocations: 0.8978 MB / 486.7 MB, free: 15.42 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5068, allocations: 0 / 486.7 MB, free: 15.42 MB / 378.7 MB Notification: Performance of Templates: time 0.01086/0.5176, allocations: 4.421 MB / 491.1 MB, free: 11 MB / 378.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)