Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Controllers.Examples.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 113.7 kB / 16.37 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001614/0.001615, allocations: 191.2 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05754/0.05754, allocations: 10.74 MB / 281.3 MB, free: 1.324 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 63.91 kB / 342 MB, free: 4.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2427, allocations: 49 MB / 391 MB, free: 49.94 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003808/0.2465, allocations: 2.377 MB / 393.4 MB, free: 48.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.2487, allocations: 1.434 MB / 394.8 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.2489, allocations: 10.81 kB / 394.8 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006562/0.2496, allocations: 216.9 kB / 395 MB, free: 47.2 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003679/0.2499, allocations: 162.6 kB / 395.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009235/0.2509, allocations: 395.2 kB / 395.6 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006389/0.2515, allocations: 0.6006 MB / 396.2 MB, free: 46.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.2517, allocations: 74.88 kB / 396.2 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002434/0.2519, allocations: 228 kB / 396.5 MB, free: 46.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002919/0.2522, allocations: 246.9 kB / 396.7 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.105e-05/0.2523, allocations: 32.34 kB / 396.7 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002385/0.2526, allocations: 152.9 kB / 396.9 MB, free: 46.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.2527, allocations: 144.5 kB / 397 MB, free: 46.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.2529, allocations: 215.2 kB / 397.2 MB, free: 46.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005824/0.2535, allocations: 0.5455 MB / 397.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2535, allocations: 0 / 397.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2535, allocations: 0 / 397.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.2535, allocations: 1.125 kB / 397.8 MB, free: 45.95 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001286/0.2548, allocations: 0.8759 MB / 398.7 MB, free: 45.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2549, allocations: 14.61 kB / 398.7 MB, free: 45.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.255, allocations: 60.12 kB / 398.7 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005988/0.2556, allocations: 451.2 kB / 399.2 MB, free: 44.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.2556, allocations: 25.06 kB / 399.2 MB, free: 44.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.738e-05/0.2557, allocations: 45.83 kB / 399.2 MB, free: 44.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006102/0.2563, allocations: 437.8 kB / 399.7 MB, free: 44.6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.2563, allocations: 2.906 kB / 399.7 MB, free: 44.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.2564, allocations: 18.88 kB / 399.7 MB, free: 44.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.2564, allocations: 11.92 kB / 399.7 MB, free: 44.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005227/0.2569, allocations: 320.2 kB / 400 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.2589, allocations: 1.548 MB / 401.6 MB, free: 43.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.2593, allocations: 232.8 kB / 401.8 MB, free: 43.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.2595, allocations: 147.8 kB / 401.9 MB, free: 43.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.2596, allocations: 3.422 kB / 401.9 MB, free: 43.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003553/0.2599, allocations: 250.7 kB / 402.2 MB, free: 42.83 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 1.783e-06/0.26, allocations: 0 / 402.2 MB, free: 42.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.001111/0.2611, allocations: 0.5498 MB / 402.7 MB, free: 42.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.2612, allocations: 112.6 kB / 402.8 MB, free: 42.42 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006356/0.2618, allocations: 0.5161 MB / 403.4 MB, free: 42.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.2619, allocations: 32.48 kB / 403.4 MB, free: 42.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.262, allocations: 269.6 kB / 403.7 MB, free: 41.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.072e-05/0.2621, allocations: 122.6 kB / 403.8 MB, free: 41.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.2623, allocations: 93.94 kB / 403.9 MB, free: 41.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.2624, allocations: 365.6 kB / 404.2 MB, free: 41.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.2627, allocations: 142.5 kB / 404.4 MB, free: 41.26 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003643/0.263, allocations: 290.6 kB / 404.7 MB, free: 41.01 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/0.2647, allocations: 0.8941 MB / 405.5 MB, free: 40.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.2647, allocations: 5.625 kB / 405.6 MB, free: 40.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008295/0.2656, allocations: 0.6098 MB / 406.2 MB, free: 40.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.09e-05/0.2656, allocations: 38.09 kB / 406.2 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.2656, allocations: 3.938 kB / 406.2 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.2657, allocations: 10.66 kB / 406.2 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004165/0.2661, allocations: 111.5 kB / 406.3 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.2661, allocations: 11.16 kB / 406.3 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.2663, allocations: 67.41 kB / 406.4 MB, free: 39.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.569e-05/0.2664, allocations: 19.75 kB / 406.4 MB, free: 39.95 MB / 318.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002469/0.2666, allocations: 259 kB / 406.7 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.715e-05/0.2667, allocations: 56.3 kB / 406.7 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000746/0.2674, allocations: 489.7 kB / 407.2 MB, free: 39.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.2675, allocations: 3.438 kB / 407.2 MB, free: 39.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2675, allocations: 4 kB / 407.2 MB, free: 39.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.2675, allocations: 5.141 kB / 407.2 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003774/0.2679, allocations: 450.1 kB / 407.7 MB, free: 39.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2679, allocations: 1.125 kB / 407.7 MB, free: 39.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003915/0.2683, allocations: 65.89 kB / 407.7 MB, free: 39.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.2683, allocations: 6.062 kB / 407.7 MB, free: 39.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.2683, allocations: 18.61 kB / 407.7 MB, free: 39.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.2683, allocations: 1.125 kB / 407.7 MB, free: 39.03 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2683, allocations: 1.125 kB / 407.7 MB, free: 39.03 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009612/0.2693, allocations: 0.6668 MB / 408.4 MB, free: 38.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.184e-05/0.2694, allocations: 120.5 kB / 408.5 MB, free: 38.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.2695, allocations: 19.92 kB / 408.6 MB, free: 38.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.2696, allocations: 15.98 kB / 408.6 MB, free: 38.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.8e-05/0.2697, allocations: 23.97 kB / 408.6 MB, free: 38.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.2698, allocations: 8.109 kB / 408.6 MB, free: 38.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002929/0.2701, allocations: 378.8 kB / 409 MB, free: 38.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2701, allocations: 0 / 409 MB, free: 38.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004223/0.2705, allocations: 119.7 kB / 409.1 MB, free: 37.97 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009544/0.2715, allocations: 461.3 kB / 409.5 MB, free: 37.69 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006153/0.2721, allocations: 495 kB / 410 MB, free: 37.19 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2721, allocations: 4 kB / 410 MB, free: 37.19 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002634/0.2724, allocations: 251.2 kB / 410.3 MB, free: 36.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.2728, allocations: 86.77 kB / 410.4 MB, free: 36.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.2739, allocations: 0.9822 MB / 411.3 MB, free: 35.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.2742, allocations: 0.8858 MB / 412.2 MB, free: 34.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001996/0.2744, allocations: 95.33 kB / 412.3 MB, free: 34.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.311e-05/0.2745, allocations: 39.44 kB / 412.4 MB, free: 34.8 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2745, allocations: 4 kB / 412.4 MB, free: 34.79 MB / 318.1 MB Notification: Performance of Templates: time 0.008866/0.2834, allocations: 5.055 MB / 417.4 MB, free: 29.74 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)