Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 110 kB / 16.37 MB, free: 6.469 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.001429/0.001429, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.709/1.709, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05689/0.05689, allocations: 10.75 MB / 281.3 MB, free: 1.312 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.001462/0.001462, allocations: 67.91 kB / 342 MB, free: 4.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.286, allocations: 49.01 MB / 391 MB, free: 49.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003721/0.2897, allocations: 2.377 MB / 393.4 MB, free: 48.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002282/0.292, allocations: 1.442 MB / 394.8 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001935/0.2922, allocations: 14.72 kB / 394.8 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000732/0.293, allocations: 215.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.0003804/0.2934, allocations: 162 kB / 395.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009828/0.2944, allocations: 397.8 kB / 395.6 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006499/0.295, allocations: 0.6046 MB / 396.2 MB, free: 46.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.2952, allocations: 84.41 kB / 396.3 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002846/0.2955, allocations: 225.3 kB / 396.5 MB, free: 46.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003279/0.2959, allocations: 238.6 kB / 396.7 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.831e-05/0.2959, allocations: 33.53 kB / 396.8 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003025/0.2962, allocations: 159.7 kB / 396.9 MB, free: 46.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.2964, allocations: 141.4 kB / 397.1 MB, free: 46.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.2966, allocations: 214.9 kB / 397.3 MB, free: 46.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000653/0.2973, allocations: 0.5532 MB / 397.8 MB, free: 45.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2973, allocations: 0 / 397.8 MB, free: 45.94 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2973, allocations: 5.125 kB / 397.8 MB, free: 45.94 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.2973, allocations: 0.7969 kB / 397.8 MB, free: 45.94 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.001269/0.2986, allocations: 0.8816 MB / 398.7 MB, free: 45.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.2987, allocations: 17.55 kB / 398.7 MB, free: 45.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.2988, allocations: 60.77 kB / 398.8 MB, free: 45.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006154/0.2994, allocations: 460.7 kB / 399.2 MB, free: 44.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.2994, allocations: 27.06 kB / 399.3 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.908e-05/0.2995, allocations: 38.53 kB / 399.3 MB, free: 44.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005996/0.3001, allocations: 434 kB / 399.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.3001, allocations: 6.25 kB / 399.7 MB, free: 44.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.78e-05/0.3002, allocations: 16.47 kB / 399.7 MB, free: 44.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3002, allocations: 7.531 kB / 399.8 MB, free: 44.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005354/0.3007, allocations: 304.6 kB / 400.1 MB, free: 44.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.3028, allocations: 1.567 MB / 401.6 MB, free: 43.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.3032, allocations: 236.8 kB / 401.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.3035, allocations: 152.2 kB / 402 MB, free: 42.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.955e-05/0.3035, allocations: 3.859 kB / 402 MB, free: 42.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003724/0.3039, allocations: 241.9 kB / 402.2 MB, free: 42.8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.585e-06/0.3039, allocations: 0 / 402.2 MB, free: 42.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.001058/0.305, allocations: 0.5497 MB / 402.8 MB, free: 42.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.305, allocations: 111.9 kB / 402.9 MB, free: 42.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006331/0.3057, allocations: 0.5197 MB / 403.4 MB, free: 42.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.3057, allocations: 32.17 kB / 403.4 MB, free: 42.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.3059, allocations: 265.7 kB / 403.7 MB, free: 41.81 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.724e-05/0.306, allocations: 118.2 kB / 403.8 MB, free: 41.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/0.3061, allocations: 86.31 kB / 403.9 MB, free: 41.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.3063, allocations: 369.7 kB / 404.3 MB, free: 41.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.3065, allocations: 142.1 kB / 404.4 MB, free: 41.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.3069, allocations: 295.2 kB / 404.7 MB, free: 40.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/0.3086, allocations: 0.8997 MB / 405.6 MB, free: 40.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.3086, allocations: 1.469 kB / 405.6 MB, free: 40.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008848/0.3095, allocations: 0.6175 MB / 406.2 MB, free: 40.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.3096, allocations: 40.06 kB / 406.3 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3096, allocations: 4.094 kB / 406.3 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.3096, allocations: 10.69 kB / 406.3 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004146/0.31, allocations: 106.6 kB / 406.4 MB, free: 39.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.31, allocations: 9.719 kB / 406.4 MB, free: 39.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.3103, allocations: 55.02 kB / 406.4 MB, free: 39.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.649e-05/0.3103, allocations: 21.81 kB / 406.5 MB, free: 39.93 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.0002828/0.3106, allocations: 266.8 kB / 406.7 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.361e-05/0.3107, allocations: 47.81 kB / 406.8 MB, free: 39.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008736/0.3116, allocations: 0.4987 MB / 407.3 MB, free: 39.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.3116, allocations: 3.25 kB / 407.3 MB, free: 39.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.3116, allocations: 4 kB / 407.3 MB, free: 39.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.3116, allocations: 1.125 kB / 407.3 MB, free: 39.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004643/0.3121, allocations: 451.4 kB / 407.7 MB, free: 39.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3121, allocations: 0 / 407.7 MB, free: 39.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003835/0.3125, allocations: 65.89 kB / 407.8 MB, free: 39.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3125, allocations: 5.344 kB / 407.8 MB, free: 39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.114e-05/0.3126, allocations: 23.77 kB / 407.8 MB, free: 38.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3126, allocations: 1.031 kB / 407.8 MB, free: 38.99 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3126, allocations: 0 / 407.8 MB, free: 38.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.3137, allocations: 0.6661 MB / 408.5 MB, free: 38.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.3138, allocations: 128.4 kB / 408.6 MB, free: 38.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.789e-05/0.3139, allocations: 23.94 kB / 408.6 MB, free: 38.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.314, allocations: 11.98 kB / 408.6 MB, free: 38.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.513e-05/0.3141, allocations: 23.97 kB / 408.7 MB, free: 38.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.3142, allocations: 19.98 kB / 408.7 MB, free: 38.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003535/0.3145, allocations: 362.8 kB / 409 MB, free: 38.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3145, allocations: 4 kB / 409 MB, free: 38.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.3151, allocations: 115.8 kB / 409.1 MB, free: 37.91 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.00118/0.3162, allocations: 466.2 kB / 409.6 MB, free: 37.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007922/0.317, allocations: 490.8 kB / 410.1 MB, free: 37.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3171, allocations: 5 kB / 410.1 MB, free: 37.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002816/0.3174, allocations: 251.3 kB / 410.3 MB, free: 36.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.3178, allocations: 86.22 kB / 410.4 MB, free: 36.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.3193, allocations: 0.9892 MB / 411.4 MB, free: 35.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.3197, allocations: 0.8702 MB / 412.3 MB, free: 34.88 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002416/0.3199, allocations: 104 kB / 412.4 MB, free: 34.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.314e-05/0.32, allocations: 39.44 kB / 412.4 MB, free: 34.73 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3201, allocations: 0 / 412.4 MB, free: 34.73 MB / 318.1 MB Notification: Performance of Templates: time 0.008995/0.3291, allocations: 5.064 MB / 417.5 MB, free: 29.67 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)