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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 116.6 kB / 16.37 MB, free: 6 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.001469/0.001469, allocations: 193.5 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.43/1.43, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05849/0.05849, allocations: 10.73 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.001373/0.001373, allocations: 75.89 kB / 342 MB, free: 4.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2611, allocations: 49 MB / 391 MB, free: 49.97 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.003818/0.2649, allocations: 2.369 MB / 393.4 MB, free: 48.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.2676, allocations: 1.412 MB / 394.8 MB, free: 47.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.2678, allocations: 15.34 kB / 394.8 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008273/0.2686, allocations: 216.2 kB / 395 MB, free: 47.27 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.0004606/0.2691, allocations: 155.9 kB / 395.2 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.2702, allocations: 396.4 kB / 395.5 MB, free: 47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007156/0.2709, allocations: 0.5724 MB / 396.1 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.2711, allocations: 86.62 kB / 396.2 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003303/0.2715, allocations: 216.1 kB / 396.4 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003518/0.2718, allocations: 234.7 kB / 396.6 MB, free: 46.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.049e-05/0.2719, allocations: 29.88 kB / 396.7 MB, free: 46.53 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003467/0.2723, allocations: 158.5 kB / 396.8 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.2725, allocations: 124.6 kB / 397 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001737/0.2726, allocations: 199.9 kB / 397.1 MB, free: 46.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006558/0.2733, allocations: 0.5079 MB / 397.7 MB, free: 46.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2733, allocations: 1.5 kB / 397.7 MB, free: 46.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2733, allocations: 4 kB / 397.7 MB, free: 46.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.2733, allocations: 0.6094 kB / 397.7 MB, free: 46.07 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001337/0.2747, allocations: 0.8451 MB / 398.5 MB, free: 45.4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.2747, allocations: 14.3 kB / 398.5 MB, free: 45.4 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.2748, allocations: 58.62 kB / 398.6 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000624/0.2755, allocations: 430.7 kB / 399 MB, free: 45.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.06e-05/0.2756, allocations: 82.86 kB / 399.1 MB, free: 44.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.197e-05/0.2757, allocations: 33.72 kB / 399.1 MB, free: 44.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007001/0.2764, allocations: 400.1 kB / 399.5 MB, free: 44.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.2764, allocations: 3.906 kB / 399.5 MB, free: 44.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.2764, allocations: 11.44 kB / 399.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.2765, allocations: 10.59 kB / 399.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004991/0.277, allocations: 270.3 kB / 399.8 MB, free: 44.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/0.279, allocations: 1.448 MB / 401.2 MB, free: 43.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.2795, allocations: 202.7 kB / 401.4 MB, free: 43.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.2797, allocations: 125.4 kB / 401.6 MB, free: 43.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.2798, allocations: 2.438 kB / 401.6 MB, free: 43.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000319/0.2801, allocations: 225.5 kB / 401.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.154e-06/0.2801, allocations: 0 / 401.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.000823/0.2809, allocations: 495.5 kB / 402.3 MB, free: 42.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.281, allocations: 107.3 kB / 402.4 MB, free: 42.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004899/0.2815, allocations: 495.3 kB / 402.9 MB, free: 42.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.2815, allocations: 31.86 kB / 402.9 MB, free: 42.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.2817, allocations: 255.3 kB / 403.1 MB, free: 42.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.504e-05/0.2817, allocations: 95.64 kB / 403.2 MB, free: 42.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.2819, allocations: 75.2 kB / 403.3 MB, free: 41.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.282, allocations: 359.1 kB / 403.7 MB, free: 41.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.2822, allocations: 121.8 kB / 403.8 MB, free: 41.58 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.2825, allocations: 232.4 kB / 404 MB, free: 41.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.284, allocations: 0.738 MB / 404.7 MB, free: 40.87 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.284, allocations: 5.125 kB / 404.7 MB, free: 40.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007332/0.2847, allocations: 0.5034 MB / 405.2 MB, free: 40.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.2848, allocations: 38.73 kB / 405.3 MB, free: 40.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.2848, allocations: 7.891 kB / 405.3 MB, free: 40.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.2848, allocations: 8.469 kB / 405.3 MB, free: 40.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005542/0.2854, allocations: 92.52 kB / 405.4 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.2854, allocations: 7.844 kB / 405.4 MB, free: 40.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.2856, allocations: 52.17 kB / 405.4 MB, free: 40.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.2857, allocations: 14.22 kB / 405.5 MB, free: 40.5 MB / 318.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true 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 ($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 (45): * Single equations (assignments): 44 * 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.0002726/0.2859, allocations: 239.1 kB / 405.7 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.009e-05/0.286, allocations: 46.03 kB / 405.7 MB, free: 40.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008046/0.2868, allocations: 444.1 kB / 406.2 MB, free: 40.03 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2868, allocations: 10.52 kB / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.2869, allocations: 5.25 kB / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2869, allocations: 3.938 kB / 406.2 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003929/0.2873, allocations: 424.7 kB / 406.6 MB, free: 39.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2873, allocations: 0 / 406.6 MB, free: 39.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/0.2879, allocations: 66.05 kB / 406.7 MB, free: 39.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.2879, allocations: 1.156 kB / 406.7 MB, free: 39.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.2879, allocations: 17.52 kB / 406.7 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.2879, allocations: 5.188 kB / 406.7 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.2879, allocations: 4 kB / 406.7 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009/0.2888, allocations: 0.5988 MB / 407.3 MB, free: 39.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.824e-05/0.2889, allocations: 114.7 kB / 407.4 MB, free: 39.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.432e-05/0.289, allocations: 13.38 kB / 407.4 MB, free: 39.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.2892, allocations: 19.44 kB / 407.4 MB, free: 39.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.909e-05/0.2893, allocations: 16.98 kB / 407.5 MB, free: 39.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.229e-05/0.2893, allocations: 20.67 kB / 407.5 MB, free: 39.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003377/0.2896, allocations: 337.2 kB / 407.8 MB, free: 38.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2896, allocations: 0 / 407.8 MB, free: 38.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004236/0.2901, allocations: 103.9 kB / 407.9 MB, free: 38.91 MB / 318.1 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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.0009643/0.291, allocations: 469 kB / 408.4 MB, free: 38.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000634/0.2917, allocations: 413.7 kB / 408.8 MB, free: 38.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2917, allocations: 0 / 408.8 MB, free: 38.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002388/0.2919, allocations: 231.3 kB / 409 MB, free: 38.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.2923, allocations: 74.47 kB / 409.1 MB, free: 38.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.2934, allocations: 0.8468 MB / 409.9 MB, free: 37.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.2936, allocations: 0.8536 MB / 410.8 MB, free: 36.4 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.2938, allocations: 71.22 kB / 410.8 MB, free: 36.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.494e-05/0.2939, allocations: 35.42 kB / 410.9 MB, free: 36.3 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2939, allocations: 0 / 410.9 MB, free: 36.3 MB / 318.1 MB Notification: Performance of Templates: time 0.0082/0.3021, allocations: 4.666 MB / 415.5 MB, free: 31.64 MB / 318.1 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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)