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.001893/0.001893, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.002316/0.002317, allocations: 192.1 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.7/1.7, 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.0574/0.0574, allocations: 10.73 MB / 281.3 MB, free: 1.316 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.00218/0.00218, allocations: 64.47 kB / 342 MB, free: 4.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3172, allocations: 49.01 MB / 391 MB, free: 49.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003675/0.3209, allocations: 2.37 MB / 393.4 MB, free: 48.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.3231, allocations: 1.431 MB / 394.8 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.3233, allocations: 17.97 kB / 394.8 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007489/0.3241, allocations: 209 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.0004286/0.3245, allocations: 158.2 kB / 395.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.3256, allocations: 401 kB / 395.6 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008024/0.3264, allocations: 0.5957 MB / 396.2 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.3267, allocations: 94.75 kB / 396.3 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003054/0.327, allocations: 225.1 kB / 396.5 MB, free: 46.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003477/0.3273, allocations: 239.3 kB / 396.7 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.87e-05/0.3274, allocations: 31.25 kB / 396.7 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003289/0.3277, allocations: 152.9 kB / 396.9 MB, free: 46.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.3279, allocations: 149.1 kB / 397 MB, free: 46.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.3281, allocations: 219.3 kB / 397.3 MB, free: 46.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007069/0.3288, allocations: 0.5408 MB / 397.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3289, allocations: 0 / 397.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3289, allocations: 1.188 kB / 397.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.3289, allocations: 0 / 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.001369/0.3303, allocations: 0.8834 MB / 398.7 MB, free: 45.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3303, allocations: 14.72 kB / 398.7 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.3304, allocations: 61.94 kB / 398.8 MB, free: 45.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006116/0.331, allocations: 447.2 kB / 399.2 MB, free: 44.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.3311, allocations: 27.19 kB / 399.2 MB, free: 44.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.355e-05/0.3312, allocations: 42.78 kB / 399.3 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006099/0.3318, allocations: 440.3 kB / 399.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.3318, allocations: 0 / 399.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.3319, allocations: 15.44 kB / 399.7 MB, free: 44.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.3319, allocations: 4.406 kB / 399.7 MB, free: 44.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005342/0.3324, allocations: 312.6 kB / 400 MB, free: 44.42 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.3345, allocations: 1.552 MB / 401.6 MB, free: 43.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004279/0.335, allocations: 240.1 kB / 401.8 MB, free: 43.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.3352, allocations: 148.2 kB / 401.9 MB, free: 42.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.3353, allocations: 3.609 kB / 401.9 MB, free: 42.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003744/0.3356, allocations: 241.9 kB / 402.2 MB, free: 42.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 1.773e-06/0.3356, allocations: 0 / 402.2 MB, free: 42.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.001055/0.3367, allocations: 0.5574 MB / 402.7 MB, free: 42.53 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.3368, allocations: 108.1 kB / 402.8 MB, free: 42.4 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006281/0.3374, allocations: 0.5216 MB / 403.4 MB, free: 42.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.3375, allocations: 32.36 kB / 403.4 MB, free: 42.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.3376, allocations: 273.1 kB / 403.7 MB, free: 41.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.087e-05/0.3377, allocations: 113.6 kB / 403.8 MB, free: 41.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.3379, allocations: 99.23 kB / 403.9 MB, free: 41.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.338, allocations: 365.2 kB / 404.2 MB, free: 41.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.3383, allocations: 146 kB / 404.4 MB, free: 41.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.3386, allocations: 283.5 kB / 404.6 MB, free: 40.99 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001783/0.3404, allocations: 0.8973 MB / 405.5 MB, free: 40.37 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.3404, allocations: 2.406 kB / 405.5 MB, free: 40.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001067/0.3415, allocations: 0.6137 MB / 406.2 MB, free: 40.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/0.3415, allocations: 37.59 kB / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3416, allocations: 4.719 kB / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.3416, allocations: 10.19 kB / 406.2 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.3421, allocations: 111 kB / 406.3 MB, free: 39.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.215e-05/0.3421, allocations: 10.84 kB / 406.3 MB, free: 39.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.3424, allocations: 62.17 kB / 406.4 MB, free: 39.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.3424, allocations: 21.75 kB / 406.4 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.0004331/0.3429, allocations: 255.7 kB / 406.7 MB, free: 39.72 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.236e-05/0.343, allocations: 55.34 kB / 406.7 MB, free: 39.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009734/0.344, allocations: 498.7 kB / 407.2 MB, free: 39.42 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.344, allocations: 6.312 kB / 407.2 MB, free: 39.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.344, allocations: 1.031 kB / 407.2 MB, free: 39.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.344, allocations: 3.984 kB / 407.2 MB, free: 39.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000544/0.3446, allocations: 450.4 kB / 407.7 MB, free: 39.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.3446, allocations: 0.875 kB / 407.7 MB, free: 39.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000408/0.345, allocations: 71.33 kB / 407.7 MB, free: 39.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.345, allocations: 1.219 kB / 407.7 MB, free: 39.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.136e-05/0.3451, allocations: 22.98 kB / 407.8 MB, free: 39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3451, allocations: 1.188 kB / 407.8 MB, free: 39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3451, allocations: 0 / 407.8 MB, free: 39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.3461, allocations: 0.658 MB / 408.4 MB, free: 38.65 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3463, allocations: 129.5 kB / 408.5 MB, free: 38.51 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.674e-05/0.3463, allocations: 15.92 kB / 408.6 MB, free: 38.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.3465, allocations: 19.98 kB / 408.6 MB, free: 38.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.51e-05/0.3466, allocations: 27.89 kB / 408.6 MB, free: 38.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.07e-05/0.3466, allocations: 12 kB / 408.6 MB, free: 38.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003195/0.3469, allocations: 366.9 kB / 409 MB, free: 38.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.347, allocations: 3.938 kB / 409 MB, free: 38.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005257/0.3475, allocations: 119.8 kB / 409.1 MB, free: 37.96 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.001084/0.3486, allocations: 458.1 kB / 409.5 MB, free: 37.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006707/0.3493, allocations: 499.7 kB / 410 MB, free: 37.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3493, allocations: 0 / 410 MB, free: 37.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002635/0.3495, allocations: 259.3 kB / 410.3 MB, free: 36.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004171/0.35, allocations: 78.17 kB / 410.4 MB, free: 36.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.3513, allocations: 0.9814 MB / 411.3 MB, free: 35.83 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.3516, allocations: 0.878 MB / 412.2 MB, free: 34.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.3519, allocations: 95.39 kB / 412.3 MB, free: 34.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.886e-05/0.352, allocations: 35.44 kB / 412.3 MB, free: 34.8 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.352, allocations: 0 / 412.3 MB, free: 34.8 MB / 318.1 MB Notification: Performance of Templates: time 0.01031/0.3623, allocations: 5.064 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 cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)