Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.007466/0.007466, allocations: 173.6 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05921/0.05921, allocations: 10.74 MB / 26.59 MB, free: 2.258 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.579/1.579, allocations: 205.4 MB / 235.2 MB, free: 180 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.0009036/0.0009036, allocations: 84.34 kB / 285.9 MB, free: 10.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003408, allocations: 15.94 kB / 346.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.09917, allocations: 50.01 MB / 396.4 MB, free: 3.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2869/0.3862, allocations: 83.37 MB / 479.8 MB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.3864, allocations: 79.86 kB / 479.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02589/0.4124, allocations: 10.75 MB / 490.6 MB, free: 3.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4124, allocations: 0 / 490.6 MB, free: 3.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.672e-05/0.4124, allocations: 15.92 kB / 490.6 MB, free: 3.895 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.00116/0.4136, allocations: 0.8405 MB / 491.5 MB, free: 3.031 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.4136, allocations: 12.03 kB / 491.5 MB, free: 3.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.612e-05/0.4138, allocations: 59.25 kB / 491.5 MB, free: 2.961 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007196/0.4145, allocations: 452.7 kB / 492 MB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.4145, allocations: 29.33 kB / 492 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.4146, allocations: 39.06 kB / 492 MB, free: 2.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005831/0.4152, allocations: 453.2 kB / 492.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.4152, allocations: 7.844 kB / 492.5 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.604e-05/0.4153, allocations: 15.81 kB / 492.5 MB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.4153, allocations: 7.953 kB / 492.5 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004848/0.4158, allocations: 335.5 kB / 492.8 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.4178, allocations: 1.596 MB / 494.4 MB, free: 436 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.4182, allocations: 248.9 kB / 494.7 MB, free: 240 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.4183, allocations: 4.234 kB / 494.7 MB, free: 236 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003595/0.4187, allocations: 256.2 kB / 494.9 MB, free: 12 kB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 1.943e-06/0.4187, allocations: 0 / 494.9 MB, free: 12 kB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.00118/0.4199, allocations: 0.6526 MB / 495.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.729e-05/0.4199, allocations: 115.3 kB / 495.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000568/0.4205, allocations: 469.9 kB / 496.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.4206, allocations: 28.33 kB / 496.2 MB, free: 14.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.4208, allocations: 278.6 kB / 496.4 MB, free: 14.72 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.4209, allocations: 109.9 kB / 496.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/0.4209, allocations: 10.94 kB / 496.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.4211, allocations: 372.5 kB / 496.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/0.4214, allocations: 150.5 kB / 497.1 MB, free: 14.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003857/0.4218, allocations: 296.9 kB / 497.4 MB, free: 13.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.4221, allocations: 231.2 kB / 497.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.4222, allocations: 4 kB / 497.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001059/0.4232, allocations: 0.6395 MB / 498.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.02e-05/0.4233, allocations: 37.69 kB / 498.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.4233, allocations: 7.938 kB / 498.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.4233, allocations: 8 kB / 498.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004649/0.4238, allocations: 115.5 kB / 498.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.4238, allocations: 4 kB / 498.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.4241, allocations: 58.92 kB / 498.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.53e-05/0.4242, allocations: 27.12 kB / 498.5 MB, free: 12.95 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.0003891/0.4246, allocations: 260.9 kB / 498.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.4247, allocations: 51.34 kB / 498.8 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009238/0.4256, allocations: 0.523 MB / 499.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.4256, allocations: 0 / 499.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.4256, allocations: 8 kB / 499.3 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.4256, allocations: 0 / 499.3 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000499/0.4261, allocations: 467.3 kB / 499.8 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.4261, allocations: 0 / 499.8 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/0.4266, allocations: 70.58 kB / 499.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.4266, allocations: 0 / 499.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/0.4266, allocations: 17.23 kB / 499.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.4266, allocations: 4 kB / 499.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4266, allocations: 0 / 499.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.4278, allocations: 0.7078 MB / 0.4888 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.428, allocations: 132.4 kB / 0.489 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.278e-05/0.4281, allocations: 23.92 kB / 0.489 GB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.4283, allocations: 20.09 kB / 0.489 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.273e-05/0.4284, allocations: 27.91 kB / 0.489 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.4284, allocations: 12 kB / 0.4891 GB, free: 10.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004318/0.4288, allocations: 362.8 kB / 0.4894 GB, free: 10.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.714e-06/0.4289, allocations: 0 / 0.4894 GB, free: 10.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005249/0.4294, allocations: 135.8 kB / 0.4895 GB, free: 10.38 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.001204/0.4306, allocations: 469.8 kB / 0.49 GB, free: 9.961 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008492/0.4315, allocations: 0.495 MB / 0.4905 GB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4315, allocations: 0 / 0.4905 GB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.4318, allocations: 260.2 kB / 0.4907 GB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.4323, allocations: 70.7 kB / 0.4908 GB, free: 9.121 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.434, allocations: 1.142 MB / 0.4919 GB, free: 7.953 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/0.4345, allocations: 0.8859 MB / 0.4928 GB, free: 7.039 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.4348, allocations: 103.4 kB / 0.4929 GB, free: 6.934 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.489e-05/0.4349, allocations: 43.42 kB / 0.4929 GB, free: 6.891 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4349, allocations: 0 / 0.4929 GB, free: 6.891 MB / 362.7 MB Notification: Performance of Templates: time 0.009608/0.4445, allocations: 4.735 MB / 0.4975 GB, free: 2.156 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)