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.001061/0.001061, allocations: 169.2 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05773/0.05773, allocations: 10.66 MB / 18.73 MB, free: 1.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.3 MB / 226.9 MB, free: 7.945 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008955/0.0008954, allocations: 90.42 kB / 277.3 MB, free: 5.477 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.526e-05/1.525e-05, allocations: 0 / 333.5 MB, free: 28.48 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08902/0.08905, allocations: 50 MB / 383.5 MB, free: 10.43 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3351/0.4242, allocations: 83.25 MB / 466.8 MB, free: 1.68 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/0.4246, allocations: 84.55 kB / 466.9 MB, free: 1.637 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.04679/0.4714, allocations: 17.52 MB / 484.4 MB, free: 3.02 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4714, allocations: 0 / 484.4 MB, free: 3.02 MB / 346.8 MB Notification: Performance of Transformations before backend: time 5.779e-05/0.4715, allocations: 23.98 kB / 484.4 MB, free: 2.996 MB / 346.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.00163/0.4731, allocations: 1.04 MB / 485.4 MB, free: 1.941 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.4732, allocations: 8.031 kB / 485.5 MB, free: 1.934 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.4733, allocations: 94.88 kB / 485.6 MB, free: 1.84 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.4745, allocations: 0.627 MB / 486.2 MB, free: 1.238 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.4745, allocations: 19.98 kB / 486.2 MB, free: 1.219 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-05/0.4746, allocations: 35.67 kB / 486.2 MB, free: 1.188 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006279/0.4752, allocations: 397.8 kB / 486.6 MB, free: 0.918 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008025/0.476, allocations: 0.5697 MB / 487.2 MB, free: 432 kB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.4761, allocations: 4 kB / 487.2 MB, free: 428 kB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.4761, allocations: 0 / 487.2 MB, free: 428 kB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.4761, allocations: 12 kB / 487.2 MB, free: 416 kB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003106/0.4793, allocations: 2.11 MB / 489.3 MB, free: 14.55 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.4799, allocations: 337.6 kB / 489.6 MB, free: 14.31 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002755/0.4802, allocations: 221.2 kB / 489.9 MB, free: 14.16 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.4802, allocations: 4 kB / 489.9 MB, free: 14.16 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00049/0.4807, allocations: 371 kB / 490.2 MB, free: 13.84 MB / 362.8 MB Notification: Performance of pre-optimization done (n=53): time 1.814e-06/0.4807, allocations: 0 / 490.2 MB, free: 13.84 MB / 362.8 MB Notification: Performance of matching and sorting (n=53): time 0.001013/0.4817, allocations: 0.6122 MB / 490.8 MB, free: 13.34 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.4818, allocations: 166.2 kB / 491 MB, free: 13.14 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007251/0.4826, allocations: 0.595 MB / 491.6 MB, free: 12.68 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.4826, allocations: 33.7 kB / 491.6 MB, free: 12.64 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.4829, allocations: 376.1 kB / 492 MB, free: 12.41 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.4831, allocations: 163.5 kB / 492.2 MB, free: 12.27 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.744e-05/0.4831, allocations: 0 / 492.2 MB, free: 12.27 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4832, allocations: 332.6 kB / 492.5 MB, free: 11.95 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.4836, allocations: 195.7 kB / 492.7 MB, free: 11.83 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.484, allocations: 376.8 kB / 493 MB, free: 11.47 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.4844, allocations: 254.2 kB / 493.3 MB, free: 11.29 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.4844, allocations: 4 kB / 493.3 MB, free: 11.29 MB / 362.8 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001129/0.4855, allocations: 0.773 MB / 494.1 MB, free: 10.65 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.657e-05/0.4856, allocations: 74.81 kB / 494.1 MB, free: 10.57 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.4856, allocations: 7.938 kB / 494.1 MB, free: 10.56 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.4856, allocations: 8 kB / 494.2 MB, free: 10.55 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007042/0.4864, allocations: 179.8 kB / 494.3 MB, free: 10.38 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.4864, allocations: 8 kB / 494.3 MB, free: 10.38 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003191/0.4867, allocations: 63.36 kB / 494.4 MB, free: 10.31 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.551e-05/0.4868, allocations: 37.98 kB / 494.4 MB, free: 10.28 MB / 362.8 MB Warning: Assuming fixed start value for the following 9 variables: processBump.w:VARIABLE(protected = true ) "proper part of the output" type: Real processBump.U[2]:VARIABLE(protected = true ) type: Real [2] processBump.Y[3]:VARIABLE(protected = true ) type: Real [3] process.Y[3]:VARIABLE(protected = true ) type: Real [3] process.U[2]:VARIABLE(protected = true ) type: Real [2] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(protected = true ) type: Real [2] processTrack.w:VARIABLE(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 () * 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.0002632/0.487, allocations: 226.8 kB / 494.7 MB, free: 10.05 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.4872, allocations: 83.02 kB / 494.7 MB, free: 9.969 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.4883, allocations: 0.7123 MB / 495.5 MB, free: 9.41 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.4883, allocations: 4 kB / 495.5 MB, free: 9.406 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.4883, allocations: 0 / 495.5 MB, free: 9.406 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.4884, allocations: 7.984 kB / 495.5 MB, free: 9.398 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006064/0.489, allocations: 0.5554 MB / 496 MB, free: 8.93 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.489, allocations: 0 / 496 MB, free: 8.93 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007407/0.4897, allocations: 138.8 kB / 496.2 MB, free: 8.797 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.587e-06/0.4897, allocations: 7.953 kB / 496.2 MB, free: 8.789 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.098e-05/0.4898, allocations: 21.73 kB / 496.2 MB, free: 8.773 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.4898, allocations: 0 / 496.2 MB, free: 8.773 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4898, allocations: 0 / 496.2 MB, free: 8.773 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.4912, allocations: 1.019 MB / 497.2 MB, free: 7.977 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.4914, allocations: 171.2 kB / 497.4 MB, free: 7.797 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.4915, allocations: 11.5 kB / 497.4 MB, free: 7.789 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.4918, allocations: 27.97 kB / 497.4 MB, free: 7.762 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.529e-05/0.4919, allocations: 37.14 kB / 497.4 MB, free: 7.734 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.962e-05/0.4919, allocations: 27.55 kB / 497.5 MB, free: 7.711 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0005091/0.4924, allocations: 462.4 kB / 497.9 MB, free: 7.379 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4925, allocations: 0 / 497.9 MB, free: 7.379 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0006013/0.4931, allocations: 187.2 kB / 498.1 MB, free: 7.199 MB / 362.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) * 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.0009108/0.494, allocations: 454.2 kB / 498.5 MB, free: 6.766 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0008677/0.4949, allocations: 0.6843 MB / 499.2 MB, free: 6.242 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4949, allocations: 320 / 499.2 MB, free: 6.242 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000397/0.4953, allocations: 417.2 kB / 499.6 MB, free: 5.91 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006967/0.496, allocations: 109.8 kB / 499.7 MB, free: 5.828 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002019/0.498, allocations: 1.12 MB / 0.4891 GB, free: 4.797 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005427/0.4986, allocations: 1.002 MB / 0.4901 GB, free: 3.781 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0003694/0.499, allocations: 128.9 kB / 0.4902 GB, free: 3.656 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.4991, allocations: 54.67 kB / 0.4903 GB, free: 3.605 MB / 362.8 MB Notification: Performance of SimCode: time 4.8e-07/0.4991, allocations: 0 / 0.4903 GB, free: 3.605 MB / 362.8 MB Notification: Performance of Templates: time 0.01334/0.5124, allocations: 6.971 MB / 0.4971 GB, free: 12.64 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)