Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_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.001155/0.001155, allocations: 108 kB / 15.61 MB, free: 152 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.001303/0.001303, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.543/1.543, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05988/0.05988, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001397/0.001397, allocations: 75.88 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09044/0.09185, allocations: 49 MB / 389.6 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.004056/0.09597, allocations: 2.369 MB / 392 MB, free: 3.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.09845, allocations: 1.427 MB / 393.4 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002541/0.09873, allocations: 11.88 kB / 393.5 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007062/0.09947, allocations: 227 kB / 393.7 MB, free: 2.102 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.000498/0.09998, allocations: 155.3 kB / 393.8 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.101, allocations: 403.1 kB / 394.2 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006887/0.1017, allocations: 0.5936 MB / 394.8 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.1019, allocations: 85.34 kB / 394.9 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003717/0.1023, allocations: 223.2 kB / 395.1 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.1027, allocations: 243 kB / 395.4 MB, free: 420 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.94e-05/0.1028, allocations: 32 kB / 395.4 MB, free: 388 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002756/0.1031, allocations: 147.9 kB / 395.5 MB, free: 240 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.1033, allocations: 143.6 kB / 395.7 MB, free: 96 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002608/0.1035, allocations: 218.5 kB / 395.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000703/0.1042, allocations: 0.5295 MB / 396.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1043, allocations: 0 / 396.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1043, allocations: 0 / 396.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.1043, allocations: 0 / 396.4 MB, free: 15.35 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00175/0.106, allocations: 0.8807 MB / 397.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.1061, allocations: 19.88 kB / 397.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.984e-05/0.1062, allocations: 74.66 kB / 397.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.1064, allocations: 60.19 kB / 397.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000716/0.1071, allocations: 434.3 kB / 397.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.788e-05/0.1071, allocations: 21.03 kB / 397.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.767e-05/0.1072, allocations: 43.92 kB / 397.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007787/0.108, allocations: 440.3 kB / 398.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.071e-05/0.108, allocations: 3.906 kB / 398.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.1081, allocations: 16 kB / 398.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1081, allocations: 8 kB / 398.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006102/0.1087, allocations: 322.3 kB / 398.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.1113, allocations: 1.552 MB / 400.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.1118, allocations: 236.1 kB / 400.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002793/0.1121, allocations: 149.3 kB / 400.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.1121, allocations: 4.234 kB / 400.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004334/0.1125, allocations: 247.2 kB / 400.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.1126, allocations: 4 kB / 400.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001149/0.1137, allocations: 0.5519 MB / 401.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.15e-05/0.1138, allocations: 114.8 kB / 401.5 MB, free: 9.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006102/0.1144, allocations: 0.5097 MB / 402.1 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.311e-05/0.1145, allocations: 33.7 kB / 402.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.1147, allocations: 263.9 kB / 402.3 MB, free: 9.117 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.507e-05/0.1148, allocations: 118.4 kB / 402.5 MB, free: 9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.1149, allocations: 106 kB / 402.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1151, allocations: 362.7 kB / 402.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/0.1154, allocations: 144.9 kB / 403.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.1157, allocations: 290.2 kB / 403.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002122/0.1178, allocations: 0.8944 MB / 404.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.1179, allocations: 0 / 404.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001088/0.119, allocations: 0.6088 MB / 404.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.777e-05/0.119, allocations: 49.28 kB / 404.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.1191, allocations: 11.94 kB / 404.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.1191, allocations: 12 kB / 404.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.1196, allocations: 107.8 kB / 405 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.721e-05/0.1196, allocations: 7.938 kB / 405 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/0.1199, allocations: 63.41 kB / 405.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-05/0.12, allocations: 24 kB / 405.1 MB, free: 6.168 MB / 302.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (59): * Single equations (assignments): 58 * 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.000398/0.1204, allocations: 257.3 kB / 405.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-05/0.1205, allocations: 55.33 kB / 405.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009276/0.1214, allocations: 495.9 kB / 405.9 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1214, allocations: 4 kB / 405.9 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1214, allocations: 0 / 405.9 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.1214, allocations: 3.984 kB / 405.9 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004817/0.1219, allocations: 449 kB / 406.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1219, allocations: 3.938 kB / 406.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/0.1224, allocations: 71.89 kB / 406.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.1224, allocations: 4 kB / 406.4 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/0.1224, allocations: 19.92 kB / 406.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1224, allocations: 0 / 406.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1224, allocations: 0 / 406.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1235, allocations: 0.6673 MB / 407.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.1236, allocations: 128.4 kB / 407.2 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.218e-05/0.1237, allocations: 19.92 kB / 407.3 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.1239, allocations: 23.98 kB / 407.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.023e-05/0.124, allocations: 19.97 kB / 407.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.455e-05/0.1241, allocations: 15.94 kB / 407.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004623/0.1245, allocations: 366.8 kB / 407.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1246, allocations: 0 / 407.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004878/0.125, allocations: 115.8 kB / 407.8 MB, free: 3.367 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],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 (30): * Single equations (assignments): 27 * 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.002337/0.1274, allocations: 1.543 MB / 409.3 MB, free: 1.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009132/0.1283, allocations: 0.5153 MB / 409.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1283, allocations: 0 / 409.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.1287, allocations: 259.2 kB / 410.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.1292, allocations: 81.2 kB / 410.2 MB, free: 1.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006111/0.1353, allocations: 4.753 MB / 414.9 MB, free: 12.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/0.1358, allocations: 0.878 MB / 415.8 MB, free: 11.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002991/0.1361, allocations: 95.39 kB / 415.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.1363, allocations: 175.4 kB / 416.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1363, allocations: 0 / 416.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02972/0.166, allocations: 10.19 MB / 426.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/7.855, allocations: 11.81 kB / 426.3 MB, free: 0.7148 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)