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.0008746/0.0008747, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.0009691/0.0009693, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.4 MB / 222.1 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05357/0.05357, allocations: 10.74 MB / 281.1 MB, free: 10.45 MB / 238.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.0004711/0.0004713, allocations: 16.22 kB / 341.6 MB, free: 23.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07995/0.08044, allocations: 50.01 MB / 391.6 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_tracking): time 0.00302/0.0835, allocations: 2.397 MB / 394 MB, free: 3.402 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002867/0.0864, allocations: 1.751 MB / 395.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000404/0.08684, allocations: 19.75 kB / 395.8 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009057/0.08776, allocations: 323 kB / 396.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006339/0.08841, allocations: 263.3 kB / 396.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.08987, allocations: 0.5301 MB / 396.9 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.09093, allocations: 0.5697 MB / 397.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.09121, allocations: 111.2 kB / 397.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005915/0.0918, allocations: 322.7 kB / 397.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005463/0.09236, allocations: 342.6 kB / 398.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001191/0.09249, allocations: 23.98 kB / 398.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004238/0.09292, allocations: 183.7 kB / 398.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.09317, allocations: 191.4 kB / 398.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.09337, allocations: 141.2 kB / 398.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008103/0.09419, allocations: 0.6005 MB / 399.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.0942, allocations: 0 / 399.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09421, allocations: 0 / 399.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.529e-05/0.09425, allocations: 0 / 399.3 MB, free: 14.04 MB / 302.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.00203/0.09629, allocations: 1.103 MB / 400.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.09633, allocations: 16.02 kB / 400.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.0965, allocations: 90.88 kB / 400.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008641/0.09737, allocations: 0.5508 MB / 401.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.175e-05/0.09743, allocations: 48.92 kB / 401.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.824e-05/0.09752, allocations: 48 kB / 401.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008762/0.09841, allocations: 0.6015 MB / 401.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.09844, allocations: 4 kB / 401.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.573e-05/0.0985, allocations: 19.95 kB / 401.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.09852, allocations: 15.94 kB / 401.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007131/0.09924, allocations: 435.7 kB / 402.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.1021, allocations: 2.145 MB / 404.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006946/0.1028, allocations: 362.8 kB / 404.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.805e-05/0.1028, allocations: 8 kB / 404.7 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005016/0.1033, allocations: 361.2 kB / 405.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 2.304e-06/0.1034, allocations: 4 kB / 405.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.001433/0.1048, allocations: 1.025 MB / 406.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.616e-05/0.1049, allocations: 170.2 kB / 406.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008185/0.1057, allocations: 0.7661 MB / 407.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.855e-05/0.1058, allocations: 33.7 kB / 407.1 MB, free: 5.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/0.1061, allocations: 373 kB / 407.5 MB, free: 5.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.1062, allocations: 173.6 kB / 407.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.461e-05/0.1062, allocations: 11.94 kB / 407.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1063, allocations: 338 kB / 408 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/0.1067, allocations: 205.5 kB / 408.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/0.1072, allocations: 393.1 kB / 408.6 MB, free: 4.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004725/0.1077, allocations: 321.5 kB / 408.9 MB, free: 4.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.1077, allocations: 0 / 408.9 MB, free: 4.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001315/0.109, allocations: 0.864 MB / 409.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.866e-05/0.1091, allocations: 78.5 kB / 409.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1091, allocations: 4 kB / 409.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.1091, allocations: 8.594 kB / 409.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006808/0.1098, allocations: 175.8 kB / 410 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.1098, allocations: 8 kB / 410 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003366/0.1102, allocations: 83.25 kB / 410.1 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.587e-05/0.1102, allocations: 28 kB / 410.1 MB, free: 2.734 MB / 302.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] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition4,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.TSsignalBump.combiTimeTable.nextTimeEvent,$whenCondition1,$whenCondition2,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,R_Bump.ts,TrackRefBump.a,TrackRefBump.b,TrackRefBump.last,$PRE.TrackRefBump.nextEvent,TrackRefBump.nextEvent,TrackRefBump.nextEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,$PRE.TSsignalBump.combiTimeTable.nextTimeEventScaled,TSsignalBump.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004317/0.1107, allocations: 362.9 kB / 410.5 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-05/0.1108, allocations: 79.06 kB / 410.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.112, allocations: 0.783 MB / 411.3 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.112, allocations: 7.938 kB / 411.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.112, allocations: 4 kB / 411.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.112, allocations: 3.984 kB / 411.3 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006247/0.1126, allocations: 0.6107 MB / 411.9 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1127, allocations: 0 / 411.9 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007166/0.1134, allocations: 127.9 kB / 412.1 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.1134, allocations: 11.92 kB / 412.1 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.605e-05/0.1135, allocations: 19.98 kB / 412.1 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1135, allocations: 11.94 kB / 412.1 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1135, allocations: 0 / 412.1 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.115, allocations: 1.072 MB / 413.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001583/0.1152, allocations: 163.9 kB / 413.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.606e-05/0.1153, allocations: 24 kB / 413.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.1155, allocations: 27.97 kB / 413.4 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.255e-05/0.1156, allocations: 40.38 kB / 413.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.062e-05/0.1157, allocations: 20 kB / 413.5 MB, free: 15.24 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005699/0.1163, allocations: 0.5263 MB / 414 MB, free: 14.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.043e-06/0.1163, allocations: 4.109 kB / 414 MB, free: 14.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005608/0.1169, allocations: 179.7 kB / 414.2 MB, free: 14.54 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.FBout,R_track.FBout,process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],processTrack.w,R_Bump.FBout,processBump.Y[3],processBump.U[2],processBump.w) * Number of discrete variables: 20 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled,R_Bump.ts,TrackRefBump.a,TrackRefBump.b,TrackRefBump.last,TrackRefBump.nextEvent,TrackRefBump.nextEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,TSsignalBump.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 16 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TrackRefBump.nextEvent,TrackRefBump.last,TrackRefBump.nextEventScaled,TrackRefBump.b,TrackRefBump.a,$whenCondition2,TSsignal.combiTimeTable.nextTimeEventScaled,TSsignalBump.combiTimeTable.nextTimeEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001106/0.118, allocations: 499 kB / 414.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.1191, allocations: 0.7481 MB / 415.4 MB, free: 13.37 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.1191, allocations: 4 kB / 415.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004856/0.1196, allocations: 437.3 kB / 415.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.1202, allocations: 119.5 kB / 415.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.1221, allocations: 1.616 MB / 417.6 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.1226, allocations: 0.9963 MB / 418.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003445/0.1229, allocations: 133.1 kB / 418.7 MB, free: 10 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.1231, allocations: 59.36 kB / 418.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1231, allocations: 0 / 418.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of Templates: time 0.01303/0.1361, allocations: 7.344 MB / 426.1 MB, free: 2.594 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: