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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001803/0.001804, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07998/0.07998, allocations: 10.65 MB / 23.91 MB, free: 1.375 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.2 MB / 232.1 MB, free: 12.77 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001119, allocations: 98.11 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.113e-05/4.116e-05, allocations: 4 kB / 340.5 MB, free: 3.617 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3293, allocations: 49.98 MB / 390.5 MB, free: 35.75 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1203/0.4498, allocations: 83.62 MB / 474.1 MB, free: 8 kB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.4501, allocations: 84.02 kB / 474.2 MB, free: 15.92 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.05142/0.5016, allocations: 17.63 MB / 491.8 MB, free: 14.23 MB / 378.8 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5016, allocations: 4 kB / 491.8 MB, free: 14.22 MB / 378.8 MB Notification: Performance of Transformations before backend: time 5.78e-05/0.5017, allocations: 24.16 kB / 491.8 MB, free: 14.2 MB / 378.8 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.001887/0.5036, allocations: 1.023 MB / 492.9 MB, free: 13.11 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.5037, allocations: 12.03 kB / 492.9 MB, free: 13.1 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.5038, allocations: 98.8 kB / 493 MB, free: 13 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.5052, allocations: 0.6249 MB / 493.6 MB, free: 12.34 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.338e-05/0.5052, allocations: 33 kB / 493.6 MB, free: 12.3 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.5054, allocations: 59.84 kB / 493.7 MB, free: 12.24 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.5064, allocations: 0.6275 MB / 494.3 MB, free: 11.57 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.5064, allocations: 4 kB / 494.3 MB, free: 11.57 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.672e-05/0.5065, allocations: 16 kB / 494.3 MB, free: 11.55 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.5065, allocations: 16 kB / 494.3 MB, free: 11.54 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007155/0.5072, allocations: 439.7 kB / 494.8 MB, free: 11.11 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003167/0.5104, allocations: 2.204 MB / 497 MB, free: 8.809 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006573/0.5111, allocations: 366.9 kB / 497.3 MB, free: 8.441 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003226/0.5114, allocations: 229.7 kB / 497.6 MB, free: 8.215 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.137e-05/0.5115, allocations: 4 kB / 497.6 MB, free: 8.211 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005477/0.512, allocations: 381.2 kB / 497.9 MB, free: 7.812 MB / 378.8 MB Notification: Performance of pre-optimization done (n=53): time 3.938e-06/0.5121, allocations: 0 / 497.9 MB, free: 7.812 MB / 378.8 MB Notification: Performance of matching and sorting (n=53): time 0.001206/0.5133, allocations: 0.7038 MB / 498.6 MB, free: 7.09 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.5134, allocations: 162.2 kB / 498.8 MB, free: 6.895 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008818/0.5143, allocations: 0.6873 MB / 499.5 MB, free: 6.199 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.5143, allocations: 37.7 kB / 499.5 MB, free: 6.156 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003049/0.5146, allocations: 368.7 kB / 499.9 MB, free: 5.789 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.5148, allocations: 173.6 kB / 0.4883 GB, free: 5.617 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/0.5148, allocations: 12 kB / 0.4883 GB, free: 5.605 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.515, allocations: 337.9 kB / 0.4887 GB, free: 5.27 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.5153, allocations: 213.4 kB / 0.4889 GB, free: 5.059 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005127/0.5159, allocations: 402.5 kB / 0.4892 GB, free: 4.594 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004785/0.5163, allocations: 318.7 kB / 0.4896 GB, free: 4.273 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.5164, allocations: 0 / 0.4896 GB, free: 4.273 MB / 378.8 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001371/0.5177, allocations: 0.8919 MB / 0.4904 GB, free: 3.359 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.956e-05/0.5178, allocations: 71.39 kB / 0.4905 GB, free: 3.277 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.5179, allocations: 4 kB / 0.4905 GB, free: 3.273 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/0.5179, allocations: 8 kB / 0.4905 GB, free: 3.266 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007373/0.5186, allocations: 171.8 kB / 0.4907 GB, free: 3.098 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-05/0.5187, allocations: 11.94 kB / 0.4907 GB, free: 3.086 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003815/0.519, allocations: 91.31 kB / 0.4908 GB, free: 2.996 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.555e-05/0.5191, allocations: 28 kB / 0.4908 GB, free: 2.969 MB / 378.8 MB Warning: Assuming fixed start value for the following 9 variables: processBump.w:VARIABLE(protected = true ) "proper part of the output" type: Real processBump.U[2]:VARIABLE(protected = true ) type: Real [2] processBump.Y[3]:VARIABLE(protected = true ) type: Real [3] process.Y[3]:VARIABLE(protected = true ) type: Real [3] process.U[2]:VARIABLE(protected = true ) type: Real [2] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(protected = true ) type: Real [2] processTrack.w:VARIABLE(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 () * 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.0003171/0.5195, allocations: 236.8 kB / 0.491 GB, free: 2.719 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.5196, allocations: 83.06 kB / 0.4911 GB, free: 2.637 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/0.5212, allocations: 0.8148 MB / 0.4919 GB, free: 1.801 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.5212, allocations: 11.92 kB / 0.4919 GB, free: 1.789 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.5212, allocations: 0 / 0.4919 GB, free: 1.789 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.5212, allocations: 8 kB / 0.4919 GB, free: 1.781 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007786/0.522, allocations: 0.638 MB / 0.4925 GB, free: 1.094 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.522, allocations: 0 / 0.4925 GB, free: 1.094 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/0.5228, allocations: 135.9 kB / 0.4927 GB, free: 0.9609 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.5228, allocations: 0 / 0.4927 GB, free: 0.9609 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.737e-05/0.5228, allocations: 23.98 kB / 0.4927 GB, free: 0.9375 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.5229, allocations: 4 kB / 0.4927 GB, free: 0.9336 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5229, allocations: 0 / 0.4927 GB, free: 0.9336 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2905/0.8133, allocations: 1.133 MB / 0.4938 GB, free: 99.1 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.8138, allocations: 167.6 kB / 0.494 GB, free: 99.01 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.814, allocations: 21.47 kB / 0.494 GB, free: 99.01 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003486/0.8143, allocations: 30.25 kB / 0.494 GB, free: 99.01 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.8145, allocations: 38.62 kB / 0.494 GB, free: 99.01 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-05/0.8146, allocations: 28.73 kB / 0.4941 GB, free: 99.01 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0008301/0.8154, allocations: 0.5208 MB / 0.4946 GB, free: 98.91 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8154, allocations: 2.406 kB / 0.4946 GB, free: 98.91 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0009041/0.8163, allocations: 202.7 kB / 0.4948 GB, free: 98.91 MB / 378.8 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,TSsignalBump.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEvent,TSsignalBump.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 43 * 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.00114/0.8175, allocations: 479.8 kB / 0.4952 GB, free: 98.74 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.8191, allocations: 0.724 MB / 0.4959 GB, free: 98.61 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.8191, allocations: 4.625 kB / 0.4959 GB, free: 98.61 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0006127/0.8197, allocations: 431.6 kB / 0.4964 GB, free: 98.48 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006261/0.8204, allocations: 115.9 kB / 0.4965 GB, free: 98.48 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.8222, allocations: 1.168 MB / 0.4976 GB, free: 98.13 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006108/0.8229, allocations: 1.001 MB / 0.4986 GB, free: 97.43 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0004157/0.8233, allocations: 132.9 kB / 0.4987 GB, free: 97.43 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.8234, allocations: 57.23 kB / 0.4988 GB, free: 97.42 MB / 378.8 MB Notification: Performance of SimCode: time 1.192e-06/0.8234, allocations: 0 / 0.4988 GB, free: 97.42 MB / 378.8 MB Notification: Performance of Templates: time 0.01338/0.8368, allocations: 7.553 MB / 0.5061 GB, free: 96.92 MB / 378.8 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)