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.008053/0.008054, allocations: 170.9 kB / 15.11 MB, free: 6.043 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06198/0.06198, allocations: 10.73 MB / 26.59 MB, free: 2.242 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.832/1.832, allocations: 205.4 MB / 235.2 MB, free: 188 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.001227/0.001227, allocations: 82.39 kB / 285.9 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.0003661, allocations: 11.98 kB / 346.5 MB, free: 5.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1395, allocations: 49.98 MB / 396.5 MB, free: 2.992 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5749, allocations: 83.38 MB / 479.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.5753, allocations: 83.36 kB / 479.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02745/0.6027, allocations: 10.8 MB / 490.8 MB, free: 4.043 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6028, allocations: 0 / 490.8 MB, free: 4.043 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.129e-05/0.6028, allocations: 19.94 kB / 490.8 MB, free: 4.023 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.001477/0.6043, allocations: 0.8488 MB / 491.6 MB, free: 3.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.6044, allocations: 12.03 kB / 491.6 MB, free: 3.141 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001385/0.6045, allocations: 71.53 kB / 491.7 MB, free: 3.082 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.6047, allocations: 59.25 kB / 491.8 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009446/0.6056, allocations: 459.7 kB / 492.2 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.727e-05/0.6057, allocations: 26.28 kB / 492.2 MB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.899e-05/0.6058, allocations: 42.45 kB / 492.3 MB, free: 2.535 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008686/0.6066, allocations: 451.9 kB / 492.7 MB, free: 2.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.672e-05/0.6067, allocations: 4 kB / 492.7 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.925e-05/0.6068, allocations: 19.45 kB / 492.7 MB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.6068, allocations: 12 kB / 492.8 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006237/0.6074, allocations: 316.5 kB / 493.1 MB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.61, allocations: 1.609 MB / 494.7 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/0.6105, allocations: 249.1 kB / 494.9 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.6105, allocations: 4.234 kB / 494.9 MB, free: 296 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003886/0.6109, allocations: 260.9 kB / 495.2 MB, free: 68 kB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.334e-06/0.6109, allocations: 0 / 495.2 MB, free: 68 kB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.001334/0.6123, allocations: 0.6463 MB / 495.8 MB, free: 15.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.6124, allocations: 115.3 kB / 495.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006967/0.6131, allocations: 477.4 kB / 496.4 MB, free: 15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.637e-05/0.6131, allocations: 33.02 kB / 496.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/0.6134, allocations: 271.7 kB / 496.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.6135, allocations: 108.8 kB / 496.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.292e-05/0.6136, allocations: 11.06 kB / 496.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000247/0.6138, allocations: 366.9 kB / 497.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/0.6141, allocations: 154.9 kB / 497.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000478/0.6146, allocations: 293.6 kB / 497.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000453/0.6151, allocations: 230.6 kB / 497.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.6151, allocations: 0 / 497.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001164/0.6163, allocations: 0.6434 MB / 498.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.816e-05/0.6163, allocations: 43.81 kB / 498.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.6164, allocations: 8 kB / 498.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.367e-05/0.6164, allocations: 4 kB / 498.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.6168, allocations: 116.1 kB / 498.6 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.048e-05/0.6169, allocations: 15.92 kB / 498.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.6172, allocations: 53.95 kB / 498.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.877e-05/0.6172, allocations: 31.02 kB / 498.7 MB, free: 13 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.0003785/0.6176, allocations: 252.3 kB / 499 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-05/0.6177, allocations: 55.34 kB / 499 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.6187, allocations: 0.5249 MB / 499.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.6188, allocations: 4 kB / 499.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.6188, allocations: 0 / 499.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.6188, allocations: 0 / 499.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005863/0.6194, allocations: 469.1 kB / 0.4883 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.6194, allocations: 4 kB / 0.4883 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004064/0.6198, allocations: 71.89 kB / 0.4884 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.6198, allocations: 0 / 0.4884 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-05/0.6199, allocations: 19.98 kB / 0.4884 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.6199, allocations: 0 / 0.4884 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6199, allocations: 0 / 0.4884 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.6211, allocations: 0.7107 MB / 0.4891 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.6213, allocations: 136.4 kB / 0.4892 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.687e-05/0.6214, allocations: 16 kB / 0.4892 GB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.6216, allocations: 23.97 kB / 0.4893 GB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.84e-05/0.6217, allocations: 19.97 kB / 0.4893 GB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.39e-05/0.6217, allocations: 19.94 kB / 0.4893 GB, free: 10.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004454/0.6222, allocations: 366.8 kB / 0.4897 GB, free: 10.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6222, allocations: 0 / 0.4897 GB, free: 10.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005794/0.6228, allocations: 131.8 kB / 0.4898 GB, free: 10.14 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.002506/0.6253, allocations: 1.59 MB / 0.4913 GB, free: 8.566 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008398/0.6261, allocations: 0.4886 MB / 0.4918 GB, free: 8.066 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.6262, allocations: 4 kB / 0.4918 GB, free: 8.062 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003795/0.6265, allocations: 252.3 kB / 0.4921 GB, free: 7.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.627, allocations: 74.73 kB / 0.4921 GB, free: 7.734 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006239/0.6332, allocations: 5.833 MB / 0.4978 GB, free: 1.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005757/0.6338, allocations: 0.882 MB / 0.4987 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003229/0.6341, allocations: 95.38 kB / 0.4988 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002658/0.6344, allocations: 175.4 kB / 0.4989 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6344, allocations: 8 kB / 0.4989 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/0.6593, allocations: 9.835 MB / 0.5086 GB, free: 6.781 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/0.6596, allocations: 252 kB / 0.5088 GB, free: 6.527 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/3.02, allocations: 0 / 0.5088 GB, free: 6.527 MB / 378.7 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)