Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_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.TestPI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_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.003624/0.003624, allocations: 187.2 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05882/0.05882, 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.735/1.735, allocations: 205.2 MB / 226.5 MB, free: 0.5117 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.001018/0.001018, allocations: 94.62 kB / 276.9 MB, free: 15.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.588e-06/9.628e-06, allocations: 0 / 332.9 MB, free: 7.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3407, allocations: 49.99 MB / 382.9 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1226/0.4634, allocations: 82.88 MB / 465.8 MB, free: 4.781 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.4638, allocations: 79.95 kB / 465.9 MB, free: 4.703 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05351/0.5173, allocations: 17.14 MB / 483 MB, free: 3.504 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001168/0.5175, allocations: 24 kB / 483 MB, free: 3.48 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002983/0.5205, allocations: 1.038 MB / 484.1 MB, free: 2.375 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.5205, allocations: 8.031 kB / 484.1 MB, free: 2.367 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004602/0.521, allocations: 94.78 kB / 484.2 MB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001945/0.5229, allocations: 0.6336 MB / 484.8 MB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.687e-05/0.523, allocations: 19.94 kB / 484.8 MB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.5232, allocations: 35.91 kB / 484.9 MB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000952/0.5241, allocations: 401.8 kB / 485.3 MB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.5255, allocations: 0.5709 MB / 485.8 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.379e-05/0.5256, allocations: 7.984 kB / 485.8 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.5256, allocations: 0 / 485.8 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.5257, allocations: 12 kB / 485.9 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/0.5296, allocations: 2.136 MB / 488 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006339/0.5302, allocations: 302.6 kB / 488.3 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003279/0.5306, allocations: 221.6 kB / 488.5 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.499e-05/0.5306, allocations: 4.234 kB / 488.5 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004948/0.5311, allocations: 369.1 kB / 488.9 MB, free: 13.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=53): time 2.234e-06/0.5311, allocations: 0.6562 kB / 488.9 MB, free: 13.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.001075/0.5322, allocations: 0.5237 MB / 489.4 MB, free: 12.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.5324, allocations: 174.2 kB / 489.6 MB, free: 12.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009249/0.5333, allocations: 0.6012 MB / 490.2 MB, free: 12.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.5334, allocations: 25.7 kB / 490.2 MB, free: 12.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/0.5336, allocations: 256.5 kB / 490.4 MB, free: 11.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.5338, allocations: 165.7 kB / 490.6 MB, free: 11.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.699e-05/0.5338, allocations: 1.406 kB / 490.6 MB, free: 11.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.5341, allocations: 334 kB / 490.9 MB, free: 11.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003511/0.5344, allocations: 197.4 kB / 491.1 MB, free: 11.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005144/0.535, allocations: 386.9 kB / 491.5 MB, free: 10.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005183/0.5355, allocations: 250.6 kB / 491.7 MB, free: 10.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.5355, allocations: 4 kB / 491.8 MB, free: 10.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001228/0.5367, allocations: 0.6972 MB / 492.4 MB, free: 9.656 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.5368, allocations: 8 kB / 492.5 MB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.5368, allocations: 7.938 kB / 492.5 MB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.5368, allocations: 12.53 kB / 492.5 MB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007396/0.5376, allocations: 179.8 kB / 492.7 MB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.5376, allocations: 8 kB / 492.7 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.5379, allocations: 63.34 kB / 492.7 MB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.964e-05/0.538, allocations: 36 kB / 492.8 MB, free: 9.348 MB / 378.7 MB Warning: Assuming fixed start value for the following 9 variables: processBump.w:VARIABLE(protected = true ) "proper part of the output" type: Real processBump.U[2]:VARIABLE(protected = true ) type: Real [2] processBump.Y[3]:VARIABLE(protected = true ) type: Real [3] 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] processTrack.U[2]:VARIABLE(protected = true ) type: Real [2] processTrack.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: 20 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition4,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.TSsignalBump.combiTimeTable.nextTimeEvent,$whenCondition1,$whenCondition2,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_Bump.TS,TrackRefBump.a,TrackRefBump.b,TrackRefBump.last,$PRE.TrackRefBump.nextEvent,TrackRefBump.nextEvent,TrackRefBump.nextEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,$PRE.TSsignalBump.combiTimeTable.nextTimeEventScaled,TSsignalBump.combiTimeTable.nextTimeEventScaled,R.TS_in,R_Bump.ATreq_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 2 * 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.0002959/0.5383, allocations: 208.7 kB / 493 MB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.5384, allocations: 79.05 kB / 493 MB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.5396, allocations: 0.6209 MB / 493.7 MB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.5396, allocations: 4 kB / 493.7 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.5396, allocations: 0 / 493.7 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.5396, allocations: 4 kB / 493.7 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007081/0.5403, allocations: 0.5643 MB / 494.2 MB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.5404, allocations: 3.906 kB / 494.2 MB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008429/0.5412, allocations: 139.9 kB / 494.4 MB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.5412, allocations: 0 / 494.4 MB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.963e-05/0.5413, allocations: 19.98 kB / 494.4 MB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.5413, allocations: 7.984 kB / 494.4 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.5413, allocations: 7.938 kB / 494.4 MB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001388/0.5427, allocations: 0.9147 MB / 495.3 MB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/0.5429, allocations: 160.1 kB / 495.5 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001818/0.5431, allocations: 27.83 kB / 495.5 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003797/0.5435, allocations: 19.98 kB / 495.5 MB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.5437, allocations: 32.39 kB / 495.6 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.213e-05/0.5438, allocations: 31.98 kB / 495.6 MB, free: 6.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005967/0.5444, allocations: 459.1 kB / 496 MB, free: 5.969 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007162/0.5451, allocations: 183.6 kB / 496.2 MB, free: 5.789 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.FBout,R_track.FBout,process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],processTrack.w,R_Bump.FBout,processBump.Y[3],processBump.U[2],processBump.w) * Number of discrete variables: 20 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled,R_Bump.TS,TrackRefBump.a,TrackRefBump.b,TrackRefBump.last,TrackRefBump.nextEvent,TrackRefBump.nextEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,TSsignalBump.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 16 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TrackRefBump.nextEvent,TrackRefBump.last,TrackRefBump.nextEventScaled,TrackRefBump.b,TrackRefBump.a,$whenCondition2,TSsignalBump.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEvent,TSsignalBump.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.0009529/0.5461, allocations: 418 kB / 496.6 MB, free: 5.426 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009265/0.547, allocations: 0.5979 MB / 497.2 MB, free: 4.816 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.547, allocations: 0 / 497.2 MB, free: 4.816 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004393/0.5475, allocations: 365.3 kB / 497.6 MB, free: 4.445 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006436/0.5481, allocations: 106.3 kB / 497.7 MB, free: 4.344 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002399/0.5505, allocations: 1.102 MB / 498.8 MB, free: 3.211 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008213/0.5514, allocations: 1.058 MB / 499.8 MB, free: 2.125 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5514, allocations: 0 / 499.8 MB, free: 2.125 MB / 378.7 MB Notification: Performance of Templates: time 0.204/0.7554, allocations: 7.618 MB / 0.4956 GB, free: 136.9 MB / 378.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe 2>&1)