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.001065/0.001065, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001065/0.001065, allocations: 193.1 kB / 16.14 MB, free: 6.707 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.5/1.5, allocations: 205.1 MB / 222 MB, free: 5.02 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05484/0.05484, allocations: 10.74 MB / 280.1 MB, free: 10.95 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.001343/0.001343, allocations: 63.91 kB / 339.9 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.0978, allocations: 49.03 MB / 389 MB, free: 6.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003843/0.1017, allocations: 2.403 MB / 391.4 MB, free: 4.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.1039, allocations: 1.33 MB / 392.7 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.1041, allocations: 11.88 kB / 392.7 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007159/0.1048, allocations: 191.4 kB / 392.9 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003007/0.1051, allocations: 139.5 kB / 393 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007369/0.1059, allocations: 315.4 kB / 393.4 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006055/0.1065, allocations: 0.5146 MB / 393.9 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.1067, allocations: 69.34 kB / 393.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.1069, allocations: 179.2 kB / 394.1 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.1072, allocations: 215 kB / 394.3 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.036e-05/0.1073, allocations: 20 kB / 394.3 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.1075, allocations: 131.8 kB / 394.5 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1076, allocations: 111.6 kB / 394.6 MB, free: 1 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.1078, allocations: 182.7 kB / 394.8 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004691/0.1083, allocations: 482.3 kB / 395.2 MB, free: 356 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1083, allocations: 0 / 395.2 MB, free: 356 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.1083, allocations: 0 / 395.2 MB, free: 356 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.1083, allocations: 0 / 395.2 MB, free: 356 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.001341/0.1097, allocations: 0.8372 MB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.1097, allocations: 12.03 kB / 396.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.982e-05/0.1098, allocations: 66.72 kB / 396.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.1099, allocations: 56.28 kB / 396.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005238/0.1105, allocations: 410.3 kB / 396.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.1105, allocations: 28.92 kB / 396.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.1106, allocations: 31.94 kB / 396.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.1112, allocations: 379.6 kB / 397 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1112, allocations: 7.906 kB / 397 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.1112, allocations: 15.94 kB / 397 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1113, allocations: 4 kB / 397.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004526/0.1117, allocations: 266 kB / 397.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.1137, allocations: 1.387 MB / 398.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004956/0.1142, allocations: 206.5 kB / 398.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.1144, allocations: 128.8 kB / 399 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.1144, allocations: 0 / 399 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003529/0.1148, allocations: 217.7 kB / 399.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.1148, allocations: 0 / 399.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009249/0.1157, allocations: 481.1 kB / 399.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/0.1158, allocations: 110.8 kB / 399.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004783/0.1163, allocations: 493.7 kB / 400.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.1163, allocations: 33.7 kB / 400.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.1165, allocations: 244.2 kB / 400.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.131e-05/0.1166, allocations: 98.73 kB / 400.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1167, allocations: 77.59 kB / 400.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1169, allocations: 358.8 kB / 401.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.1171, allocations: 108.4 kB / 401.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.1174, allocations: 236 kB / 401.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/0.1188, allocations: 0.7246 MB / 402.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1188, allocations: 0 / 402.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007385/0.1196, allocations: 0.4911 MB / 402.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.1196, allocations: 41.73 kB / 402.7 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1197, allocations: 4 kB / 402.7 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1197, allocations: 4 kB / 402.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/0.12, allocations: 83.83 kB / 402.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.12, allocations: 4 kB / 402.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.1202, allocations: 43.58 kB / 402.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.1202, allocations: 20 kB / 402.8 MB, free: 8.281 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.0003016/0.1205, allocations: 244.2 kB / 403.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.718e-05/0.1206, allocations: 55.31 kB / 403.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007145/0.1213, allocations: 436.1 kB / 403.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1213, allocations: 0 / 403.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1214, allocations: 0 / 403.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1214, allocations: 4 kB / 403.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004032/0.1218, allocations: 409.1 kB / 404 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1218, allocations: 0 / 404 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.122, allocations: 59.84 kB / 404 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1221, allocations: 0 / 404 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.1221, allocations: 11.98 kB / 404 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.1221, allocations: 4 kB / 404 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1221, allocations: 4 kB / 404 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008989/0.123, allocations: 0.5769 MB / 404.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.344e-05/0.1231, allocations: 128.5 kB / 404.7 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.076e-05/0.1232, allocations: 8 kB / 404.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.1233, allocations: 19.92 kB / 404.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-05/0.1234, allocations: 27.84 kB / 404.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.533e-05/0.1235, allocations: 20.11 kB / 404.8 MB, free: 6.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004326/0.1239, allocations: 339.1 kB / 405.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1239, allocations: 0 / 405.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003901/0.1243, allocations: 107.8 kB / 405.3 MB, free: 5.75 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.002189/0.1265, allocations: 1.465 MB / 406.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006732/0.1272, allocations: 411.3 kB / 407.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1272, allocations: 0.8125 kB / 407.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.1275, allocations: 227.2 kB / 407.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.1279, allocations: 69.94 kB / 407.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.1329, allocations: 4.232 MB / 411.6 MB, free: 15.22 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.1334, allocations: 0.8458 MB / 412.5 MB, free: 14.35 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000202/0.1336, allocations: 71.23 kB / 412.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002149/0.1338, allocations: 163.4 kB / 412.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1338, allocations: 0 / 412.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.1552, allocations: 8.792 MB / 421.5 MB, free: 5.363 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003154/0.1555, allocations: 274.4 kB / 421.8 MB, free: 5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.076/2.231, allocations: 0 / 421.8 MB, free: 5 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)