Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_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.TestPI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 110.7 kB / 16.42 MB, free: 6.516 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.001776/0.001776, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.319/1.319, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05882/0.05882, allocations: 10.74 MB / 281.3 MB, free: 1.293 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.001386/0.001386, allocations: 69.95 kB / 391.5 MB, free: 46.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07943/0.08083, allocations: 49.02 MB / 440.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_tracking): time 0.003351/0.08422, allocations: 2.885 MB / 443.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.08682, allocations: 1.875 MB / 445.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002219/0.08706, allocations: 27.75 kB / 445.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008825/0.08796, allocations: 378.5 kB / 445.7 MB, free: 14.64 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.0005669/0.08854, allocations: 294.3 kB / 446 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.08988, allocations: 0.6926 MB / 446.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009009/0.09079, allocations: 0.9866 MB / 447.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.09103, allocations: 144.6 kB / 447.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004178/0.09146, allocations: 382.6 kB / 448.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004805/0.09195, allocations: 410.3 kB / 448.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.074e-05/0.09205, allocations: 48 kB / 448.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.09252, allocations: 259.7 kB / 448.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.09274, allocations: 219.3 kB / 449.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003018/0.09305, allocations: 345.8 kB / 449.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008109/0.09387, allocations: 0.8681 MB / 450.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.09389, allocations: 4 kB / 450.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09389, allocations: 4 kB / 450.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.09391, allocations: 0 / 450.3 MB, free: 10.01 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001989/0.09591, allocations: 1.227 MB / 451.5 MB, free: 8.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001094/0.09602, allocations: 15.89 kB / 451.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001819/0.09621, allocations: 91.81 kB / 451.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.09727, allocations: 0.6139 MB / 452.2 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.144e-05/0.09733, allocations: 37.38 kB / 452.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.09744, allocations: 56.03 kB / 452.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.09853, allocations: 0.6054 MB / 452.9 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.09857, allocations: 4 kB / 453 MB, free: 7.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.332e-05/0.09863, allocations: 20 kB / 453 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.09865, allocations: 12 kB / 453 MB, free: 7.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008255/0.09948, allocations: 447.6 kB / 453.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002971/0.1025, allocations: 2.118 MB / 455.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007332/0.1032, allocations: 354.1 kB / 455.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.1036, allocations: 229.6 kB / 456.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1036, allocations: 12.2 kB / 456.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005833/0.1042, allocations: 369.1 kB / 456.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=53): time 2.114e-06/0.1042, allocations: 0 / 456.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.001497/0.1057, allocations: 0.8653 MB / 457.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.919e-05/0.1058, allocations: 166.2 kB / 457.5 MB, free: 2.473 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008665/0.1067, allocations: 0.7739 MB / 458.3 MB, free: 1.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.1068, allocations: 33.7 kB / 458.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.1071, allocations: 364.7 kB / 458.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.1072, allocations: 173.6 kB / 458.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.1074, allocations: 126.1 kB / 459 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1075, allocations: 334 kB / 459.3 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.1079, allocations: 213.4 kB / 459.5 MB, free: 464 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.1084, allocations: 397.1 kB / 459.9 MB, free: 16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00268/0.1111, allocations: 1.302 MB / 461.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1111, allocations: 0 / 461.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00138/0.1125, allocations: 0.8645 MB / 462.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.514e-05/0.1126, allocations: 79.27 kB / 462.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1126, allocations: 4 kB / 462.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.1127, allocations: 8 kB / 462.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007035/0.1134, allocations: 179.7 kB / 462.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.1134, allocations: 4 kB / 462.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.1137, allocations: 87.38 kB / 462.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.59e-05/0.1138, allocations: 28 kB / 462.4 MB, free: 13.29 MB / 350.1 MB Warning: Assuming fixed start value for the following 9 variables: processBump.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processBump.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processBump.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] 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: 20 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.TSsignalBump.combiTimeTable.nextTimeEvent,$whenCondition3,TSsignalBump.combiTimeTable.nextTimeEventScaled,$PRE.TSsignalBump.combiTimeTable.nextTimeEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,TrackRefBump.nextEventScaled,TrackRefBump.nextEvent,$PRE.TrackRefBump.nextEvent,TrackRefBump.last,TrackRefBump.b,TrackRefBump.a,R_Bump.ts,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,$whenCondition2,$whenCondition1,R.TS_in,R_Bump.ATreq_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 (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 2 * 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.0004088/0.1142, allocations: 354.9 kB / 462.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1143, allocations: 82.97 kB / 462.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001339/0.1156, allocations: 0.7713 MB / 463.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.1157, allocations: 11.92 kB / 463.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.1157, allocations: 0 / 463.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.1158, allocations: 159.9 kB / 463.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.116, allocations: 20 kB / 463.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.1162, allocations: 27.97 kB / 463.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.1163, allocations: 40.38 kB / 463.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001891/0.1182, allocations: 0.9842 MB / 464.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001861/0.1201, allocations: 1.261 MB / 466.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005102/0.1206, allocations: 323.5 kB / 466.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006583/0.1213, allocations: 0.5263 MB / 467 MB, free: 8.621 MB / 350.1 MB Notification: Performance of Backend: time 6.31e-07/0.1213, allocations: 0 / 467 MB, free: 8.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.1236, allocations: 1.014 MB / 468 MB, free: 7.691 MB / 350.1 MB Notification: Performance of SimCode: time 0.002314/0.1259, allocations: 1.938 MB / 469.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of Templates: time 0.01666/0.1426, allocations: 9.051 MB / 479 MB, free: 12.64 MB / 366.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe 2>&1)