Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.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.Digital.Examples.TestPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID") translateModel(IndustrialControlSystems.Controllers.Digital.Examples.TestPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID") [: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.003284/0.003284, allocations: 183.6 kB / 7.456 MB, free: 2.234 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06086/0.06086, allocations: 10.6 MB / 18.46 MB, free: 2.117 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.607/1.607, allocations: 205.2 MB / 226.5 MB, free: 0.5469 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.001031/0.00103, allocations: 88.62 kB / 276.9 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.144e-06/7.304e-06, allocations: 0 / 332.9 MB, free: 9.754 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2806, allocations: 49.99 MB / 382.9 MB, free: 39.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1114/0.3921, allocations: 83.07 MB / 466 MB, free: 4.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.3924, allocations: 84.78 kB / 466.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06708/0.4595, allocations: 21.99 MB / 488.1 MB, free: 14.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001426/0.4597, allocations: 23.98 kB / 488.1 MB, free: 14.69 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002856/0.4626, allocations: 1.175 MB / 489.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.4627, allocations: 12.02 kB / 489.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004488/0.4631, allocations: 106.7 kB / 489.4 MB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.4652, allocations: 0.6728 MB / 490.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.923e-05/0.4653, allocations: 20 kB / 490.1 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.4654, allocations: 35.98 kB / 490.1 MB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009152/0.4664, allocations: 373.6 kB / 490.5 MB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009712/0.4673, allocations: 0.5422 MB / 491 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.4674, allocations: 4 kB / 491 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.475e-05/0.4675, allocations: 11.98 kB / 491 MB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.4675, allocations: 15.91 kB / 491.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00368/0.4712, allocations: 1.564 MB / 492.6 MB, free: 9.953 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007871/0.472, allocations: 0.6241 MB / 493.2 MB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005434/0.4725, allocations: 0.533 MB / 493.8 MB, free: 8.785 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.4726, allocations: 4 kB / 493.8 MB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000598/0.4732, allocations: 464.1 kB / 494.2 MB, free: 8.297 MB / 378.7 MB Notification: Performance of pre-optimization done (n=65): time 2.655e-06/0.4732, allocations: 0 / 494.2 MB, free: 8.297 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.00125/0.4745, allocations: 0.6642 MB / 494.9 MB, free: 7.625 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.4746, allocations: 286.9 kB / 495.2 MB, free: 7.285 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009362/0.4756, allocations: 0.7147 MB / 495.9 MB, free: 6.566 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.634e-05/0.4756, allocations: 37.7 kB / 495.9 MB, free: 6.523 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.4758, allocations: 225.2 kB / 496.1 MB, free: 6.297 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.4759, allocations: 177.6 kB / 496.3 MB, free: 6.121 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.632e-05/0.476, allocations: 0 / 496.3 MB, free: 6.121 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4761, allocations: 337.9 kB / 496.7 MB, free: 5.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.4764, allocations: 201.4 kB / 496.8 MB, free: 5.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004802/0.4769, allocations: 461.7 kB / 497.3 MB, free: 5.027 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004687/0.4774, allocations: 266.8 kB / 497.6 MB, free: 4.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.4774, allocations: 3.938 kB / 497.6 MB, free: 4.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001241/0.4786, allocations: 0.7574 MB / 498.3 MB, free: 4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.4787, allocations: 5.594 kB / 498.3 MB, free: 3.996 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.4787, allocations: 4 kB / 498.3 MB, free: 3.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/0.4787, allocations: 16 kB / 498.3 MB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/0.4793, allocations: 131.8 kB / 498.5 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/0.4793, allocations: 15.92 kB / 498.5 MB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/0.4798, allocations: 79.34 kB / 498.6 MB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.888e-05/0.4799, allocations: 32 kB / 498.6 MB, free: 3.723 MB / 378.7 MB Warning: Assuming fixed start value for the following 19 variables: Controller.satLOW:DISCRETE(fixed = false ) "The CS signal saturated at CSmin" type: Boolean Controller.satHI:DISCRETE(fixed = false ) "The CS signal saturated at CSmax" type: Boolean Controller.cs:DISCRETE(fixed = false protected = true ) type: Real Controller.dcs:DISCRETE(fixed = false protected = true ) type: Real Controller.dd:DISCRETE(fixed = false protected = true ) type: Real Controller.d:DISCRETE(fixed = false protected = true ) type: Real Controller.di:DISCRETE(fixed = false protected = true ) type: Real Controller.dp:DISCRETE(fixed = false protected = true ) type: Real Controller.dpv:DISCRETE(fixed = false protected = true ) type: Real Controller.dsp:DISCRETE(fixed = false protected = true ) type: Real Controller.pv:DISCRETE(fixed = false protected = true ) type: Real Controller.sp:DISCRETE(fixed = false protected = true ) type: Real Process.w:VARIABLE(protected = true ) "proper part of the output" type: Real Controller.CS:DISCRETE(fixed = false ) "Control signal" type: Real Process.Y[3]:VARIABLE(protected = true ) type: Real [3] Process.U[2]:VARIABLE(protected = true ) type: Real [2] ProcessNoControl.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessNoControl.Y[3]:VARIABLE(protected = true ) type: Real [3] ProcessNoControl.U[2]:VARIABLE(protected = true ) type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 65 ($PRE.Controller.satLOW,Controller.satLOW,$PRE.Controller.satHI,Controller.satHI,$PRE.Controller.cs,Controller.cs,$PRE.Controller.dcs,Controller.dcs,$PRE.Controller.dd,Controller.dd,$PRE.Controller.d,Controller.d,$PRE.Controller.di,Controller.di,$PRE.Controller.dp,Controller.dp,$PRE.Controller.dpv,Controller.dpv,$PRE.Controller.dsp,Controller.dsp,$PRE.Controller.pv,Controller.pv,$PRE.Controller.sp,Controller.sp,$whenCondition7,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition6,$PRE.ForbinINC.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.ForbinDEC.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.man.combiTimeTable.nextTimeEvent,$whenCondition3,deltaCS.a,deltaCS.b,deltaCS.last,$PRE.deltaCS.nextEvent,deltaCS.nextEvent,deltaCS.nextEventScaled,Controller.MAN,man.combiTimeTable.nextTimeEvent,$PRE.man.combiTimeTable.nextTimeEventScaled,man.combiTimeTable.nextTimeEventScaled,Controller.Fdec,ForbinDEC.combiTimeTable.nextTimeEvent,$PRE.ForbinDEC.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEventScaled,Controller.Finc,ForbinINC.combiTimeTable.nextTimeEvent,$PRE.ForbinINC.combiTimeTable.nextTimeEventScaled,ForbinINC.combiTimeTable.nextTimeEventScaled,$whenCondition2,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,Controller.TS,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.Controller.CS,Controller.CS,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 3 * 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.0004941/0.4804, allocations: 298.2 kB / 498.9 MB, free: 3.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.4805, allocations: 98.81 kB / 499 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.482, allocations: 0.7446 MB / 499.7 MB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.4821, allocations: 4 kB / 499.7 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4821, allocations: 0 / 499.7 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.4821, allocations: 3.984 kB / 499.7 MB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000777/0.4829, allocations: 0.6346 MB / 0.4886 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.4829, allocations: 4 kB / 0.4887 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.4832, allocations: 67.89 kB / 0.4887 GB, free: 1.805 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.4833, allocations: 7.906 kB / 0.4887 GB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.624e-05/0.4833, allocations: 23.98 kB / 0.4887 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.4833, allocations: 4 kB / 0.4887 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4834, allocations: 0 / 0.4887 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001703/0.4851, allocations: 1.134 MB / 0.4899 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/0.4853, allocations: 183.9 kB / 0.49 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.4855, allocations: 27.91 kB / 0.4901 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000422/0.4859, allocations: 51.95 kB / 0.4901 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.486, allocations: 43.94 kB / 0.4902 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.315e-05/0.4861, allocations: 39.98 kB / 0.4902 GB, free: 264 kB / 378.7 MB Notification: Performance of sort global known variables: time 0.1594/0.6456, allocations: 0.5378 MB / 0.4907 GB, free: 136.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001433/0.6471, allocations: 219.1 kB / 0.4909 GB, free: 136.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Process.Y[3],Process.U[2],Process.w,ProcessNoControl.Y[3],ProcessNoControl.U[2],ProcessNoControl.w) * Number of discrete variables: 42 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition3,Controller.CS,Controller.satHI,Controller.satLOW,Controller.sp,Controller.dsp,Controller.pv,Controller.dpv,Controller.dp,Controller.di,Controller.d,Controller.dd,Controller.cs,Controller.dcs,Controller.TS,Controller.MAN,Controller.Finc,Controller.Fdec,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled,ForbinINC.combiTimeTable.nextTimeEvent,ForbinINC.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEvent,ForbinDEC.combiTimeTable.nextTimeEventScaled,man.combiTimeTable.nextTimeEvent,man.combiTimeTable.nextTimeEventScaled,deltaCS.a,deltaCS.b,deltaCS.last,deltaCS.nextEvent,deltaCS.nextEventScaled) * Number of discrete states: 35 (Controller.CS,Controller.satLOW,Controller.satHI,Controller.cs,Controller.dcs,Controller.dd,Controller.d,Controller.di,Controller.dp,Controller.dpv,Controller.dsp,Controller.pv,Controller.sp,$whenCondition1,Controller.bias,TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition2,deltaCS.nextEvent,deltaCS.last,deltaCS.nextEventScaled,deltaCS.b,deltaCS.a,$whenCondition3,man.combiTimeTable.nextTimeEvent,ForbinDEC.combiTimeTable.nextTimeEvent,ForbinINC.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEvent,man.combiTimeTable.nextTimeEventScaled,ForbinDEC.combiTimeTable.nextTimeEventScaled,ForbinINC.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.001052/0.6481, allocations: 432.6 kB / 0.4913 GB, free: 136.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009468/0.6491, allocations: 0.6977 MB / 0.492 GB, free: 136.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.6491, allocations: 3.875 kB / 0.492 GB, free: 136.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006815/0.6498, allocations: 0.9258 MB / 0.4929 GB, free: 136 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007739/0.6506, allocations: 139.7 kB / 0.4931 GB, free: 136 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/0.6527, allocations: 1.185 MB / 0.4942 GB, free: 135.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005896/0.6533, allocations: 1.079 MB / 0.4953 GB, free: 135 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6533, allocations: 2.719 kB / 0.4953 GB, free: 135 MB / 378.7 MB Notification: Performance of Templates: time 0.01606/0.6693, allocations: 9.807 MB / 0.5048 GB, free: 134.4 MB / 378.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Digital.Examples.TestPID.pipe 2>&1)