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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_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.006142/0.006142, allocations: 170 kB / 15.11 MB, free: 5.977 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05716/0.05716, allocations: 10.74 MB / 26.59 MB, free: 2.262 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.393/1.393, allocations: 205.4 MB / 235.2 MB, free: 212 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.0009314/0.0009316, allocations: 81.66 kB / 285.9 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003597/0.0003598, allocations: 12 kB / 346.5 MB, free: 5.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1014, allocations: 49.97 MB / 396.5 MB, free: 3.023 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3343/0.4358, allocations: 83.7 MB / 480.2 MB, free: 12.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.4361, allocations: 83.33 kB / 480.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04595/0.482, allocations: 17.71 MB / 498 MB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.4821, allocations: 0 / 498 MB, free: 13.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001106/0.4822, allocations: 20 kB / 498 MB, free: 13.77 MB / 362.7 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.003458/0.4857, allocations: 1.157 MB / 499.2 MB, free: 12.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.721e-05/0.4857, allocations: 12.03 kB / 499.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003478/0.4861, allocations: 89.27 kB / 499.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004573/0.4866, allocations: 94.88 kB / 499.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/0.4887, allocations: 0.6291 MB / 500 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.635e-05/0.4889, allocations: 37.69 kB / 0.4883 GB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/0.4891, allocations: 53.12 kB / 0.4884 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001269/0.4903, allocations: 0.6407 MB / 0.489 GB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.811e-05/0.4904, allocations: 7.906 kB / 0.489 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.937e-05/0.4905, allocations: 26.17 kB / 0.489 GB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.4905, allocations: 8 kB / 0.489 GB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008901/0.4914, allocations: 463.5 kB / 0.4895 GB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004129/0.4955, allocations: 2.199 MB / 0.4916 GB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008826/0.4964, allocations: 378.8 kB / 0.492 GB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.4965, allocations: 8 kB / 0.492 GB, free: 8.188 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006734/0.4972, allocations: 406 kB / 0.4924 GB, free: 7.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 4.008e-06/0.4972, allocations: 0 / 0.4924 GB, free: 7.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.001894/0.4991, allocations: 1.078 MB / 0.4934 GB, free: 6.637 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.4992, allocations: 162.2 kB / 0.4936 GB, free: 6.441 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.5003, allocations: 0.6911 MB / 0.4942 GB, free: 5.742 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-05/0.5004, allocations: 33.7 kB / 0.4943 GB, free: 5.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000334/0.5007, allocations: 369 kB / 0.4946 GB, free: 5.336 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/0.5009, allocations: 173.6 kB / 0.4948 GB, free: 5.164 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.501, allocations: 16 kB / 0.4948 GB, free: 5.148 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.5011, allocations: 333.9 kB / 0.4951 GB, free: 4.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005062/0.5016, allocations: 229.4 kB / 0.4953 GB, free: 4.594 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006042/0.5023, allocations: 415.5 kB / 0.4957 GB, free: 4.121 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005686/0.5028, allocations: 332.6 kB / 0.4961 GB, free: 3.785 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.5028, allocations: 4 kB / 0.4961 GB, free: 3.781 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001652/0.5045, allocations: 0.923 MB / 0.497 GB, free: 2.836 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.369e-05/0.5046, allocations: 65.58 kB / 0.497 GB, free: 2.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.5046, allocations: 8 kB / 0.497 GB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.5046, allocations: 8 kB / 0.497 GB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000736/0.5054, allocations: 171.8 kB / 0.4972 GB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.608e-05/0.5054, allocations: 16.14 kB / 0.4972 GB, free: 2.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004526/0.5059, allocations: 79.36 kB / 0.4973 GB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-05/0.506, allocations: 35.98 kB / 0.4973 GB, free: 2.449 MB / 362.7 MB Warning: Assuming fixed start value for the following 9 variables: processBump.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processBump.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processBump.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] 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: 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 () * Number of clocked 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.000603/0.5066, allocations: 352.7 kB / 0.4977 GB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.5068, allocations: 83.06 kB / 0.4977 GB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/0.5083, allocations: 0.8616 MB / 0.4986 GB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.5083, allocations: 4 kB / 0.4986 GB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.5084, allocations: 0 / 0.4986 GB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.5084, allocations: 3.984 kB / 0.4986 GB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008419/0.5092, allocations: 0.6341 MB / 0.4992 GB, free: 444 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.5092, allocations: 0 / 0.4992 GB, free: 444 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007516/0.51, allocations: 135.9 kB / 0.4993 GB, free: 308 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.51, allocations: 4 kB / 0.4993 GB, free: 304 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.595e-05/0.5101, allocations: 23.98 kB / 0.4994 GB, free: 280 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.5101, allocations: 0 / 0.4994 GB, free: 280 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5101, allocations: 0 / 0.4994 GB, free: 280 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.512, allocations: 1.166 MB / 0.5005 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/0.5123, allocations: 175.9 kB / 0.5007 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.5125, allocations: 19.98 kB / 0.5007 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.5128, allocations: 31.98 kB / 0.5007 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.5129, allocations: 40.38 kB / 0.5008 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.305e-05/0.5129, allocations: 31.98 kB / 0.5008 GB, free: 14.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007328/0.5137, allocations: 0.5224 MB / 0.5013 GB, free: 14.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5137, allocations: 0 / 0.5013 GB, free: 14.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007685/0.5145, allocations: 203.7 kB / 0.5015 GB, free: 14.04 MB / 378.7 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) * Number of clocked states: 0 () * 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.003512/0.518, allocations: 2.053 MB / 0.5035 GB, free: 12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.5194, allocations: 0.7512 MB / 0.5042 GB, free: 11.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.5194, allocations: 4 kB / 0.5042 GB, free: 11.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000572/0.52, allocations: 441.3 kB / 0.5047 GB, free: 10.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007071/0.5207, allocations: 117.4 kB / 0.5048 GB, free: 10.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.5309, allocations: 7.732 MB / 0.5123 GB, free: 2.703 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006932/0.5317, allocations: 1 MB / 0.5133 GB, free: 1.676 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005615/0.5323, allocations: 129.1 kB / 0.5134 GB, free: 1.551 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000431/0.5327, allocations: 279.3 kB / 0.5137 GB, free: 1.277 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5327, allocations: 0 / 0.5137 GB, free: 1.277 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04072/0.5734, allocations: 14.94 MB / 0.5283 GB, free: 2.363 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002827/0.5738, allocations: 244.1 kB / 0.5285 GB, free: 2.117 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.735/3.309, allocations: 0 / 0.5285 GB, free: 2.117 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_tracking_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe 2>&1)