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.005863/0.005864, allocations: 172.3 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05579/0.05579, allocations: 10.74 MB / 26.59 MB, free: 2.238 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.398/1.398, allocations: 205.4 MB / 235.2 MB, free: 176 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008115/0.0008116, allocations: 83.95 kB / 285.9 MB, free: 10.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.0002889, allocations: 8 kB / 346.4 MB, free: 5.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09777, allocations: 50.01 MB / 396.4 MB, free: 3.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.363/0.4608, allocations: 83.7 MB / 480.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.4612, allocations: 85.83 kB / 480.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04445/0.5057, allocations: 17.7 MB / 497.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5057, allocations: 0 / 497.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.317e-05/0.5058, allocations: 20 kB / 497.9 MB, free: 13.67 MB / 362.7 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.001924/0.5077, allocations: 1.154 MB / 499.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.5078, allocations: 15.97 kB / 499.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.508, allocations: 90.88 kB / 499.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.5093, allocations: 0.6366 MB / 499.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.23e-05/0.5093, allocations: 34.75 kB / 499.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.254e-05/0.5094, allocations: 49.25 kB / 499.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.5105, allocations: 0.6513 MB / 0.4888 GB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.5105, allocations: 0 / 0.4888 GB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.587e-05/0.5106, allocations: 21.56 kB / 0.4888 GB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.5106, allocations: 12 kB / 0.4888 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007821/0.5114, allocations: 464 kB / 0.4893 GB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003429/0.5148, allocations: 2.196 MB / 0.4914 GB, free: 8.703 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007979/0.5156, allocations: 378.8 kB / 0.4918 GB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.015e-05/0.5157, allocations: 7.938 kB / 0.4918 GB, free: 8.312 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006071/0.5163, allocations: 398.1 kB / 0.4922 GB, free: 7.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 3.867e-06/0.5163, allocations: 0 / 0.4922 GB, free: 7.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.001712/0.518, allocations: 1.089 MB / 0.4932 GB, free: 6.758 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/0.5181, allocations: 162.2 kB / 0.4934 GB, free: 6.562 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008226/0.519, allocations: 0.6874 MB / 0.4941 GB, free: 5.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.187e-05/0.519, allocations: 41.7 kB / 0.4941 GB, free: 5.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.5193, allocations: 368.7 kB / 0.4944 GB, free: 5.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.5195, allocations: 173.6 kB / 0.4946 GB, free: 5.281 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.921e-05/0.5195, allocations: 12 kB / 0.4946 GB, free: 5.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5197, allocations: 333.9 kB / 0.4949 GB, free: 4.938 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004327/0.5201, allocations: 225.4 kB / 0.4952 GB, free: 4.719 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005917/0.5207, allocations: 415.5 kB / 0.4956 GB, free: 4.246 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005028/0.5212, allocations: 336.6 kB / 0.4959 GB, free: 3.906 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.5212, allocations: 8 kB / 0.4959 GB, free: 3.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001463/0.5227, allocations: 0.9153 MB / 0.4968 GB, free: 2.961 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.326e-05/0.5228, allocations: 71.39 kB / 0.4968 GB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.5228, allocations: 4 kB / 0.4968 GB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.5228, allocations: 8 kB / 0.4969 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007073/0.5235, allocations: 171.8 kB / 0.497 GB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-05/0.5236, allocations: 11.94 kB / 0.497 GB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003698/0.5239, allocations: 83.56 kB / 0.4971 GB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.369e-05/0.524, allocations: 31.98 kB / 0.4971 GB, free: 2.574 MB / 362.7 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.0005217/0.5246, allocations: 354.8 kB / 0.4975 GB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.5247, allocations: 83.06 kB / 0.4976 GB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/0.5262, allocations: 0.8577 MB / 0.4984 GB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.5262, allocations: 4 kB / 0.4984 GB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5262, allocations: 0 / 0.4984 GB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.5262, allocations: 3.984 kB / 0.4984 GB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007456/0.527, allocations: 0.6341 MB / 0.499 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.527, allocations: 0 / 0.499 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000764/0.5278, allocations: 143.8 kB / 0.4992 GB, free: 428 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.5278, allocations: 0 / 0.4992 GB, free: 428 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.55e-05/0.5279, allocations: 23.98 kB / 0.4992 GB, free: 404 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/0.5279, allocations: 4 kB / 0.4992 GB, free: 400 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.5279, allocations: 0 / 0.4992 GB, free: 400 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002021/0.5299, allocations: 1.163 MB / 0.5003 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002499/0.5302, allocations: 171.9 kB / 0.5005 GB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.5303, allocations: 20 kB / 0.5005 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.5306, allocations: 32.08 kB / 0.5005 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.5308, allocations: 40.27 kB / 0.5006 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-05/0.5308, allocations: 31.98 kB / 0.5006 GB, free: 14.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007724/0.5316, allocations: 0.5302 MB / 0.5011 GB, free: 14.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5316, allocations: 0 / 0.5011 GB, free: 14.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008601/0.5325, allocations: 203.7 kB / 0.5013 GB, free: 14.16 MB / 378.7 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.001313/0.5338, allocations: 0.506 MB / 0.5018 GB, free: 13.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.5352, allocations: 0.7511 MB / 0.5025 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.5352, allocations: 5.188 kB / 0.5025 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006084/0.5358, allocations: 445.2 kB / 0.503 GB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000633/0.5365, allocations: 120.3 kB / 0.5031 GB, free: 12.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.5389, allocations: 1.647 MB / 0.5047 GB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005971/0.5395, allocations: 0.9966 MB / 0.5057 GB, free: 9.629 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004454/0.5399, allocations: 133 kB / 0.5058 GB, free: 9.496 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.5401, allocations: 63.42 kB / 0.5059 GB, free: 9.438 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5401, allocations: 0 / 0.5059 GB, free: 9.438 MB / 378.7 MB Notification: Performance of Templates: time 0.01552/0.5556, allocations: 7.555 MB / 0.5132 GB, free: 1.883 MB / 378.7 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)