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.001096/0.001096, allocations: 112.1 kB / 16.42 MB, free: 6.477 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.001037/0.001037, allocations: 187.9 kB / 17.35 MB, free: 5.711 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.254/1.254, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05978/0.05978, allocations: 10.74 MB / 281.3 MB, free: 1.281 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.001494/0.001494, allocations: 68.66 kB / 391.5 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06376/0.06526, allocations: 49.02 MB / 440.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.002927/0.06822, allocations: 2.356 MB / 442.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.07015, allocations: 1.435 MB / 444.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002368/0.0704, allocations: 15.88 kB / 444.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006811/0.07111, allocations: 207 kB / 444.5 MB, free: 15.78 MB / 334.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.0004244/0.07155, allocations: 179.1 kB / 444.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009617/0.07252, allocations: 390.8 kB / 445.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007136/0.07324, allocations: 0.5938 MB / 445.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.07346, allocations: 88.97 kB / 445.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003344/0.0738, allocations: 227.2 kB / 446 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003619/0.07417, allocations: 243 kB / 446.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.617e-05/0.07426, allocations: 32 kB / 446.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.07455, allocations: 155.9 kB / 446.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.07473, allocations: 139.5 kB / 446.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.07494, allocations: 214.6 kB / 446.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000651/0.0756, allocations: 0.5523 MB / 447.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.07562, allocations: 3.984 kB / 447.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.07563, allocations: 0 / 447.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.07564, allocations: 0 / 447.3 MB, free: 12.99 MB / 334.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.001413/0.07706, allocations: 0.8994 MB / 448.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.07711, allocations: 11.89 kB / 448.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.07723, allocations: 64.52 kB / 448.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000624/0.07787, allocations: 458.8 kB / 448.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.07791, allocations: 25.03 kB / 448.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.697e-05/0.07798, allocations: 44.02 kB / 448.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006779/0.07867, allocations: 436.4 kB / 449.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.0787, allocations: 4 kB / 449.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.07875, allocations: 11.94 kB / 449.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.07876, allocations: 8 kB / 449.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005695/0.07934, allocations: 318.3 kB / 449.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.08155, allocations: 1.548 MB / 451.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00044/0.08201, allocations: 235 kB / 451.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/0.08227, allocations: 149 kB / 451.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.558e-05/0.08231, allocations: 4.234 kB / 451.5 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003925/0.08271, allocations: 255.2 kB / 451.8 MB, free: 8.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 2.164e-06/0.08272, allocations: 4 kB / 451.8 MB, free: 8.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009835/0.08371, allocations: 0.5484 MB / 452.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.08378, allocations: 106.8 kB / 452.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005568/0.08434, allocations: 0.5214 MB / 452.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.08439, allocations: 33.7 kB / 453 MB, free: 7.055 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.08457, allocations: 268.4 kB / 453.2 MB, free: 6.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.112e-05/0.08467, allocations: 119 kB / 453.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.08481, allocations: 98.08 kB / 453.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.08496, allocations: 366.8 kB / 453.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/0.08523, allocations: 144.8 kB / 453.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.08559, allocations: 297.4 kB / 454.2 MB, free: 5.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001814/0.08741, allocations: 0.9023 MB / 455.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.08743, allocations: 4 kB / 455.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009445/0.08838, allocations: 0.6169 MB / 455.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.805e-05/0.08843, allocations: 40.03 kB / 455.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.08845, allocations: 7.984 kB / 455.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.08847, allocations: 11.94 kB / 455.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004483/0.08893, allocations: 107.8 kB / 455.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.08895, allocations: 8.5 kB / 455.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.0892, allocations: 63.61 kB / 456 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.08925, allocations: 23.98 kB / 456 MB, free: 3.832 MB / 334.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.0002902/0.08955, allocations: 261.2 kB / 456.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.614e-05/0.08963, allocations: 51.67 kB / 456.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008801/0.09052, allocations: 491.9 kB / 456.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.09054, allocations: 7.922 kB / 456.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.09055, allocations: 4 kB / 456.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.307e-05/0.09065, allocations: 124.7 kB / 456.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.322e-05/0.09074, allocations: 19.98 kB / 457 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.09091, allocations: 15.98 kB / 457 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.839e-05/0.091, allocations: 23.97 kB / 457 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001268/0.09228, allocations: 0.6576 MB / 457.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001177/0.09347, allocations: 0.8645 MB / 458.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003095/0.09379, allocations: 199.9 kB / 458.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000375/0.09417, allocations: 370.8 kB / 459.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of Backend: time 4.31e-07/0.09418, allocations: 0 / 459.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00178/0.09597, allocations: 0.7829 MB / 459.9 MB, free: 12 kB / 334.1 MB Notification: Performance of SimCode: time 0.001528/0.09751, allocations: 1.485 MB / 461.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of Templates: time 0.01117/0.1087, allocations: 5.865 MB / 467.2 MB, free: 8.598 MB / 350.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)