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.001174/0.001174, allocations: 113 kB / 16.42 MB, free: 6.457 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.00127/0.001271, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.337/1.337, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05923/0.05923, allocations: 10.75 MB / 281.3 MB, free: 1.285 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.001455/0.001455, allocations: 69.12 kB / 391.5 MB, free: 46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06757/0.06904, allocations: 49.02 MB / 440.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.00298/0.07206, allocations: 2.355 MB / 442.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.07378, allocations: 1.318 MB / 444.2 MB, free: 132 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.07397, allocations: 11.88 kB / 444.2 MB, free: 120 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00069/0.07469, allocations: 214.8 kB / 444.4 MB, free: 15.91 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.0003646/0.07507, allocations: 167.2 kB / 444.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008057/0.07589, allocations: 342.2 kB / 444.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005469/0.07645, allocations: 0.55 MB / 445.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.07664, allocations: 85 kB / 445.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.0769, allocations: 211.2 kB / 445.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002653/0.07717, allocations: 215 kB / 446 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.07724, allocations: 28 kB / 446 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002527/0.0775, allocations: 151.8 kB / 446.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.07766, allocations: 131.6 kB / 446.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.07784, allocations: 190.8 kB / 446.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005467/0.07839, allocations: 0.4983 MB / 447 MB, free: 13.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.07841, allocations: 0 / 447 MB, free: 13.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.07842, allocations: 3.938 kB / 447 MB, free: 13.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.07843, allocations: 0 / 447 MB, free: 13.36 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00124/0.07968, allocations: 0.8454 MB / 447.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.07973, allocations: 11.89 kB / 447.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.07984, allocations: 56.28 kB / 447.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006027/0.08044, allocations: 430.3 kB / 448.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.08048, allocations: 20.94 kB / 448.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.176e-05/0.08055, allocations: 36.12 kB / 448.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000616/0.08117, allocations: 375.7 kB / 448.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.0812, allocations: 7.938 kB / 448.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.08124, allocations: 15.98 kB / 448.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.08126, allocations: 8 kB / 448.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004678/0.08173, allocations: 254 kB / 449 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.08363, allocations: 1.375 MB / 450.4 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005196/0.08416, allocations: 208.9 kB / 450.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.08438, allocations: 124.8 kB / 450.7 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.08443, allocations: 7.984 kB / 450.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003561/0.08479, allocations: 225.4 kB / 450.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.174e-06/0.08481, allocations: 0 / 450.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008828/0.08569, allocations: 477.2 kB / 451.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.781e-05/0.08577, allocations: 110.8 kB / 451.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005227/0.0863, allocations: 0.4899 MB / 452 MB, free: 8.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.08634, allocations: 29.7 kB / 452 MB, free: 8.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.08652, allocations: 244.2 kB / 452.3 MB, free: 7.766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.815e-05/0.08661, allocations: 90.73 kB / 452.4 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.08673, allocations: 77.69 kB / 452.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.08687, allocations: 366.7 kB / 452.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/0.0871, allocations: 108.4 kB / 452.9 MB, free: 7.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.08739, allocations: 224.3 kB / 453.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001502/0.0889, allocations: 0.7095 MB / 453.8 MB, free: 6.074 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.08892, allocations: 0 / 453.8 MB, free: 6.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007792/0.08971, allocations: 0.498 MB / 454.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.08975, allocations: 41.64 kB / 454.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.08977, allocations: 4 kB / 454.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.08979, allocations: 4 kB / 454.4 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.0901, allocations: 75.89 kB / 454.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.09012, allocations: 12.34 kB / 454.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.09034, allocations: 51.58 kB / 454.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.09037, allocations: 12 kB / 454.5 MB, free: 5.359 MB / 334.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.0002781/0.09066, allocations: 252.2 kB / 454.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.324e-05/0.09073, allocations: 47.38 kB / 454.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007366/0.09147, allocations: 436.3 kB / 455.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.09149, allocations: 0 / 455.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.0915, allocations: 3.984 kB / 455.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.29e-05/0.0916, allocations: 124.5 kB / 455.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.254e-05/0.09167, allocations: 8 kB / 455.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.09184, allocations: 19.98 kB / 455.4 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.737e-05/0.09191, allocations: 19.97 kB / 455.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009914/0.09291, allocations: 0.5569 MB / 456 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001025/0.09395, allocations: 0.7728 MB / 456.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002484/0.09421, allocations: 160 kB / 456.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003554/0.09457, allocations: 351.1 kB / 457.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of Backend: time 4.41e-07/0.09458, allocations: 0 / 457.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.09627, allocations: 0.7092 MB / 457.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of SimCode: time 0.001452/0.09773, allocations: 1.302 MB / 459.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of Templates: time 0.01011/0.1079, allocations: 5.127 MB / 464.4 MB, free: 11.46 MB / 350.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)