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.001065/0.001066, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05905/0.05905, allocations: 10.65 MB / 18.72 MB, free: 1.328 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.936/1.936, allocations: 205.3 MB / 226.9 MB, free: 7.969 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.0014/0.0014, allocations: 82.47 kB / 277.3 MB, free: 5.512 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.463e-05, allocations: 0 / 333.6 MB, free: 28.4 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1241, allocations: 50 MB / 383.6 MB, free: 10.36 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.5637, allocations: 83.27 MB / 466.9 MB, free: 1.262 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.5641, allocations: 81.64 kB / 467 MB, free: 1.219 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.0491/0.6132, allocations: 17.53 MB / 484.5 MB, free: 2.605 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6133, allocations: 0 / 484.5 MB, free: 2.605 MB / 346.8 MB Notification: Performance of Transformations before backend: time 6.608e-05/0.6134, allocations: 24.16 kB / 484.5 MB, free: 2.582 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.001819/0.6152, allocations: 1.039 MB / 485.6 MB, free: 1.527 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.6152, allocations: 8.031 kB / 485.6 MB, free: 1.52 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.6154, allocations: 94.88 kB / 485.7 MB, free: 1.426 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.6167, allocations: 0.6333 MB / 486.3 MB, free: 0.8203 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.6167, allocations: 16 kB / 486.3 MB, free: 0.8047 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-05/0.6168, allocations: 31.98 kB / 486.3 MB, free: 0.7734 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006652/0.6175, allocations: 398.7 kB / 486.7 MB, free: 0.5039 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008392/0.6183, allocations: 0.5668 MB / 487.3 MB, free: 12 kB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.6184, allocations: 4 kB / 487.3 MB, free: 8 kB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.158e-05/0.6184, allocations: 4 kB / 487.3 MB, free: 4 kB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.068e-05/0.6184, allocations: 12.05 kB / 487.3 MB, free: 15.99 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.6216, allocations: 2.106 MB / 489.4 MB, free: 14.14 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006402/0.6222, allocations: 341.9 kB / 489.8 MB, free: 13.9 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/0.6225, allocations: 220.7 kB / 490 MB, free: 13.75 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.667e-05/0.6226, allocations: 4 kB / 490 MB, free: 13.75 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004982/0.6231, allocations: 372 kB / 490.3 MB, free: 13.43 MB / 362.8 MB Notification: Performance of pre-optimization done (n=53): time 2.304e-06/0.6231, allocations: 0 / 490.3 MB, free: 13.43 MB / 362.8 MB Notification: Performance of matching and sorting (n=53): time 0.001371/0.6245, allocations: 0.6115 MB / 491 MB, free: 12.93 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.941e-05/0.6246, allocations: 170.2 kB / 491.1 MB, free: 12.73 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007337/0.6253, allocations: 0.5988 MB / 491.7 MB, free: 12.26 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.6254, allocations: 25.7 kB / 491.7 MB, free: 12.23 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003228/0.6257, allocations: 371.9 kB / 492.1 MB, free: 12 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.6259, allocations: 169.9 kB / 492.3 MB, free: 11.86 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/0.6259, allocations: 0 / 492.3 MB, free: 11.86 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.6261, allocations: 333.5 kB / 492.6 MB, free: 11.54 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.6264, allocations: 199.7 kB / 492.8 MB, free: 11.41 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004272/0.6268, allocations: 380.6 kB / 493.2 MB, free: 11.05 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004214/0.6273, allocations: 245.9 kB / 493.4 MB, free: 10.88 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.6273, allocations: 4 kB / 493.4 MB, free: 10.87 MB / 362.8 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001133/0.6284, allocations: 0.781 MB / 494.2 MB, free: 10.23 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.985e-05/0.6285, allocations: 71.33 kB / 494.3 MB, free: 10.15 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.6285, allocations: 7.938 kB / 494.3 MB, free: 10.14 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.6285, allocations: 8 kB / 494.3 MB, free: 10.14 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000693/0.6292, allocations: 176.2 kB / 494.4 MB, free: 9.969 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.6293, allocations: 11.94 kB / 494.5 MB, free: 9.957 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.6296, allocations: 67.34 kB / 494.5 MB, free: 9.891 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.954e-05/0.6297, allocations: 30.75 kB / 494.6 MB, free: 9.867 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.0002827/0.63, allocations: 216.5 kB / 494.8 MB, free: 9.641 MB / 362.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009808/0.631, allocations: 0.649 MB / 495.4 MB, free: 9.113 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.6311, allocations: 75.06 kB / 495.5 MB, free: 9.039 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001212/0.6323, allocations: 0.7238 MB / 496.2 MB, free: 8.469 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.6323, allocations: 8 kB / 496.2 MB, free: 8.461 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.6323, allocations: 0 / 496.2 MB, free: 8.461 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.6323, allocations: 3.984 kB / 496.2 MB, free: 8.457 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006509/0.633, allocations: 0.5609 MB / 496.8 MB, free: 7.98 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.633, allocations: 0 / 496.8 MB, free: 7.98 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007533/0.6338, allocations: 143.3 kB / 496.9 MB, free: 7.844 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.6338, allocations: 0 / 496.9 MB, free: 7.844 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.6338, allocations: 22.61 kB / 496.9 MB, free: 7.828 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.309e-06/0.6339, allocations: 4 kB / 497 MB, free: 7.824 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.6339, allocations: 0 / 497 MB, free: 7.824 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.6354, allocations: 1.02 MB / 498 MB, free: 7.031 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.6355, allocations: 166.8 kB / 498.1 MB, free: 6.855 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.6357, allocations: 15.44 kB / 498.2 MB, free: 6.844 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.6359, allocations: 27.91 kB / 498.2 MB, free: 6.816 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.636, allocations: 35.27 kB / 498.2 MB, free: 6.789 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/0.6361, allocations: 27.23 kB / 498.2 MB, free: 6.766 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0005316/0.6366, allocations: 464 kB / 498.7 MB, free: 6.434 MB / 362.8 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6366, allocations: 0 / 498.7 MB, free: 6.434 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0006954/0.6373, allocations: 195 kB / 498.9 MB, free: 6.246 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.002583/0.6399, allocations: 1.837 MB / 0.489 GB, free: 4.625 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0009404/0.6409, allocations: 0.6879 MB / 0.4897 GB, free: 4.098 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.6409, allocations: 0 / 0.4897 GB, free: 4.098 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004192/0.6413, allocations: 415.2 kB / 0.4901 GB, free: 3.773 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005843/0.6419, allocations: 109.1 kB / 0.4902 GB, free: 3.691 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.6442, allocations: 1.327 MB / 0.4915 GB, free: 2.449 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.6447, allocations: 1.002 MB / 0.4924 GB, free: 1.43 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0003869/0.6451, allocations: 132.8 kB / 0.4926 GB, free: 1.301 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00032/0.6455, allocations: 276.2 kB / 0.4928 GB, free: 1.23 MB / 362.8 MB Notification: Performance of SimCode: time 2.655e-06/0.6455, allocations: 0 / 0.4928 GB, free: 1.23 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03832/0.6838, allocations: 13.61 MB / 0.5061 GB, free: 3.625 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.6841, allocations: 197.2 kB / 0.5063 GB, free: 3.43 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.547/3.231, allocations: 0 / 0.5063 GB, free: 3.43 MB / 378.8 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)