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.001262/0.001262, allocations: 115 kB / 16.37 MB, free: 6.016 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.001162/0.001163, allocations: 193.2 kB / 17.31 MB, free: 5.609 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.703/1.703, allocations: 205.1 MB / 223.2 MB, free: 12.13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05839/0.05839, allocations: 10.74 MB / 281.3 MB, free: 1.297 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.002051/0.002052, allocations: 75.83 kB / 342 MB, free: 4.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3232, allocations: 49 MB / 391 MB, free: 49.97 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004034/0.3273, allocations: 2.359 MB / 393.4 MB, free: 48.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.3303, allocations: 1.419 MB / 394.8 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002798/0.3306, allocations: 10.91 kB / 394.8 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.3317, allocations: 218.6 kB / 395 MB, free: 47.26 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.0005402/0.3323, allocations: 153.2 kB / 395.2 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001591/0.3339, allocations: 402.7 kB / 395.5 MB, free: 46.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.3349, allocations: 0.5754 MB / 396.1 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002649/0.3352, allocations: 78.38 kB / 396.2 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.3356, allocations: 220.5 kB / 396.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004896/0.3361, allocations: 230.4 kB / 396.6 MB, free: 46.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.602e-05/0.3362, allocations: 29.88 kB / 396.7 MB, free: 46.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003365/0.3365, allocations: 154.5 kB / 396.8 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001869/0.3367, allocations: 129.8 kB / 396.9 MB, free: 46.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.3369, allocations: 203.2 kB / 397.1 MB, free: 46.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000761/0.3377, allocations: 0.5118 MB / 397.7 MB, free: 46.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3377, allocations: 1.906 kB / 397.7 MB, free: 46.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3378, allocations: 0 / 397.7 MB, free: 46.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.3378, allocations: 0 / 397.7 MB, free: 46.06 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.001688/0.3395, allocations: 0.8506 MB / 398.5 MB, free: 45.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.567e-05/0.3395, allocations: 13.14 kB / 398.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.3397, allocations: 55.38 kB / 398.6 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008508/0.3406, allocations: 434 kB / 399 MB, free: 45.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.3407, allocations: 79.28 kB / 399.1 MB, free: 44.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-05/0.3408, allocations: 36.81 kB / 399.1 MB, free: 44.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008561/0.3417, allocations: 393.7 kB / 399.5 MB, free: 44.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.3417, allocations: 18.44 kB / 399.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.3417, allocations: 10.91 kB / 399.5 MB, free: 44.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.3418, allocations: 11.56 kB / 399.5 MB, free: 44.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004692/0.3422, allocations: 260.8 kB / 399.8 MB, free: 44.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.3443, allocations: 1.454 MB / 401.2 MB, free: 43.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004799/0.3448, allocations: 196.1 kB / 401.4 MB, free: 43.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002307/0.345, allocations: 125.2 kB / 401.6 MB, free: 43.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.345, allocations: 6.219 kB / 401.6 MB, free: 43.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003337/0.3454, allocations: 220.4 kB / 401.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.853e-06/0.3454, allocations: 1.094 kB / 401.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.0008982/0.3463, allocations: 487.8 kB / 402.3 MB, free: 42.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.3464, allocations: 119.1 kB / 402.4 MB, free: 42.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000558/0.3469, allocations: 495.2 kB / 402.9 MB, free: 42.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.347, allocations: 35.86 kB / 402.9 MB, free: 42.33 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.3471, allocations: 247.4 kB / 403.1 MB, free: 42.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.859e-05/0.3472, allocations: 95.67 kB / 403.2 MB, free: 42.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3474, allocations: 78.38 kB / 403.3 MB, free: 41.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.21e-05/0.3475, allocations: 356.3 kB / 403.7 MB, free: 41.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.3477, allocations: 121.2 kB / 403.8 MB, free: 41.58 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.348, allocations: 233.5 kB / 404 MB, free: 41.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.3494, allocations: 0.733 MB / 404.7 MB, free: 40.87 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3494, allocations: 1.375 kB / 404.7 MB, free: 40.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007657/0.3502, allocations: 0.5081 MB / 405.2 MB, free: 40.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.3503, allocations: 37.34 kB / 405.3 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.3503, allocations: 3.344 kB / 405.3 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.3503, allocations: 5.656 kB / 405.3 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005405/0.3509, allocations: 99.7 kB / 405.4 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/0.3509, allocations: 9.672 kB / 405.4 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.3511, allocations: 47.45 kB / 405.4 MB, free: 40.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.3511, allocations: 17.28 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.0002619/0.3514, allocations: 239.1 kB / 405.7 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.3515, allocations: 46.97 kB / 405.7 MB, free: 40.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007957/0.3523, allocations: 456.2 kB / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.3523, allocations: 2.812 kB / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3523, allocations: 4 kB / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3523, allocations: 0 / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004554/0.3528, allocations: 432.4 kB / 406.6 MB, free: 39.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3528, allocations: 0.875 kB / 406.6 MB, free: 39.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005877/0.3534, allocations: 65.14 kB / 406.7 MB, free: 39.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3534, allocations: 5 kB / 406.7 MB, free: 39.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.3534, allocations: 13.72 kB / 406.7 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3535, allocations: 1.125 kB / 406.7 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.3535, allocations: 1.125 kB / 406.7 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000978/0.3544, allocations: 0.5951 MB / 407.3 MB, free: 39.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.207e-05/0.3545, allocations: 121.8 kB / 407.4 MB, free: 39.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.458e-05/0.3546, allocations: 13.34 kB / 407.4 MB, free: 39.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.3548, allocations: 19.48 kB / 407.4 MB, free: 39.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.3549, allocations: 20.69 kB / 407.5 MB, free: 39.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-05/0.3549, allocations: 8.75 kB / 407.5 MB, free: 39.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003892/0.3553, allocations: 341.4 kB / 407.8 MB, free: 38.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3553, allocations: 0 / 407.8 MB, free: 38.94 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005105/0.3558, allocations: 103.8 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.001077/0.3569, allocations: 466.3 kB / 408.4 MB, free: 38.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006586/0.3576, allocations: 418.4 kB / 408.8 MB, free: 38.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3576, allocations: 0 / 408.8 MB, free: 38.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.3578, allocations: 227.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.0003795/0.3582, allocations: 75.14 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.001004/0.3592, allocations: 0.8537 MB / 409.9 MB, free: 37.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.3595, allocations: 0.8536 MB / 410.8 MB, free: 36.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001607/0.3597, allocations: 71.22 kB / 410.8 MB, free: 36.33 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.12e-05/0.3597, allocations: 39.44 kB / 410.9 MB, free: 36.29 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3597, allocations: 0 / 410.9 MB, free: 36.29 MB / 318.1 MB Notification: Performance of Templates: time 0.008235/0.368, allocations: 4.667 MB / 415.5 MB, free: 31.63 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 cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)