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.001799/0.001799, 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.07323/0.07323, allocations: 10.66 MB / 23.92 MB, free: 1.406 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.771/1.771, allocations: 205.2 MB / 232.1 MB, free: 12.83 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.0008943/0.0008942, allocations: 89.09 kB / 282.6 MB, free: 13.59 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.625e-05/4.627e-05, allocations: 7.984 kB / 340.6 MB, free: 3.523 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3126, allocations: 49.98 MB / 390.6 MB, free: 35.7 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.4277, allocations: 83.61 MB / 474.2 MB, free: 15.96 MB / 362.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.428, allocations: 83.94 kB / 474.3 MB, free: 15.88 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.05084/0.4788, allocations: 17.63 MB / 491.9 MB, free: 14.19 MB / 378.8 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4789, allocations: 4 kB / 491.9 MB, free: 14.19 MB / 378.8 MB Notification: Performance of Transformations before backend: time 6.452e-05/0.4789, allocations: 24.16 kB / 491.9 MB, free: 14.16 MB / 378.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.001941/0.4809, allocations: 1.038 MB / 493 MB, free: 13.06 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/0.481, allocations: 12.03 kB / 493 MB, free: 13.05 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.4811, allocations: 86.52 kB / 493.1 MB, free: 12.95 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.4813, allocations: 94.88 kB / 493.2 MB, free: 12.86 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.4826, allocations: 0.6287 MB / 493.8 MB, free: 12.19 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.4827, allocations: 37 kB / 493.8 MB, free: 12.15 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.4828, allocations: 51.91 kB / 493.9 MB, free: 12.1 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.4838, allocations: 0.6314 MB / 494.5 MB, free: 11.43 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.4838, allocations: 0 / 494.5 MB, free: 11.43 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.928e-05/0.4839, allocations: 23.98 kB / 494.5 MB, free: 11.4 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.4839, allocations: 12 kB / 494.5 MB, free: 11.39 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007015/0.4846, allocations: 435.7 kB / 495 MB, free: 10.96 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003384/0.488, allocations: 2.212 MB / 497.2 MB, free: 8.66 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006685/0.4887, allocations: 350.9 kB / 497.5 MB, free: 8.309 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003385/0.4891, allocations: 233.7 kB / 497.7 MB, free: 8.078 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.851e-05/0.4891, allocations: 12.22 kB / 497.8 MB, free: 8.066 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000584/0.4897, allocations: 381.1 kB / 498.1 MB, free: 7.668 MB / 378.8 MB Notification: Performance of pre-optimization done (n=53): time 2.926e-06/0.4898, allocations: 0 / 498.1 MB, free: 7.668 MB / 378.8 MB Notification: Performance of matching and sorting (n=53): time 0.00121/0.491, allocations: 0.6958 MB / 498.8 MB, free: 6.953 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.4911, allocations: 166.2 kB / 499 MB, free: 6.754 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009073/0.492, allocations: 0.6834 MB / 499.7 MB, free: 6.062 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 5.098e-05/0.4921, allocations: 37.7 kB / 499.7 MB, free: 6.02 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000316/0.4924, allocations: 372.7 kB / 0.4883 GB, free: 5.648 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.4925, allocations: 173.6 kB / 0.4885 GB, free: 5.477 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.024e-05/0.4926, allocations: 8 kB / 0.4885 GB, free: 5.469 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.4927, allocations: 337.9 kB / 0.4888 GB, free: 5.133 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.4931, allocations: 213.4 kB / 0.489 GB, free: 4.922 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004872/0.4936, allocations: 402.5 kB / 0.4894 GB, free: 4.457 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004978/0.4941, allocations: 314.7 kB / 0.4897 GB, free: 4.141 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.4941, allocations: 4 kB / 0.4897 GB, free: 4.137 MB / 378.8 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001325/0.4954, allocations: 0.8914 MB / 0.4906 GB, free: 3.223 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.802e-05/0.4955, allocations: 68.17 kB / 0.4907 GB, free: 3.145 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.4955, allocations: 8.594 kB / 0.4907 GB, free: 3.137 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.4956, allocations: 12 kB / 0.4907 GB, free: 3.125 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007443/0.4963, allocations: 171.8 kB / 0.4909 GB, free: 2.957 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.951e-05/0.4963, allocations: 11.94 kB / 0.4909 GB, free: 2.945 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.4967, allocations: 83.25 kB / 0.4909 GB, free: 2.863 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-05/0.4968, allocations: 32 kB / 0.491 GB, free: 2.832 MB / 378.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.0002874/0.4971, allocations: 242 kB / 0.4912 GB, free: 2.578 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.4972, allocations: 79.06 kB / 0.4913 GB, free: 2.5 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.4986, allocations: 0.8264 MB / 0.4921 GB, free: 1.652 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.4986, allocations: 8 kB / 0.4921 GB, free: 1.645 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4986, allocations: 0 / 0.4921 GB, free: 1.645 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4986, allocations: 0 / 0.4921 GB, free: 1.645 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006997/0.4994, allocations: 0.6457 MB / 0.4927 GB, free: 0.9492 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4994, allocations: 0 / 0.4927 GB, free: 0.9492 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007504/0.5001, allocations: 135.8 kB / 0.4929 GB, free: 0.8164 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.5001, allocations: 4 kB / 0.4929 GB, free: 0.8125 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-05/0.5002, allocations: 23.98 kB / 0.4929 GB, free: 0.7891 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.5002, allocations: 0 / 0.4929 GB, free: 0.7891 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5002, allocations: 0 / 0.4929 GB, free: 0.7891 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2845/0.7847, allocations: 1.124 MB / 0.494 GB, free: 98.87 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003668/0.7851, allocations: 172.5 kB / 0.4941 GB, free: 98.77 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.7853, allocations: 22.39 kB / 0.4942 GB, free: 98.77 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003123/0.7856, allocations: 30.8 kB / 0.4942 GB, free: 98.77 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.7858, allocations: 35.44 kB / 0.4942 GB, free: 98.77 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.513e-05/0.7859, allocations: 25.58 kB / 0.4943 GB, free: 98.77 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0008553/0.7867, allocations: 0.5241 MB / 0.4948 GB, free: 98.67 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.463e-06/0.7867, allocations: 0 / 0.4948 GB, free: 98.67 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.001023/0.7878, allocations: 205.5 kB / 0.495 GB, free: 98.67 MB / 378.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.003669/0.7914, allocations: 1.968 MB / 0.4969 GB, free: 97.94 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.7929, allocations: 0.7262 MB / 0.4976 GB, free: 97.81 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.7929, allocations: 1.969 kB / 0.4976 GB, free: 97.81 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005921/0.7935, allocations: 430.1 kB / 0.498 GB, free: 97.68 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000795/0.7943, allocations: 121.1 kB / 0.4981 GB, free: 97.68 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.7974, allocations: 1.399 MB / 0.4995 GB, free: 97.28 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007714/0.7982, allocations: 0.9999 MB / 0.5005 GB, free: 96.58 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.000455/0.7987, allocations: 134.2 kB / 0.5006 GB, free: 96.57 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.7991, allocations: 281.1 kB / 0.5009 GB, free: 96.56 MB / 378.8 MB Notification: Performance of SimCode: time 1.763e-06/0.7991, allocations: 0 / 0.5009 GB, free: 96.56 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.8274, allocations: 14.7 MB / 0.5152 GB, free: 90.29 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/0.8276, allocations: 215.9 kB / 0.5154 GB, free: 90.06 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/3.353, allocations: 3.938 kB / 0.5154 GB, free: 90.05 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)