Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01022/0.01022, allocations: 173.6 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06422/0.06422, allocations: 10.74 MB / 26.59 MB, free: 2.262 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.46/1.46, allocations: 205.4 MB / 235.2 MB, free: 168 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.0008186/0.0008187, allocations: 90.03 kB / 285.9 MB, free: 10.61 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003727, allocations: 16 kB / 346.4 MB, free: 5.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 50 MB / 396.4 MB, free: 3.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3387/0.4546, allocations: 83.38 MB / 479.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.455, allocations: 76.48 kB / 479.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02712/0.4821, allocations: 10.8 MB / 490.7 MB, free: 3.863 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4822, allocations: 0 / 490.7 MB, free: 3.863 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.832e-05/0.4822, allocations: 15.94 kB / 490.7 MB, free: 3.848 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001386/0.4836, allocations: 0.843 MB / 491.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.4837, allocations: 8.031 kB / 491.5 MB, free: 2.973 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.4838, allocations: 63.25 kB / 491.6 MB, free: 2.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007723/0.4846, allocations: 455.6 kB / 492 MB, free: 2.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.4846, allocations: 32.64 kB / 492.1 MB, free: 2.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.928e-05/0.4847, allocations: 36.59 kB / 492.1 MB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006361/0.4853, allocations: 454.1 kB / 492.5 MB, free: 2.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.457e-05/0.4854, allocations: 3.938 kB / 492.5 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/0.4854, allocations: 21.11 kB / 492.6 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.4854, allocations: 15.94 kB / 492.6 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005184/0.4859, allocations: 316.8 kB / 492.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.4882, allocations: 1.612 MB / 494.5 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004062/0.4887, allocations: 244.8 kB / 494.7 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.4887, allocations: 240 / 494.7 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.4891, allocations: 265.5 kB / 495 MB, free: 15.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.513e-06/0.4891, allocations: 0 / 495 MB, free: 15.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001136/0.4903, allocations: 0.6473 MB / 495.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.092e-05/0.4904, allocations: 115.3 kB / 495.8 MB, free: 15.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006276/0.491, allocations: 481.9 kB / 496.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/0.4911, allocations: 29.27 kB / 496.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.4913, allocations: 265.1 kB / 496.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.4914, allocations: 119 kB / 496.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.4915, allocations: 6.875 kB / 496.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002146/0.4917, allocations: 368.7 kB / 497 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.492, allocations: 153.3 kB / 497.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.4924, allocations: 296.1 kB / 497.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003583/0.4927, allocations: 228.5 kB / 497.7 MB, free: 13.65 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4927, allocations: 0 / 497.7 MB, free: 13.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009962/0.4937, allocations: 0.6443 MB / 498.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.374e-05/0.4938, allocations: 41.12 kB / 498.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4938, allocations: 8.469 kB / 498.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/0.4939, allocations: 8 kB / 498.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004783/0.4944, allocations: 118.4 kB / 498.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.4944, allocations: 4 kB / 498.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.4946, allocations: 54.7 kB / 498.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.933e-05/0.4947, allocations: 23.81 kB / 498.6 MB, free: 12.89 MB / 362.7 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,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.TS_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 (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * 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.000391/0.4951, allocations: 263.3 kB / 498.8 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.151e-05/0.4952, allocations: 51.34 kB / 498.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008914/0.4961, allocations: 0.5372 MB / 499.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.4961, allocations: 4 kB / 499.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4961, allocations: 0 / 499.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.4961, allocations: 0 / 499.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00053/0.4966, allocations: 465.2 kB / 499.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.4967, allocations: 0 / 499.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004055/0.4971, allocations: 71.08 kB / 499.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.144e-06/0.4971, allocations: 8 kB / 499.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.867e-05/0.4971, allocations: 15.86 kB / 500 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.4972, allocations: 0 / 500 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.4972, allocations: 0 / 500 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/0.4983, allocations: 0.7059 MB / 0.4889 GB, free: 11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.4985, allocations: 136.4 kB / 0.4891 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.98e-05/0.4986, allocations: 19.94 kB / 0.4891 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.4988, allocations: 20.08 kB / 0.4891 GB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.675e-05/0.4989, allocations: 23.91 kB / 0.4891 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-05/0.4989, allocations: 16 kB / 0.4891 GB, free: 10.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004096/0.4993, allocations: 362.8 kB / 0.4895 GB, free: 10.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.084e-06/0.4993, allocations: 0 / 0.4895 GB, free: 10.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005375/0.4999, allocations: 135.7 kB / 0.4896 GB, free: 10.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.001124/0.501, allocations: 475.3 kB / 0.4901 GB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008079/0.5018, allocations: 0.4895 MB / 0.4905 GB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5018, allocations: 4 kB / 0.4905 GB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003683/0.5022, allocations: 263.2 kB / 0.4908 GB, free: 9.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.5026, allocations: 70.64 kB / 0.4909 GB, free: 9.023 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.5042, allocations: 1.15 MB / 0.492 GB, free: 7.852 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.5047, allocations: 0.882 MB / 0.4928 GB, free: 6.941 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002798/0.505, allocations: 95.39 kB / 0.4929 GB, free: 6.844 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.595e-05/0.5051, allocations: 43.42 kB / 0.493 GB, free: 6.801 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5051, allocations: 0 / 0.493 GB, free: 6.801 MB / 362.7 MB Notification: Performance of Templates: time 0.009882/0.515, allocations: 4.747 MB / 0.4976 GB, free: 2.055 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)