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.00131/0.001311, allocations: 180.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.08075/0.08075, allocations: 10.76 MB / 27.63 MB, free: 1.855 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.633/1.633, allocations: 205.4 MB / 236.2 MB, free: 10.19 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.0007413/0.000741, allocations: 101.7 kB / 287 MB, free: 12.4 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0005885/0.0005887, allocations: 12 kB / 347.6 MB, free: 15.64 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2515, allocations: 50 MB / 397.6 MB, free: 34.62 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09968/0.3512, allocations: 83.44 MB / 481.1 MB, free: 15.06 MB / 362.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.3515, allocations: 83.95 kB / 481.1 MB, free: 14.98 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03064/0.3822, allocations: 10.84 MB / 492 MB, free: 4.102 MB / 362.8 MB Notification: Performance of FrontEnd: time 3.837e-06/0.3823, allocations: 0 / 492 MB, free: 4.102 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0001014/0.3824, allocations: 15.98 kB / 492 MB, free: 4.086 MB / 362.8 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.002571/0.385, allocations: 0.8425 MB / 492.8 MB, free: 3.176 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.385, allocations: 8.031 kB / 492.9 MB, free: 3.168 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003418/0.3854, allocations: 60.19 kB / 492.9 MB, free: 3.109 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.3867, allocations: 478.5 kB / 493.4 MB, free: 2.605 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.173e-05/0.3868, allocations: 21.03 kB / 493.4 MB, free: 2.586 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.3869, allocations: 44.27 kB / 493.4 MB, free: 2.543 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008552/0.3878, allocations: 458.6 kB / 493.9 MB, free: 2.062 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/0.3878, allocations: 3.938 kB / 493.9 MB, free: 2.059 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.977e-05/0.3879, allocations: 12 kB / 493.9 MB, free: 2.047 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3879, allocations: 8 kB / 493.9 MB, free: 2.039 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005928/0.3885, allocations: 322.3 kB / 494.2 MB, free: 1.727 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002579/0.3911, allocations: 1.623 MB / 495.9 MB, free: 16 kB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005089/0.3916, allocations: 258.8 kB / 496.1 MB, free: 15.75 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.3919, allocations: 153 kB / 496.3 MB, free: 15.6 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.766e-05/0.3919, allocations: 240 / 496.3 MB, free: 15.6 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004524/0.3924, allocations: 255.2 kB / 496.5 MB, free: 15.34 MB / 378.8 MB Notification: Performance of pre-optimization done (n=33): time 2.615e-06/0.3924, allocations: 0 / 496.5 MB, free: 15.34 MB / 378.8 MB Notification: Performance of matching and sorting (n=33): time 0.001256/0.3937, allocations: 0.5809 MB / 497.1 MB, free: 14.75 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.978e-05/0.3938, allocations: 106.8 kB / 497.2 MB, free: 14.62 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008291/0.3946, allocations: 0.5252 MB / 497.7 MB, free: 14.08 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/0.3947, allocations: 37.7 kB / 497.8 MB, free: 14.04 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.3949, allocations: 268 kB / 498 MB, free: 13.77 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.395, allocations: 118.4 kB / 498.1 MB, free: 13.65 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.172e-05/0.3951, allocations: 8 kB / 498.1 MB, free: 13.64 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002205/0.3953, allocations: 362.8 kB / 498.5 MB, free: 13.28 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.3956, allocations: 152.9 kB / 498.6 MB, free: 13.13 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.396, allocations: 300.5 kB / 498.9 MB, free: 12.79 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.398, allocations: 0.9524 MB / 499.9 MB, free: 11.75 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.3981, allocations: 4 kB / 499.9 MB, free: 11.74 MB / 378.8 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001117/0.3992, allocations: 0.644 MB / 0.4888 GB, free: 11.09 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.56e-05/0.3993, allocations: 33.7 kB / 0.4888 GB, free: 11.05 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.3993, allocations: 4 kB / 0.4888 GB, free: 11.04 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.3993, allocations: 11.94 kB / 0.4889 GB, free: 11.03 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/0.3998, allocations: 115.8 kB / 0.489 GB, free: 10.92 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.3998, allocations: 7.938 kB / 0.489 GB, free: 10.91 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002895/0.4001, allocations: 63.91 kB / 0.489 GB, free: 10.85 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/0.4002, allocations: 20 kB / 0.489 GB, free: 10.83 MB / 378.8 MB Warning: Assuming fixed start value for the following 10 variables: 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] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] 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: 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.0004211/0.4006, allocations: 261.8 kB / 0.4893 GB, free: 10.55 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.907e-05/0.4007, allocations: 59.31 kB / 0.4894 GB, free: 10.5 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009352/0.4016, allocations: 0.5196 MB / 0.4899 GB, free: 9.965 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.4017, allocations: 8 kB / 0.4899 GB, free: 9.957 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.4017, allocations: 3.938 kB / 0.4899 GB, free: 9.953 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4017, allocations: 3.984 kB / 0.4899 GB, free: 9.949 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005514/0.4022, allocations: 457.2 kB / 0.4903 GB, free: 9.453 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4022, allocations: 0 / 0.4903 GB, free: 9.453 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.4026, allocations: 71.95 kB / 0.4904 GB, free: 9.383 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.4027, allocations: 0 / 0.4904 GB, free: 9.383 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.486e-05/0.4027, allocations: 15.98 kB / 0.4904 GB, free: 9.367 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.4027, allocations: 0 / 0.4904 GB, free: 9.367 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.4027, allocations: 7.875 kB / 0.4904 GB, free: 9.359 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.4039, allocations: 0.7105 MB / 0.4911 GB, free: 8.625 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.404, allocations: 128.4 kB / 0.4912 GB, free: 8.48 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.887e-05/0.4041, allocations: 16.09 kB / 0.4912 GB, free: 8.465 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.4043, allocations: 27.92 kB / 0.4913 GB, free: 8.438 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.333e-05/0.4044, allocations: 27.91 kB / 0.4913 GB, free: 8.41 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.4044, allocations: 15.98 kB / 0.4913 GB, free: 8.395 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0004718/0.4049, allocations: 362.8 kB / 0.4917 GB, free: 8.043 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4049, allocations: 4 kB / 0.4917 GB, free: 8.039 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0005057/0.4054, allocations: 127.8 kB / 0.4918 GB, free: 7.914 MB / 378.8 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.001042/0.4065, allocations: 476.6 kB / 0.4922 GB, free: 7.473 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0008951/0.4074, allocations: 0.495 MB / 0.4927 GB, free: 6.965 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.4074, allocations: 1.062 kB / 0.4927 GB, free: 6.965 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.4077, allocations: 263.2 kB / 0.493 GB, free: 6.695 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004395/0.4082, allocations: 65.92 kB / 0.493 GB, free: 6.629 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.4098, allocations: 1.144 MB / 0.4941 GB, free: 5.457 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.4104, allocations: 0.8742 MB / 0.495 GB, free: 4.559 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0003166/0.4107, allocations: 99.38 kB / 0.4951 GB, free: 4.461 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.4108, allocations: 43.42 kB / 0.4951 GB, free: 4.418 MB / 378.8 MB Notification: Performance of SimCode: time 2.21e-07/0.4108, allocations: 0 / 0.4951 GB, free: 4.418 MB / 378.8 MB Notification: Performance of Templates: time 0.1905/0.6013, allocations: 4.781 MB / 0.4998 GB, free: 100.6 MB / 378.8 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)