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.001396/0.001395, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001425/0.001425, allocations: 192 kB / 17.31 MB, free: 5.18 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.704/1.704, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05891/0.05891, allocations: 10.74 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.001686/0.001686, allocations: 71.91 kB / 342 MB, free: 4.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3133, allocations: 49.01 MB / 391 MB, free: 50.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004173/0.3175, allocations: 2.354 MB / 393.4 MB, free: 48.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002468/0.32, allocations: 1.321 MB / 394.7 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/0.3203, allocations: 14.56 kB / 394.7 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008098/0.3211, allocations: 212.6 kB / 394.9 MB, free: 47.54 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.0004342/0.3215, allocations: 162.5 kB / 395.1 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009159/0.3225, allocations: 355.7 kB / 395.4 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006821/0.3232, allocations: 0.5307 MB / 395.9 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.3234, allocations: 91.2 kB / 396 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/0.3237, allocations: 199 kB / 396.2 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.324, allocations: 218.8 kB / 396.4 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.672e-05/0.3241, allocations: 30.94 kB / 396.5 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003162/0.3244, allocations: 152.8 kB / 396.6 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.3246, allocations: 118.8 kB / 396.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002076/0.3248, allocations: 196.2 kB / 396.9 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007378/0.3256, allocations: 0.5001 MB / 397.4 MB, free: 46.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3256, allocations: 0 / 397.4 MB, free: 46.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3256, allocations: 1.062 kB / 397.4 MB, free: 46.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.3256, allocations: 4 kB / 397.4 MB, free: 46.39 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.001415/0.327, allocations: 0.8353 MB / 398.3 MB, free: 45.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.822e-05/0.3271, allocations: 12.48 kB / 398.3 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.3273, allocations: 55.28 kB / 398.3 MB, free: 45.69 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000856/0.3281, allocations: 427.7 kB / 398.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.28e-05/0.3282, allocations: 21.28 kB / 398.8 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.922e-05/0.3283, allocations: 36.12 kB / 398.8 MB, free: 45.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008745/0.3292, allocations: 388.5 kB / 399.2 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.3292, allocations: 1.875 kB / 399.2 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.414e-05/0.3293, allocations: 16.09 kB / 399.2 MB, free: 45.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.3293, allocations: 7.25 kB / 399.2 MB, free: 45.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005363/0.3298, allocations: 266.2 kB / 399.5 MB, free: 45.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.3317, allocations: 1.377 MB / 400.8 MB, free: 43.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005521/0.3322, allocations: 204.5 kB / 401 MB, free: 43.76 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.3325, allocations: 127 kB / 401.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.3325, allocations: 3.5 kB / 401.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003962/0.3329, allocations: 214.7 kB / 401.4 MB, free: 43.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 1.703e-06/0.3329, allocations: 1.281 kB / 401.4 MB, free: 43.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001007/0.3339, allocations: 480.4 kB / 401.9 MB, free: 43.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.334, allocations: 112.3 kB / 402 MB, free: 43.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006027/0.3346, allocations: 494.9 kB / 402.4 MB, free: 42.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.3347, allocations: 31.8 kB / 402.5 MB, free: 42.85 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.3348, allocations: 251.4 kB / 402.7 MB, free: 42.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.207e-05/0.3349, allocations: 83.09 kB / 402.8 MB, free: 42.56 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.335, allocations: 82.44 kB / 402.9 MB, free: 42.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3352, allocations: 359.1 kB / 403.2 MB, free: 42.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.3354, allocations: 110.5 kB / 403.3 MB, free: 42.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.3357, allocations: 233.6 kB / 403.6 MB, free: 41.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.3372, allocations: 0.7021 MB / 404.3 MB, free: 41.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3372, allocations: 0 / 404.3 MB, free: 41.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007499/0.3379, allocations: 0.5017 MB / 404.8 MB, free: 41.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.096e-05/0.338, allocations: 42.48 kB / 404.8 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.338, allocations: 2.719 kB / 404.8 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.338, allocations: 5.312 kB / 404.8 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002813/0.3383, allocations: 75.39 kB / 404.9 MB, free: 41.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.3383, allocations: 11.94 kB / 404.9 MB, free: 41.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.3385, allocations: 52.36 kB / 405 MB, free: 41.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.3386, allocations: 13.91 kB / 405 MB, free: 41.05 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.0002655/0.3388, allocations: 250.6 kB / 405.2 MB, free: 40.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.349e-05/0.3389, allocations: 50.28 kB / 405.3 MB, free: 40.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007131/0.3396, allocations: 439.3 kB / 405.7 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3396, allocations: 3.438 kB / 405.7 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3397, allocations: 0 / 405.7 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3397, allocations: 1.031 kB / 405.7 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003773/0.34, allocations: 407.9 kB / 406.1 MB, free: 40.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3401, allocations: 0 / 406.1 MB, free: 40.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/0.3403, allocations: 53.22 kB / 406.2 MB, free: 40.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.3403, allocations: 5.062 kB / 406.2 MB, free: 40.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.5e-05/0.3404, allocations: 13.7 kB / 406.2 MB, free: 40.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3404, allocations: 1.25 kB / 406.2 MB, free: 40.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3404, allocations: 4 kB / 406.2 MB, free: 40.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000978/0.3414, allocations: 0.5856 MB / 406.8 MB, free: 39.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.867e-05/0.3415, allocations: 125.6 kB / 406.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.391e-05/0.3416, allocations: 10.38 kB / 406.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.3417, allocations: 15.36 kB / 406.9 MB, free: 39.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.442e-05/0.3418, allocations: 25.22 kB / 406.9 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.3418, allocations: 7.531 kB / 406.9 MB, free: 39.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003873/0.3422, allocations: 340.9 kB / 407.3 MB, free: 39.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3422, allocations: 1.406 kB / 407.3 MB, free: 39.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004758/0.3427, allocations: 106.5 kB / 407.4 MB, free: 39.49 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.001121/0.3438, allocations: 459.2 kB / 407.8 MB, free: 39.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008459/0.3447, allocations: 418.8 kB / 408.2 MB, free: 39.06 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3447, allocations: 0 / 408.2 MB, free: 39.06 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003053/0.345, allocations: 227.1 kB / 408.5 MB, free: 38.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.3454, allocations: 69.72 kB / 408.5 MB, free: 38.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.3465, allocations: 0.8108 MB / 409.3 MB, free: 38.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.3468, allocations: 0.8496 MB / 410.2 MB, free: 37.13 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.347, allocations: 71.23 kB / 410.3 MB, free: 37.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.245e-05/0.347, allocations: 35.42 kB / 410.3 MB, free: 37.04 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.347, allocations: 0 / 410.3 MB, free: 37.04 MB / 318.1 MB Notification: Performance of Templates: time 0.008442/0.3555, allocations: 4.593 MB / 414.9 MB, free: 32.45 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 cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)