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.001196/0.001195, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 198.2 kB / 16.53 MB, free: 6.391 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.459/1.459, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05873/0.05873, allocations: 10.75 MB / 280.5 MB, free: 10.51 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.001524/0.001524, allocations: 71.89 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09726/0.09879, allocations: 49.02 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003935/0.1028, allocations: 2.358 MB / 392 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.1049, allocations: 1.318 MB / 393.3 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.1051, allocations: 15.88 kB / 393.4 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006375/0.1057, allocations: 219 kB / 393.6 MB, free: 2.211 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003785/0.1061, allocations: 159.2 kB / 393.7 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.1069, allocations: 351.2 kB / 394.1 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005361/0.1075, allocations: 0.542 MB / 394.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.1076, allocations: 81.28 kB / 394.7 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.1079, allocations: 199.2 kB / 394.9 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.1082, allocations: 219.1 kB / 395.1 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-05/0.1082, allocations: 28 kB / 395.1 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002457/0.1085, allocations: 147.8 kB / 395.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.1086, allocations: 123.6 kB / 395.4 MB, free: 388 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.1088, allocations: 194.7 kB / 395.6 MB, free: 192 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005432/0.1094, allocations: 0.4906 MB / 396.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1094, allocations: 0 / 396.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1094, allocations: 0 / 396.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1094, allocations: 0 / 396.1 MB, free: 15.69 MB / 302.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.001248/0.1107, allocations: 0.8337 MB / 396.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1107, allocations: 11.89 kB / 396.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.71e-05/0.1108, allocations: 66.73 kB / 397 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.146e-05/0.1109, allocations: 52.28 kB / 397 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005325/0.1114, allocations: 414.4 kB / 397.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.1115, allocations: 24.94 kB / 397.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.1115, allocations: 39.84 kB / 397.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.1121, allocations: 379.6 kB / 397.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.1121, allocations: 3.938 kB / 397.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/0.1122, allocations: 12 kB / 397.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.1122, allocations: 8 kB / 397.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004959/0.1127, allocations: 262 kB / 398.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.1145, allocations: 1.383 MB / 399.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.115, allocations: 206.5 kB / 399.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002111/0.1153, allocations: 128.8 kB / 399.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.1153, allocations: 4 kB / 399.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003591/0.1157, allocations: 210.9 kB / 400.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.753e-06/0.1157, allocations: 0 / 400.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009073/0.1166, allocations: 489.1 kB / 400.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.729e-05/0.1167, allocations: 110.8 kB / 400.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.1172, allocations: 489.8 kB / 401.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1173, allocations: 29.7 kB / 401.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001958/0.1175, allocations: 256.1 kB / 401.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/0.1176, allocations: 94.73 kB / 401.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.1177, allocations: 77.59 kB / 401.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1179, allocations: 358.8 kB / 401.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.1181, allocations: 120.4 kB / 402 MB, free: 9.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.1184, allocations: 228 kB / 402.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/0.1199, allocations: 0.7131 MB / 403 MB, free: 8.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1199, allocations: 0 / 403 MB, free: 8.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007569/0.1207, allocations: 0.4942 MB / 403.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.216e-05/0.1207, allocations: 48.44 kB / 403.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1208, allocations: 4 kB / 403.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.1208, allocations: 4 kB / 403.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.1211, allocations: 75.91 kB / 403.6 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.1211, allocations: 11.98 kB / 403.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.1213, allocations: 47.98 kB / 403.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.1213, allocations: 16 kB / 403.7 MB, free: 7.633 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.0002712/0.1216, allocations: 244.2 kB / 403.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.305e-05/0.1217, allocations: 51.31 kB / 404 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007272/0.1224, allocations: 435.8 kB / 404.4 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1224, allocations: 4 kB / 404.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.1224, allocations: 0 / 404.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.1224, allocations: 3.984 kB / 404.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004245/0.1229, allocations: 409.2 kB / 404.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1229, allocations: 0 / 404.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/0.1232, allocations: 59.84 kB / 404.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1232, allocations: 0 / 404.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.1232, allocations: 12 kB / 404.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1232, allocations: 0 / 404.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1232, allocations: 0 / 404.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009548/0.1242, allocations: 0.5927 MB / 405.5 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.469e-05/0.1243, allocations: 120.5 kB / 405.6 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.469e-05/0.1244, allocations: 24.05 kB / 405.6 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.1245, allocations: 15.98 kB / 405.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.823e-05/0.1246, allocations: 19.92 kB / 405.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.1246, allocations: 11.98 kB / 405.7 MB, free: 5.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003512/0.125, allocations: 339.1 kB / 406 MB, free: 5.207 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.125, allocations: 7.938 kB / 406 MB, free: 5.199 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003784/0.1254, allocations: 103.8 kB / 406.1 MB, free: 5.098 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.002079/0.1275, allocations: 1.451 MB / 407.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007144/0.1282, allocations: 439.8 kB / 408 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1282, allocations: 0 / 408 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002963/0.1285, allocations: 219.2 kB / 408.2 MB, free: 3.051 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.1289, allocations: 84.98 kB / 408.3 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004751/0.1337, allocations: 4.114 MB / 412.4 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.1341, allocations: 0.8536 MB / 413.2 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002234/0.1344, allocations: 75.22 kB / 413.3 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/0.1346, allocations: 159.4 kB / 413.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1346, allocations: 0 / 413.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03146/0.166, allocations: 9.171 MB / 422.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/7.919, allocations: 11.81 kB / 422.6 MB, free: 4.398 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)