Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 107.3 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 189.3 kB / 16.25 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.1 MB / 222.1 MB, free: 4.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05528/0.05528, allocations: 10.74 MB / 280.2 MB, free: 10.64 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 71.83 kB / 340.1 MB, free: 23.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09783, allocations: 49 MB / 389.1 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004115/0.102, allocations: 2.403 MB / 391.6 MB, free: 4.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00221/0.1042, allocations: 1.298 MB / 392.9 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.1044, allocations: 15.88 kB / 392.9 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007631/0.1053, allocations: 199.4 kB / 393.1 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003767/0.1056, allocations: 143.5 kB / 393.2 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00096/0.1066, allocations: 323.4 kB / 393.5 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007219/0.1073, allocations: 0.542 MB / 394.1 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/0.1076, allocations: 81.34 kB / 394.1 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003366/0.1079, allocations: 207.2 kB / 394.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003177/0.1082, allocations: 223 kB / 394.6 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.674e-05/0.1083, allocations: 28 kB / 394.6 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.1086, allocations: 143.8 kB / 394.7 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001594/0.1088, allocations: 131.6 kB / 394.9 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001913/0.109, allocations: 190.7 kB / 395 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006969/0.1097, allocations: 0.4944 MB / 395.5 MB, free: 76 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1097, allocations: 0 / 395.5 MB, free: 76 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1097, allocations: 0 / 395.5 MB, free: 76 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1097, allocations: 0 / 395.5 MB, free: 76 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001635/0.1114, allocations: 0.8338 MB / 396.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/0.1114, allocations: 15.89 kB / 396.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.1115, allocations: 62.73 kB / 396.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.1117, allocations: 52.28 kB / 396.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005876/0.1123, allocations: 418.4 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.1123, allocations: 20.94 kB / 396.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.827e-05/0.1124, allocations: 35.92 kB / 397 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006281/0.113, allocations: 379.6 kB / 397.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.113, allocations: 7.906 kB / 397.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.1131, allocations: 15.94 kB / 397.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.1131, allocations: 8 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004626/0.1136, allocations: 254 kB / 397.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/0.1157, allocations: 1.391 MB / 399 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.1163, allocations: 206.5 kB / 399.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.1165, allocations: 116.8 kB / 399.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.1166, allocations: 7.984 kB / 399.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003753/0.1169, allocations: 221.7 kB / 399.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.174e-06/0.117, allocations: 0 / 399.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008755/0.1178, allocations: 481.1 kB / 400 MB, free: 11.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.299e-05/0.1179, allocations: 114.8 kB / 400.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005288/0.1185, allocations: 493.7 kB / 400.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.1185, allocations: 33.7 kB / 400.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.1187, allocations: 240.2 kB / 400.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.396e-05/0.1188, allocations: 98.72 kB / 401 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.1189, allocations: 77.61 kB / 401 MB, free: 10.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1191, allocations: 358.8 kB / 401.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.1193, allocations: 112.4 kB / 401.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.1196, allocations: 236 kB / 401.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.1211, allocations: 0.7092 MB / 402.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1211, allocations: 4 kB / 402.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007784/0.1219, allocations: 499 kB / 402.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.122, allocations: 45.72 kB / 403 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.122, allocations: 0 / 403 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.122, allocations: 8 kB / 403 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002993/0.1223, allocations: 79.84 kB / 403.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.1223, allocations: 11.98 kB / 403.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.1225, allocations: 43.58 kB / 403.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.1226, allocations: 16 kB / 403.1 MB, free: 8.02 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,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 (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002886/0.1229, allocations: 256.2 kB / 403.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.09e-05/0.1229, allocations: 51.38 kB / 403.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007007/0.1236, allocations: 432.1 kB / 403.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.1237, allocations: 4 kB / 403.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1237, allocations: 0 / 403.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.1237, allocations: 3.984 kB / 403.9 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003969/0.1241, allocations: 417.1 kB / 404.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1241, allocations: 0 / 404.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002616/0.1244, allocations: 51.84 kB / 404.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1244, allocations: 4 kB / 404.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.1244, allocations: 8 kB / 404.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1244, allocations: 0 / 404.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1244, allocations: 0 / 404.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008781/0.1253, allocations: 0.5886 MB / 404.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.994e-05/0.1254, allocations: 128.5 kB / 405.1 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.086e-05/0.1255, allocations: 11.98 kB / 405.1 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.1256, allocations: 15.92 kB / 405.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.768e-05/0.1257, allocations: 23.86 kB / 405.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.1257, allocations: 15.98 kB / 405.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003335/0.1261, allocations: 343.1 kB / 405.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1261, allocations: 0 / 405.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003789/0.1265, allocations: 111.8 kB / 405.6 MB, free: 5.477 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001998/0.1285, allocations: 1.462 MB / 407 MB, free: 4.086 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006493/0.1291, allocations: 427.2 kB / 407.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1291, allocations: 0 / 407.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002816/0.1294, allocations: 236 kB / 407.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/0.1298, allocations: 86.2 kB / 407.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004699/0.1345, allocations: 4.222 MB / 412 MB, free: 14.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.1349, allocations: 0.8574 MB / 412.8 MB, free: 14.04 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.1351, allocations: 71.23 kB / 412.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/0.1353, allocations: 159.4 kB / 413.1 MB, free: 13.82 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1354, allocations: 0 / 413.1 MB, free: 13.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03954/0.1749, allocations: 9.023 MB / 422.1 MB, free: 4.84 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.1752, allocations: 270.8 kB / 422.3 MB, free: 4.48 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.141, allocations: 3.938 kB / 422.4 MB, free: 4.477 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)