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.0007522/0.0007522, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.003866/0.003866, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.487/1.487, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0535/0.0535, allocations: 10.76 MB / 281.5 MB, free: 10.44 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.0005098/0.0005098, allocations: 24.25 kB / 342.3 MB, free: 23.39 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1077, allocations: 50 MB / 392.3 MB, free: 5.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.002739/0.1105, allocations: 2.045 MB / 394.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.1127, allocations: 1.419 MB / 395.8 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.1129, allocations: 11.88 kB / 395.8 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006555/0.1135, allocations: 191.4 kB / 396 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.1139, allocations: 143.4 kB / 396.1 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000731/0.1146, allocations: 347.4 kB / 396.5 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005435/0.1151, allocations: 0.5584 MB / 397 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.1153, allocations: 85.33 kB / 397.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.1156, allocations: 195.1 kB / 397.3 MB, free: 324 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.1158, allocations: 227 kB / 397.5 MB, free: 96 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.406e-05/0.1159, allocations: 16 kB / 397.5 MB, free: 80 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.1161, allocations: 123.9 kB / 397.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.1163, allocations: 123.6 kB / 397.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.1165, allocations: 220.2 kB / 398 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005205/0.117, allocations: 0.5176 MB / 398.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1171, allocations: 0 / 398.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1171, allocations: 0 / 398.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1171, allocations: 0 / 398.5 MB, free: 15.09 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.001262/0.1183, allocations: 0.7984 MB / 399.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.1184, allocations: 8.031 kB / 399.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.484e-05/0.1185, allocations: 70.72 kB / 399.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.233e-05/0.1186, allocations: 60.19 kB / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.1191, allocations: 438.4 kB / 399.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.1192, allocations: 21.03 kB / 399.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.795e-05/0.1193, allocations: 43.84 kB / 399.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006695/0.1199, allocations: 436.3 kB / 400.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.12, allocations: 3.984 kB / 400.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.977e-05/0.12, allocations: 16 kB / 400.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.12, allocations: 12 kB / 400.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005353/0.1206, allocations: 318.4 kB / 400.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.1227, allocations: 1.567 MB / 402.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000427/0.1232, allocations: 235 kB / 402.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.1234, allocations: 157.2 kB / 402.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.1235, allocations: 4.266 kB / 402.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003831/0.1238, allocations: 251.2 kB / 402.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.126e-06/0.1239, allocations: 3.984 kB / 402.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009698/0.1248, allocations: 0.5559 MB / 403.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.559e-05/0.1249, allocations: 106.8 kB / 403.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005632/0.1255, allocations: 0.5175 MB / 404.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.022e-05/0.1256, allocations: 41.64 kB / 404.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.1258, allocations: 267.9 kB / 404.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.198e-05/0.1259, allocations: 118.4 kB / 404.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.981e-05/0.126, allocations: 53.69 kB / 404.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1261, allocations: 366.8 kB / 404.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.1264, allocations: 144.9 kB / 405.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.1267, allocations: 282.2 kB / 405.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.1285, allocations: 0.9216 MB / 406.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1285, allocations: 4 kB / 406.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008999/0.1294, allocations: 0.6091 MB / 406.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.1295, allocations: 41.69 kB / 406.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.1295, allocations: 7.938 kB / 406.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.1295, allocations: 8 kB / 406.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004211/0.1299, allocations: 111.8 kB / 407 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.13, allocations: 7.938 kB / 407.1 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.1302, allocations: 67.67 kB / 407.1 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.684e-05/0.1302, allocations: 20 kB / 407.1 MB, free: 6.008 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.0003206/0.1306, allocations: 261.2 kB / 407.4 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-05/0.1306, allocations: 51.34 kB / 407.4 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008125/0.1315, allocations: 495.9 kB / 407.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1315, allocations: 4 kB / 407.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1315, allocations: 4 kB / 407.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.1315, allocations: 3.984 kB / 407.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004509/0.132, allocations: 449 kB / 408.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.132, allocations: 4 kB / 408.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.1324, allocations: 67.89 kB / 408.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1324, allocations: 7.984 kB / 408.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.918e-05/0.1324, allocations: 19.92 kB / 408.5 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1324, allocations: 0 / 408.5 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1324, allocations: 0 / 408.5 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.1334, allocations: 0.6751 MB / 409.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.583e-05/0.1335, allocations: 128.4 kB / 409.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.515e-05/0.1336, allocations: 27.92 kB / 409.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.1338, allocations: 15.92 kB / 409.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.131e-05/0.1339, allocations: 27.97 kB / 409.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.1339, allocations: 15.98 kB / 409.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003713/0.1343, allocations: 358.8 kB / 409.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1343, allocations: 4 kB / 409.7 MB, free: 3.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004273/0.1347, allocations: 119.9 kB / 409.8 MB, free: 3.184 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.002281/0.137, allocations: 1.563 MB / 411.4 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007272/0.1378, allocations: 495 kB / 411.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1378, allocations: 0 / 411.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003301/0.1381, allocations: 256.5 kB / 412.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.1385, allocations: 77.86 kB / 412.2 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005848/0.1444, allocations: 4.92 MB / 417.1 MB, free: 11.74 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.1449, allocations: 0.8742 MB / 418 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002606/0.1452, allocations: 103.4 kB / 418.1 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.1454, allocations: 175.4 kB / 418.3 MB, free: 10.57 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1454, allocations: 0 / 418.3 MB, free: 10.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6311/0.7765, allocations: 9.576 MB / 427.8 MB, free: 1.039 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003254/0.7769, allocations: 269.7 kB / 428.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.139/2.916, allocations: 0 / 428.1 MB, free: 0.6797 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)