Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001697/0.001697, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.512/1.512, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05923/0.05923, allocations: 10.75 MB / 281.3 MB, free: 1.305 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.001473/0.001473, allocations: 72.45 kB / 342 MB, free: 4.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2608, allocations: 49.01 MB / 391 MB, free: 49.95 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003608/0.2645, allocations: 2.355 MB / 393.3 MB, free: 48.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.2665, allocations: 1.322 MB / 394.7 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002224/0.2667, allocations: 14.44 kB / 394.7 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009022/0.2677, allocations: 214.7 kB / 394.9 MB, free: 47.31 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.0004759/0.2681, allocations: 166.4 kB / 395 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.2693, allocations: 353.2 kB / 395.4 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007356/0.27, allocations: 0.5326 MB / 395.9 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/0.2703, allocations: 86.17 kB / 396 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003001/0.2706, allocations: 199.1 kB / 396.2 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000354/0.2709, allocations: 221.7 kB / 396.4 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.573e-05/0.271, allocations: 28.5 kB / 396.5 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003412/0.2714, allocations: 148 kB / 396.6 MB, free: 46.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.2716, allocations: 122.3 kB / 396.7 MB, free: 46.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.2718, allocations: 209.1 kB / 396.9 MB, free: 46.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006267/0.2724, allocations: 0.4994 MB / 397.4 MB, free: 46.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2724, allocations: 0.7812 kB / 397.4 MB, free: 46.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2724, allocations: 4 kB / 397.4 MB, free: 46.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.2724, allocations: 1.156 kB / 397.4 MB, free: 46.16 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.001254/0.2737, allocations: 0.834 MB / 398.3 MB, free: 45.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.2738, allocations: 17.45 kB / 398.3 MB, free: 45.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.2739, allocations: 54.44 kB / 398.3 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000762/0.2746, allocations: 427.8 kB / 398.7 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.2747, allocations: 21.88 kB / 398.8 MB, free: 45.13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.316e-05/0.2748, allocations: 40.06 kB / 398.8 MB, free: 45.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.2756, allocations: 378.2 kB / 399.2 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.2756, allocations: 1.469 kB / 399.2 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.717e-05/0.2756, allocations: 12.48 kB / 399.2 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/0.2757, allocations: 7.188 kB / 399.2 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004844/0.2762, allocations: 264.1 kB / 399.5 MB, free: 44.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.2781, allocations: 1.378 MB / 400.8 MB, free: 43.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005665/0.2786, allocations: 211.1 kB / 401 MB, free: 43.56 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.2789, allocations: 124.3 kB / 401.2 MB, free: 43.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.2789, allocations: 3.969 kB / 401.2 MB, free: 43.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003566/0.2793, allocations: 211.1 kB / 401.4 MB, free: 43.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.094e-06/0.2793, allocations: 0 / 401.4 MB, free: 43.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009548/0.2802, allocations: 492.9 kB / 401.9 MB, free: 43.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.2803, allocations: 107.1 kB / 402 MB, free: 42.97 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005888/0.2809, allocations: 491.6 kB / 402.4 MB, free: 42.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.2809, allocations: 33.02 kB / 402.5 MB, free: 42.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.2811, allocations: 249.6 kB / 402.7 MB, free: 42.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.184e-05/0.2811, allocations: 84.38 kB / 402.8 MB, free: 42.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.2813, allocations: 81.94 kB / 402.9 MB, free: 42.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.2814, allocations: 359.5 kB / 403.2 MB, free: 41.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.2816, allocations: 110.4 kB / 403.3 MB, free: 41.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/0.2819, allocations: 236.8 kB / 403.6 MB, free: 41.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.2832, allocations: 0.6973 MB / 404.3 MB, free: 41.22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2832, allocations: 1.344 kB / 404.3 MB, free: 41.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007523/0.284, allocations: 0.4968 MB / 404.8 MB, free: 40.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.214e-05/0.284, allocations: 42.48 kB / 404.8 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.2841, allocations: 4.531 kB / 404.8 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.2841, allocations: 4.719 kB / 404.8 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.2844, allocations: 79.58 kB / 404.9 MB, free: 40.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.2844, allocations: 4.344 kB / 404.9 MB, free: 40.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.2846, allocations: 51.36 kB / 404.9 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/0.2847, allocations: 18.69 kB / 405 MB, free: 40.86 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 (44): * Single equations (assignments): 43 * 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.0002996/0.285, allocations: 250.9 kB / 405.2 MB, free: 40.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-05/0.285, allocations: 50.12 kB / 405.3 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007702/0.2858, allocations: 435 kB / 405.7 MB, free: 40.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.2858, allocations: 2.844 kB / 405.7 MB, free: 40.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2858, allocations: 4 kB / 405.7 MB, free: 40.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2859, allocations: 1.438 kB / 405.7 MB, free: 40.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.2863, allocations: 407.6 kB / 406.1 MB, free: 40.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.2863, allocations: 1.625 kB / 406.1 MB, free: 40.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000261/0.2866, allocations: 51.53 kB / 406.1 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.2866, allocations: 5.188 kB / 406.1 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.369e-05/0.2866, allocations: 13.08 kB / 406.2 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2866, allocations: 5.406 kB / 406.2 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.2866, allocations: 1.344 kB / 406.2 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009488/0.2876, allocations: 0.5846 MB / 406.7 MB, free: 39.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.35e-05/0.2877, allocations: 125.8 kB / 406.9 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.305e-05/0.2878, allocations: 9.844 kB / 406.9 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.2879, allocations: 16.52 kB / 406.9 MB, free: 39.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.38e-05/0.288, allocations: 24.19 kB / 406.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.043e-05/0.288, allocations: 8.188 kB / 406.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003522/0.2884, allocations: 341.3 kB / 407.3 MB, free: 39.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2884, allocations: 0 / 407.3 MB, free: 39.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004211/0.2888, allocations: 107.2 kB / 407.4 MB, free: 39.3 MB / 318.1 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,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 (25): * Single equations (assignments): 22 * 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.0009831/0.2898, allocations: 452.5 kB / 407.8 MB, free: 39.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005993/0.2904, allocations: 414.2 kB / 408.2 MB, free: 38.87 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2904, allocations: 0 / 408.2 MB, free: 38.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002836/0.2907, allocations: 231.5 kB / 408.4 MB, free: 38.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.2912, allocations: 76.08 kB / 408.5 MB, free: 38.69 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.2923, allocations: 0.8165 MB / 409.3 MB, free: 37.86 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.2925, allocations: 0.8535 MB / 410.2 MB, free: 36.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.2927, allocations: 67.23 kB / 410.2 MB, free: 36.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.194e-05/0.2928, allocations: 35.42 kB / 410.3 MB, free: 36.88 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2928, allocations: 3.938 kB / 410.3 MB, free: 36.88 MB / 318.1 MB Notification: Performance of Templates: time 0.008027/0.3008, allocations: 4.596 MB / 414.9 MB, free: 32.29 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)