Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_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.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_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.001553/0.001553, 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.001832/0.001832, allocations: 191 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.486/1.486, 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.05973/0.05973, allocations: 10.74 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.001805/0.001805, allocations: 75.83 kB / 340.7 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.1002, allocations: 49 MB / 389.7 MB, free: 6.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004804/0.1051, allocations: 2.362 MB / 392 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002975/0.1081, allocations: 1.419 MB / 393.4 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006059/0.1088, allocations: 11.88 kB / 393.4 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.1098, allocations: 223 kB / 393.7 MB, free: 2.109 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.0006704/0.1105, allocations: 163.2 kB / 393.8 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.1119, allocations: 395.1 kB / 394.2 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.113, allocations: 0.5694 MB / 394.8 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002775/0.1133, allocations: 73.36 kB / 394.8 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004152/0.1137, allocations: 219.2 kB / 395.1 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004437/0.1142, allocations: 235 kB / 395.3 MB, free: 480 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.1143, allocations: 32 kB / 395.3 MB, free: 448 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003782/0.1147, allocations: 147.9 kB / 395.5 MB, free: 300 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.1149, allocations: 131.5 kB / 395.6 MB, free: 168 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003397/0.1152, allocations: 202.8 kB / 395.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008532/0.1161, allocations: 0.4944 MB / 396.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.1161, allocations: 4 kB / 396.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1161, allocations: 0 / 396.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.616e-05/0.1162, allocations: 0 / 396.3 MB, free: 15.46 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.00276/0.1189, allocations: 0.8455 MB / 397.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.165e-05/0.119, allocations: 15.89 kB / 397.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001565/0.1192, allocations: 66.72 kB / 397.2 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002166/0.1194, allocations: 60.22 kB / 397.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008014/0.1202, allocations: 418.3 kB / 397.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.1203, allocations: 80.28 kB / 397.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.471e-05/0.1204, allocations: 31.91 kB / 397.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008388/0.1213, allocations: 399.6 kB / 398.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.651e-05/0.1213, allocations: 3.984 kB / 398.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.1214, allocations: 12 kB / 398.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.1214, allocations: 8 kB / 398.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005736/0.122, allocations: 270 kB / 398.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.1248, allocations: 1.461 MB / 399.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006053/0.1254, allocations: 206.4 kB / 400.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.1257, allocations: 124.8 kB / 400.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.1257, allocations: 11.92 kB / 400.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004081/0.1261, allocations: 215 kB / 400.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.715e-06/0.1261, allocations: 0 / 400.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001051/0.1272, allocations: 497.1 kB / 401 MB, free: 10.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.593e-05/0.1273, allocations: 110.8 kB / 401.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006646/0.128, allocations: 493.7 kB / 401.6 MB, free: 9.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/0.128, allocations: 29.7 kB / 401.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.1283, allocations: 252.1 kB / 401.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.1284, allocations: 90.8 kB / 401.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.1286, allocations: 78.02 kB / 402 MB, free: 9.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.1288, allocations: 362.8 kB / 402.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.1291, allocations: 120.7 kB / 402.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.1294, allocations: 236.9 kB / 402.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.1311, allocations: 0.7404 MB / 403.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1311, allocations: 4 kB / 403.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008922/0.132, allocations: 0.502 MB / 403.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.236e-05/0.1321, allocations: 33.7 kB / 404 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1321, allocations: 8.391 kB / 404 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.1321, allocations: 15.94 kB / 404 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.1327, allocations: 91.83 kB / 404.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.1327, allocations: 8 kB / 404.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.133, allocations: 39.67 kB / 404.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.41e-05/0.133, allocations: 16 kB / 404.2 MB, free: 7.145 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 (45): * Single equations (assignments): 44 * 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.000429/0.1335, allocations: 260 kB / 404.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.857e-05/0.1336, allocations: 47.44 kB / 404.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008631/0.1344, allocations: 435.8 kB / 404.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1345, allocations: 7.984 kB / 404.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.1345, allocations: 7.984 kB / 404.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.1345, allocations: 0 / 404.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005673/0.1351, allocations: 425.2 kB / 405.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1351, allocations: 0 / 405.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006063/0.1357, allocations: 67.89 kB / 405.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.111e-06/0.1357, allocations: 0 / 405.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.715e-05/0.1358, allocations: 19.92 kB / 405.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.1358, allocations: 4 kB / 405.4 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1358, allocations: 4 kB / 405.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.1369, allocations: 0.5994 MB / 406 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.137, allocations: 120.4 kB / 406.1 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.176e-05/0.1371, allocations: 12 kB / 406.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.1372, allocations: 15.98 kB / 406.1 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.966e-05/0.1373, allocations: 27.91 kB / 406.2 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.344e-05/0.1374, allocations: 11.98 kB / 406.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004109/0.1378, allocations: 339.1 kB / 406.5 MB, free: 4.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1378, allocations: 0 / 406.5 MB, free: 4.656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000426/0.1382, allocations: 103.8 kB / 406.6 MB, free: 4.555 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,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 (24): * Single equations (assignments): 21 * 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.002245/0.1405, allocations: 1.483 MB / 408.1 MB, free: 3.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007985/0.1413, allocations: 431 kB / 408.5 MB, free: 2.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.1413, allocations: 0.8125 kB / 408.5 MB, free: 2.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003245/0.1417, allocations: 231.1 kB / 408.7 MB, free: 2.473 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.1421, allocations: 82.31 kB / 408.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005636/0.1478, allocations: 4.211 MB / 413 MB, free: 14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.1483, allocations: 0.8534 MB / 413.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002483/0.1486, allocations: 83.16 kB / 414 MB, free: 13.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.1488, allocations: 159.4 kB / 414.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1488, allocations: 0 / 414.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03212/0.181, allocations: 9.295 MB / 423.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/7.902, allocations: 7.953 kB / 423.4 MB, free: 3.59 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)