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.001224/0.001224, allocations: 103.3 kB / 16.27 MB, free: 5.906 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.001008/0.001009, allocations: 189.3 kB / 17.19 MB, free: 5.551 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.285/1.285, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05696/0.05696, allocations: 10.74 MB / 281.2 MB, free: 1.375 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.001521/0.001521, allocations: 72.31 kB / 341.2 MB, free: 5.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2122, allocations: 49.01 MB / 390.2 MB, free: 49.62 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003978/0.2162, allocations: 2.374 MB / 392.6 MB, free: 47.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.2184, allocations: 1.435 MB / 394 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003211/0.2188, allocations: 21.91 kB / 394 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007324/0.2196, allocations: 213.3 kB / 394.3 MB, free: 46.89 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.0004683/0.2201, allocations: 158.7 kB / 394.4 MB, free: 46.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.2211, allocations: 405.6 kB / 394.8 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000747/0.2219, allocations: 0.6013 MB / 395.4 MB, free: 46.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.2221, allocations: 79.61 kB / 395.5 MB, free: 46.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003947/0.2225, allocations: 228.3 kB / 395.7 MB, free: 46.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004281/0.2229, allocations: 237.8 kB / 395.9 MB, free: 46.13 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.2231, allocations: 31.84 kB / 396 MB, free: 46.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000348/0.2234, allocations: 148.2 kB / 396.1 MB, free: 46.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.2236, allocations: 148.8 kB / 396.3 MB, free: 46.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002486/0.2239, allocations: 215.9 kB / 396.5 MB, free: 45.87 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007864/0.2247, allocations: 0.54 MB / 397 MB, free: 45.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2247, allocations: 1.438 kB / 397 MB, free: 45.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2247, allocations: 0 / 397 MB, free: 45.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.665e-05/0.2247, allocations: 0 / 397 MB, free: 45.64 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.001722/0.2265, allocations: 0.8863 MB / 397.9 MB, free: 44.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2265, allocations: 13.2 kB / 397.9 MB, free: 44.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.2267, allocations: 57.73 kB / 398 MB, free: 44.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.2273, allocations: 440 kB / 398.4 MB, free: 44.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.2274, allocations: 24.36 kB / 398.4 MB, free: 44.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.647e-05/0.2274, allocations: 43.78 kB / 398.5 MB, free: 44.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000743/0.2282, allocations: 434.9 kB / 398.9 MB, free: 44.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.2282, allocations: 2.219 kB / 398.9 MB, free: 44.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/0.2283, allocations: 14.23 kB / 398.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.2283, allocations: 10.84 kB / 398.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005943/0.2289, allocations: 313.2 kB / 399.2 MB, free: 44.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.2311, allocations: 1.572 MB / 400.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004293/0.2315, allocations: 242.9 kB / 401 MB, free: 42.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.2318, allocations: 147.8 kB / 401.2 MB, free: 42.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.2318, allocations: 3.297 kB / 401.2 MB, free: 42.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003692/0.2322, allocations: 241.6 kB / 401.4 MB, free: 42.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.625e-06/0.2322, allocations: 0.9375 kB / 401.4 MB, free: 42.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009884/0.2332, allocations: 0.5493 MB / 402 MB, free: 42.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.2332, allocations: 112.5 kB / 402.1 MB, free: 42.26 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005197/0.2338, allocations: 0.5148 MB / 402.6 MB, free: 41.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.2338, allocations: 36.31 kB / 402.6 MB, free: 41.92 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.2339, allocations: 266.2 kB / 402.9 MB, free: 41.69 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.867e-05/0.234, allocations: 117.8 kB / 403 MB, free: 41.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.2341, allocations: 98.8 kB / 403.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.182e-05/0.2342, allocations: 365.5 kB / 403.5 MB, free: 41.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.2345, allocations: 142.5 kB / 403.6 MB, free: 41.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002851/0.2348, allocations: 286.7 kB / 403.9 MB, free: 40.86 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.2365, allocations: 0.9073 MB / 404.8 MB, free: 40.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.2365, allocations: 5.094 kB / 404.8 MB, free: 40.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009151/0.2374, allocations: 0.6067 MB / 405.4 MB, free: 39.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/0.2375, allocations: 46.62 kB / 405.4 MB, free: 39.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.2375, allocations: 4.031 kB / 405.4 MB, free: 39.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.2375, allocations: 10.16 kB / 405.5 MB, free: 39.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.238, allocations: 114.8 kB / 405.6 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.238, allocations: 6.531 kB / 405.6 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.2382, allocations: 51.11 kB / 405.6 MB, free: 39.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.2383, allocations: 20.59 kB / 405.6 MB, free: 39.8 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.0002957/0.2386, allocations: 271.5 kB / 405.9 MB, free: 39.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.88e-05/0.2387, allocations: 47.66 kB / 406 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007985/0.2395, allocations: 0.4947 MB / 406.4 MB, free: 39.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.2395, allocations: 7.781 kB / 406.5 MB, free: 39.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2395, allocations: 0 / 406.5 MB, free: 39.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2395, allocations: 3.984 kB / 406.5 MB, free: 39.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004055/0.2399, allocations: 447.5 kB / 406.9 MB, free: 38.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2399, allocations: 1.188 kB / 406.9 MB, free: 38.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.2403, allocations: 65.3 kB / 407 MB, free: 38.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.2403, allocations: 6.312 kB / 407 MB, free: 38.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.999e-05/0.2404, allocations: 18.52 kB / 407 MB, free: 38.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2404, allocations: 5.219 kB / 407 MB, free: 38.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2404, allocations: 1.062 kB / 407 MB, free: 38.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009781/0.2414, allocations: 0.6533 MB / 407.6 MB, free: 38.51 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.012e-05/0.2415, allocations: 131.8 kB / 407.8 MB, free: 38.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.172e-05/0.2416, allocations: 18.5 kB / 407.8 MB, free: 38.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.2418, allocations: 20.14 kB / 407.8 MB, free: 38.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.439e-05/0.2418, allocations: 31.06 kB / 407.8 MB, free: 38.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.25e-05/0.2419, allocations: 13.06 kB / 407.9 MB, free: 38.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000377/0.2423, allocations: 365.8 kB / 408.2 MB, free: 38.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2423, allocations: 0 / 408.2 MB, free: 38.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000507/0.2428, allocations: 117.2 kB / 408.3 MB, free: 38.06 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.0009885/0.2438, allocations: 457.1 kB / 408.8 MB, free: 37.78 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007096/0.2445, allocations: 0.5144 MB / 409.3 MB, free: 37.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2445, allocations: 1.062 kB / 409.3 MB, free: 37.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002602/0.2448, allocations: 259.2 kB / 409.5 MB, free: 36.99 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.2452, allocations: 89.39 kB / 409.6 MB, free: 36.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.2465, allocations: 1.049 MB / 410.7 MB, free: 35.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.2467, allocations: 0.8742 MB / 411.6 MB, free: 34.92 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.914e-05/0.2468, allocations: 35.44 kB / 411.6 MB, free: 34.89 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2468, allocations: 4 kB / 411.6 MB, free: 34.88 MB / 318.1 MB Notification: Performance of Templates: time 0.008458/0.2553, allocations: 6.639 MB / 418.2 MB, free: 28.24 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)