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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001872/0.001872, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06402/0.06402, allocations: 10.66 MB / 23.92 MB, free: 1.375 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.743/1.743, allocations: 205.2 MB / 232.1 MB, free: 12.75 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.0009165/0.0009164, allocations: 97.14 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.594e-05/3.596e-05, allocations: 4 kB / 340.6 MB, free: 3.512 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3304, allocations: 49.98 MB / 390.6 MB, free: 35.72 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1136/0.444, allocations: 83.29 MB / 473.9 MB, free: 316 kB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003826/0.4445, allocations: 83.95 kB / 473.9 MB, free: 232 kB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03699/0.4815, allocations: 10.75 MB / 484.7 MB, free: 5.441 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4816, allocations: 0 / 484.7 MB, free: 5.441 MB / 362.8 MB Notification: Performance of Transformations before backend: time 6.669e-05/0.4816, allocations: 15.98 kB / 484.7 MB, free: 5.426 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.001656/0.4833, allocations: 0.7801 MB / 485.5 MB, free: 4.59 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.4834, allocations: 11.97 kB / 485.5 MB, free: 4.578 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001478/0.4835, allocations: 74.48 kB / 485.6 MB, free: 4.496 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.4837, allocations: 55.34 kB / 485.6 MB, free: 4.441 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.4847, allocations: 461.5 kB / 486.1 MB, free: 3.949 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.866e-05/0.4848, allocations: 24.78 kB / 486.1 MB, free: 3.926 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.035e-05/0.4849, allocations: 43.89 kB / 486.1 MB, free: 3.883 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007653/0.4857, allocations: 436 kB / 486.6 MB, free: 3.426 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.4857, allocations: 7.984 kB / 486.6 MB, free: 3.418 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.334e-05/0.4858, allocations: 19.95 kB / 486.6 MB, free: 3.398 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.4858, allocations: 11.98 kB / 486.6 MB, free: 3.387 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005385/0.4863, allocations: 302.9 kB / 486.9 MB, free: 3.086 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002869/0.4892, allocations: 1.597 MB / 488.5 MB, free: 1.402 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004396/0.4897, allocations: 240.3 kB / 488.7 MB, free: 1.156 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.4899, allocations: 145 kB / 488.9 MB, free: 1.012 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.594e-05/0.49, allocations: 8.219 kB / 488.9 MB, free: 1.004 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004229/0.4904, allocations: 248 kB / 489.1 MB, free: 0.7461 MB / 362.8 MB Notification: Performance of pre-optimization done (n=33): time 3.777e-06/0.4904, allocations: 3.938 kB / 489.1 MB, free: 0.7422 MB / 362.8 MB Notification: Performance of matching and sorting (n=33): time 0.0008703/0.4913, allocations: 434.5 kB / 489.6 MB, free: 316 kB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.4914, allocations: 107.3 kB / 489.7 MB, free: 184 kB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006791/0.4921, allocations: 471.9 kB / 490.1 MB, free: 15.71 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.4921, allocations: 33.7 kB / 490.2 MB, free: 15.67 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.4924, allocations: 267.9 kB / 490.4 MB, free: 15.41 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.4925, allocations: 118.4 kB / 490.5 MB, free: 15.29 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-05/0.4925, allocations: 12 kB / 490.5 MB, free: 15.28 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.4927, allocations: 370.7 kB / 490.9 MB, free: 14.91 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.493, allocations: 140.9 kB / 491 MB, free: 14.77 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003434/0.4933, allocations: 286.2 kB / 491.3 MB, free: 14.43 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.4937, allocations: 222.2 kB / 491.5 MB, free: 14.2 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.4937, allocations: 8 kB / 491.5 MB, free: 14.19 MB / 378.8 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001108/0.4948, allocations: 0.6178 MB / 492.2 MB, free: 13.56 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.736e-05/0.4949, allocations: 34.23 kB / 492.2 MB, free: 13.52 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.4949, allocations: 8 kB / 492.2 MB, free: 13.52 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/0.495, allocations: 8 kB / 492.2 MB, free: 13.51 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004931/0.4955, allocations: 111.8 kB / 492.3 MB, free: 13.4 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.4955, allocations: 7.984 kB / 492.3 MB, free: 13.39 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.4958, allocations: 55.58 kB / 492.4 MB, free: 13.34 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.386e-05/0.4959, allocations: 27.94 kB / 492.4 MB, free: 13.31 MB / 378.8 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(protected = true ) type: Real [4] process.Y[3]:VARIABLE(protected = true ) type: Real [4] process.Y[4]:VARIABLE(protected = true ) type: Real [4] process.U[2]:VARIABLE(protected = true ) type: Real [3] process.U[3]:VARIABLE(protected = true ) type: Real [3] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(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 () * 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.0002863/0.4962, allocations: 188.2 kB / 492.6 MB, free: 13.11 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.4963, allocations: 55.28 kB / 492.6 MB, free: 13.05 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.4973, allocations: 0.4999 MB / 493.1 MB, free: 12.54 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.4974, allocations: 4 kB / 493.2 MB, free: 12.54 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4974, allocations: 4 kB / 493.2 MB, free: 12.54 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.4974, allocations: 3.984 kB / 493.2 MB, free: 12.53 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005646/0.4979, allocations: 465.1 kB / 493.6 MB, free: 12.03 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.498, allocations: 0 / 493.6 MB, free: 12.03 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000395/0.4984, allocations: 63.95 kB / 493.7 MB, free: 11.96 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.4984, allocations: 4 kB / 493.7 MB, free: 11.96 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.73e-05/0.4984, allocations: 19.98 kB / 493.7 MB, free: 11.94 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/0.4984, allocations: 4 kB / 493.7 MB, free: 11.94 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4985, allocations: 3.938 kB / 493.7 MB, free: 11.93 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.4996, allocations: 0.6757 MB / 494.4 MB, free: 11.23 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.4997, allocations: 132.4 kB / 494.5 MB, free: 11.09 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.885e-05/0.4998, allocations: 19.98 kB / 494.5 MB, free: 11.07 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.5, allocations: 19.98 kB / 494.6 MB, free: 11.05 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.98e-05/0.5001, allocations: 19.97 kB / 494.6 MB, free: 11.03 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.894e-05/0.5002, allocations: 15.98 kB / 494.6 MB, free: 11.01 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0004689/0.5006, allocations: 365.5 kB / 494.9 MB, free: 10.66 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5006, allocations: 4 kB / 494.9 MB, free: 10.65 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0006462/0.5013, allocations: 127.8 kB / 495.1 MB, free: 10.53 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) * 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.002268/0.5036, allocations: 1.528 MB / 496.6 MB, free: 9.051 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0007365/0.5043, allocations: 479.3 kB / 497.1 MB, free: 8.57 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.5043, allocations: 0 / 497.1 MB, free: 8.57 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.5047, allocations: 247.2 kB / 497.3 MB, free: 8.316 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.5051, allocations: 67.7 kB / 497.4 MB, free: 8.254 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.5069, allocations: 0.9845 MB / 498.4 MB, free: 7.23 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.5074, allocations: 0.8897 MB / 499.3 MB, free: 6.312 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002921/0.5077, allocations: 103.3 kB / 499.4 MB, free: 6.207 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002554/0.5079, allocations: 175.4 kB / 499.5 MB, free: 6.035 MB / 378.8 MB Notification: Performance of SimCode: time 4.01e-07/0.5079, allocations: 0 / 499.5 MB, free: 6.035 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2306/0.7385, allocations: 9.689 MB / 0.4973 GB, free: 100.4 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.7387, allocations: 217 kB / 0.4975 GB, free: 100.1 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.302/3.041, allocations: 0 / 0.4975 GB, free: 100.1 MB / 378.8 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)