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.002068/0.002068, allocations: 176.8 kB / 16.12 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08674/0.08674, allocations: 10.76 MB / 27.63 MB, free: 1.84 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.885/1.885, allocations: 205.4 MB / 236.2 MB, free: 12.24 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.000855/0.000855, allocations: 85.36 kB / 287 MB, free: 12.67 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0006231/0.0006232, allocations: 12 kB / 347.6 MB, free: 15.91 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2683, allocations: 50 MB / 397.6 MB, free: 34.65 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1028/0.3712, allocations: 83.77 MB / 481.4 MB, free: 14.76 MB / 362.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.3715, allocations: 87.94 kB / 481.5 MB, free: 14.68 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.05082/0.4223, allocations: 17.77 MB / 499.3 MB, free: 12.84 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4224, allocations: 0 / 499.3 MB, free: 12.84 MB / 378.8 MB Notification: Performance of Transformations before backend: time 8.859e-05/0.4225, allocations: 20 kB / 499.3 MB, free: 12.82 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.002568/0.4251, allocations: 1.147 MB / 0.4887 GB, free: 11.59 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.4251, allocations: 8.031 kB / 0.4887 GB, free: 11.59 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003366/0.4255, allocations: 95.81 kB / 0.4888 GB, free: 11.49 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.427, allocations: 0.6492 MB / 0.4894 GB, free: 10.8 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.634e-05/0.4271, allocations: 33.38 kB / 0.4895 GB, free: 10.77 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.4272, allocations: 52.38 kB / 0.4895 GB, free: 10.72 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.4284, allocations: 0.659 MB / 0.4901 GB, free: 10.01 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.872e-05/0.4285, allocations: 15.83 kB / 0.4902 GB, free: 9.996 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.4285, allocations: 20 kB / 0.4902 GB, free: 9.977 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.4286, allocations: 12 kB / 0.4902 GB, free: 9.965 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008643/0.4294, allocations: 459.6 kB / 0.4906 GB, free: 9.52 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003607/0.433, allocations: 2.2 MB / 0.4928 GB, free: 7.223 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007973/0.4339, allocations: 382.8 kB / 0.4931 GB, free: 6.84 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003955/0.4343, allocations: 241.6 kB / 0.4934 GB, free: 6.602 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.4343, allocations: 12.2 kB / 0.4934 GB, free: 6.59 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006265/0.435, allocations: 401 kB / 0.4938 GB, free: 6.172 MB / 378.8 MB Notification: Performance of pre-optimization done (n=53): time 3.457e-06/0.435, allocations: 0 / 0.4938 GB, free: 6.172 MB / 378.8 MB Notification: Performance of matching and sorting (n=53): time 0.0018/0.4368, allocations: 0.9325 MB / 0.4947 GB, free: 5.219 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.4369, allocations: 162.2 kB / 0.4948 GB, free: 5.023 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/0.4384, allocations: 0.77 MB / 0.4956 GB, free: 4.246 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 8.789e-05/0.4385, allocations: 41.69 kB / 0.4956 GB, free: 4.199 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004355/0.4389, allocations: 372.7 kB / 0.496 GB, free: 3.832 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.4392, allocations: 173.6 kB / 0.4961 GB, free: 3.66 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.689e-05/0.4392, allocations: 12 kB / 0.4962 GB, free: 3.648 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.4394, allocations: 330 kB / 0.4965 GB, free: 3.32 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005586/0.44, allocations: 225.4 kB / 0.4967 GB, free: 3.102 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000715/0.4407, allocations: 415.5 kB / 0.4971 GB, free: 2.629 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003082/0.4438, allocations: 1.394 MB / 0.4984 GB, free: 1.125 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/0.4439, allocations: 8 kB / 0.4985 GB, free: 1.117 MB / 378.8 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002132/0.446, allocations: 0.9191 MB / 0.4994 GB, free: 184 kB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.4461, allocations: 71.39 kB / 0.4994 GB, free: 100 kB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.4462, allocations: 4 kB / 0.4994 GB, free: 96 kB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.714e-05/0.4462, allocations: 8 kB / 0.4994 GB, free: 88 kB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2113/0.6576, allocations: 168.2 kB / 0.4996 GB, free: 97.93 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.011e-05/0.6576, allocations: 13.77 kB / 0.4996 GB, free: 97.93 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005847/0.6582, allocations: 84.41 kB / 0.4997 GB, free: 97.93 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.4e-05/0.6583, allocations: 34.25 kB / 0.4997 GB, free: 97.93 MB / 378.8 MB Warning: Assuming fixed start value for the following 9 variables: 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 processBump.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processBump.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processBump.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.0006708/0.659, allocations: 341.4 kB / 0.5 GB, free: 97.74 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.6591, allocations: 84.53 kB / 0.5001 GB, free: 97.74 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.6607, allocations: 0.8541 MB / 0.501 GB, free: 97.64 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.6608, allocations: 8.562 kB / 0.501 GB, free: 97.64 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.6608, allocations: 6.703 kB / 0.501 GB, free: 97.64 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.6608, allocations: 2.156 kB / 0.501 GB, free: 97.64 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007305/0.6615, allocations: 0.6336 MB / 0.5016 GB, free: 97.45 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.6615, allocations: 0.6094 kB / 0.5016 GB, free: 97.45 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007245/0.6623, allocations: 133.5 kB / 0.5017 GB, free: 97.45 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/0.6623, allocations: 6.234 kB / 0.5017 GB, free: 97.45 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.245e-05/0.6624, allocations: 25.44 kB / 0.5018 GB, free: 97.45 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.6624, allocations: 2.156 kB / 0.5018 GB, free: 97.45 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6624, allocations: 1.453 kB / 0.5018 GB, free: 97.45 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.6644, allocations: 1.166 MB / 0.5029 GB, free: 97.31 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.6646, allocations: 174.4 kB / 0.5031 GB, free: 97.21 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.6647, allocations: 25.69 kB / 0.5031 GB, free: 97.21 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.665, allocations: 30.7 kB / 0.5031 GB, free: 97.21 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.6651, allocations: 40.09 kB / 0.5032 GB, free: 97.21 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.602e-05/0.6652, allocations: 28.48 kB / 0.5032 GB, free: 97.21 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0008563/0.6661, allocations: 0.527 MB / 0.5037 GB, free: 97.12 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6661, allocations: 0 / 0.5037 GB, free: 97.12 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0007209/0.6668, allocations: 199.3 kB / 0.5039 GB, free: 97.12 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) * Number of clocked states: 0 () * 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.0009798/0.6678, allocations: 0.5234 MB / 0.5044 GB, free: 96.86 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0009785/0.6688, allocations: 0.7532 MB / 0.5051 GB, free: 96.72 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.6688, allocations: 0 / 0.5051 GB, free: 96.72 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004217/0.6692, allocations: 445 kB / 0.5056 GB, free: 96.59 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006013/0.6698, allocations: 126.7 kB / 0.5057 GB, free: 96.59 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.6717, allocations: 1.646 MB / 0.5073 GB, free: 95.84 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/0.6721, allocations: 0.9805 MB / 0.5082 GB, free: 95.14 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0003646/0.6725, allocations: 133.5 kB / 0.5084 GB, free: 95.13 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.6726, allocations: 59.11 kB / 0.5084 GB, free: 95.13 MB / 378.8 MB Notification: Performance of SimCode: time 4.31e-07/0.6726, allocations: 0 / 0.5084 GB, free: 95.13 MB / 378.8 MB Notification: Performance of Templates: time 0.01254/0.6852, allocations: 7.626 MB / 0.5159 GB, free: 94.54 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)