Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.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.Blocks.Examples.TestTrackingLL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL") translateModel(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL") [: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.001559/0.001559, allocations: 189.3 kB / 7.462 MB, free: 1.547 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07686/0.07686, allocations: 10.59 MB / 18.46 MB, free: 3.902 MB / 16.05 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.2 MB / 226.5 MB, free: 6.824 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009571/0.0009571, allocations: 103.1 kB / 276.9 MB, free: 8.414 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 1.601e-05/1.616e-05, allocations: 4 kB / 332.9 MB, free: 292 kB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3143, allocations: 49.99 MB / 382.9 MB, free: 30.85 MB / 290.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.4189, allocations: 78.08 MB / 461 MB, free: 0.625 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.4193, allocations: 79.95 kB / 461.1 MB, free: 0.5469 MB / 338.8 MB Notification: Performance of FrontEnd: time 0.01443/0.4337, allocations: 4.163 MB / 465.3 MB, free: 12.37 MB / 354.8 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.4338, allocations: 4 kB / 465.3 MB, free: 12.36 MB / 354.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00123/0.435, allocations: 0.5708 MB / 465.8 MB, free: 11.73 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.4351, allocations: 12.03 kB / 465.8 MB, free: 11.72 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.4352, allocations: 31.62 kB / 465.9 MB, free: 11.69 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007351/0.436, allocations: 341.6 kB / 466.2 MB, free: 11.31 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.4361, allocations: 101.2 kB / 466.3 MB, free: 11.19 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/0.4362, allocations: 12 kB / 466.3 MB, free: 11.18 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002175/0.4364, allocations: 84.56 kB / 466.4 MB, free: 11.1 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.4367, allocations: 183.2 kB / 466.6 MB, free: 10.9 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.4367, allocations: 3.938 kB / 466.6 MB, free: 10.9 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.4368, allocations: 4 kB / 466.6 MB, free: 10.89 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-05/0.4368, allocations: 4 kB / 466.6 MB, free: 10.89 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.4383, allocations: 0.673 MB / 467.3 MB, free: 10.18 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.4385, allocations: 90.56 kB / 467.4 MB, free: 10.08 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.4387, allocations: 56.86 kB / 467.4 MB, free: 10.02 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.4387, allocations: 3.984 kB / 467.4 MB, free: 10.02 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001871/0.4389, allocations: 104.9 kB / 467.5 MB, free: 9.906 MB / 354.8 MB Notification: Performance of pre-optimization done (n=16): time 2.154e-06/0.4389, allocations: 0 / 467.5 MB, free: 9.906 MB / 354.8 MB Notification: Performance of matching and sorting (n=16): time 0.0003817/0.4393, allocations: 149.4 kB / 467.7 MB, free: 9.754 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.4393, allocations: 59.34 kB / 467.7 MB, free: 9.684 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.4396, allocations: 196.2 kB / 467.9 MB, free: 9.484 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.4396, allocations: 25.7 kB / 467.9 MB, free: 9.453 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.4397, allocations: 124.3 kB / 468.1 MB, free: 9.328 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.233e-05/0.4398, allocations: 55.19 kB / 468.1 MB, free: 9.273 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.282e-05/0.4398, allocations: 0 / 468.1 MB, free: 9.273 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.4399, allocations: 334.8 kB / 468.4 MB, free: 8.938 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.4401, allocations: 48 kB / 468.5 MB, free: 8.891 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.4402, allocations: 75.44 kB / 468.6 MB, free: 8.805 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.4403, allocations: 56.72 kB / 468.6 MB, free: 8.75 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4403, allocations: 0 / 468.6 MB, free: 8.75 MB / 354.8 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003493/0.4407, allocations: 186.2 kB / 468.8 MB, free: 8.566 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.4407, allocations: 4 kB / 468.8 MB, free: 8.562 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4407, allocations: 0 / 468.8 MB, free: 8.562 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.4407, allocations: 4 kB / 468.8 MB, free: 8.559 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.4421, allocations: 135.9 kB / 468.9 MB, free: 8.426 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.4445, allocations: 2.477 MB / 471.4 MB, free: 5.727 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.4449, allocations: 43.98 kB / 471.5 MB, free: 5.684 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/0.4449, allocations: 12 kB / 471.5 MB, free: 5.672 MB / 354.8 MB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: LLtr.Y:VARIABLE(protected = true ) "output before saturation" type: Real Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: LLaw.Y:VARIABLE(protected = true ) "output before saturation" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,LLaw.TS,$PRE.TSsignal.pulseStart,TSsignal.pulseStart,$PRE.TrackRef.T_start,TrackRef.T_start,$PRE.TrackRef.count,TrackRef.count,LL.TS_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.4451, allocations: 112.9 kB / 471.6 MB, free: 5.555 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.4452, allocations: 19.72 kB / 471.6 MB, free: 5.535 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003731/0.4455, allocations: 200.1 kB / 471.8 MB, free: 5.336 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.4456, allocations: 4 kB / 471.8 MB, free: 5.332 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.4456, allocations: 3.938 kB / 471.8 MB, free: 5.328 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4456, allocations: 7.922 kB / 471.8 MB, free: 5.32 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007687/0.4464, allocations: 0.512 MB / 472.3 MB, free: 4.766 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.4464, allocations: 4 kB / 472.3 MB, free: 4.762 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.4475, allocations: 119.9 kB / 472.4 MB, free: 4.645 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.4475, allocations: 0 / 472.4 MB, free: 4.645 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.4476, allocations: 3.984 kB / 472.4 MB, free: 4.641 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.4476, allocations: 0 / 472.4 MB, free: 4.641 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.4476, allocations: 4 kB / 472.4 MB, free: 4.637 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004845/0.4481, allocations: 340.2 kB / 472.8 MB, free: 4.289 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.344e-05/0.4482, allocations: 96.83 kB / 472.9 MB, free: 4.176 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.688e-05/0.4482, allocations: 0 / 472.9 MB, free: 4.176 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/0.4485, allocations: 39.95 kB / 472.9 MB, free: 4.137 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.332e-05/0.4486, allocations: 27.95 kB / 472.9 MB, free: 4.109 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.4486, allocations: 4 kB / 472.9 MB, free: 4.105 MB / 354.8 MB Notification: Performance of sort global known variables: time 0.00012/0.4487, allocations: 148.5 kB / 473.1 MB, free: 3.961 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.0003445/0.4491, allocations: 35.94 kB / 473.1 MB, free: 3.926 MB / 354.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (LLaw.uF,LLtr.uF,LL.uF) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,LLaw.TS,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001689/0.4493, allocations: 114.1 kB / 473.2 MB, free: 3.809 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0008429/0.4501, allocations: 210.2 kB / 473.4 MB, free: 3.598 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4501, allocations: 0 / 473.4 MB, free: 3.598 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.4503, allocations: 72.45 kB / 473.5 MB, free: 3.527 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.4506, allocations: 28.61 kB / 473.5 MB, free: 3.5 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000942/0.4515, allocations: 338.7 kB / 473.9 MB, free: 3.148 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004686/0.452, allocations: 0.7785 MB / 474.7 MB, free: 2.34 MB / 354.8 MB Notification: Performance of SimCode: time 2.71e-07/0.452, allocations: 0 / 474.7 MB, free: 2.34 MB / 354.8 MB Notification: Performance of Templates: time 0.006505/0.4585, allocations: 2.404 MB / 477.1 MB, free: 15.98 MB / 370.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe 2>&1)