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.001054/0.001054, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001426/0.001426, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.572/1.572, allocations: 205.1 MB / 222.1 MB, free: 4.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05538/0.05538, allocations: 10.73 MB / 280.2 MB, free: 10.68 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.002265/0.002265, allocations: 71.84 kB / 340.1 MB, free: 23.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1057, allocations: 49.01 MB / 389.2 MB, free: 6.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.003486/0.1092, allocations: 2.403 MB / 391.6 MB, free: 4.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.1112, allocations: 1.404 MB / 393 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.1113, allocations: 11.88 kB / 393 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005417/0.1119, allocations: 195.4 kB / 393.2 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003023/0.1122, allocations: 147.5 kB / 393.3 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000702/0.1129, allocations: 367.4 kB / 393.7 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005146/0.1134, allocations: 0.5809 MB / 394.2 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.1136, allocations: 73.34 kB / 394.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.1138, allocations: 215.2 kB / 394.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.1141, allocations: 243 kB / 394.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.779e-05/0.1141, allocations: 28 kB / 394.8 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.1143, allocations: 147.9 kB / 394.9 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.1145, allocations: 139.5 kB / 395.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.1146, allocations: 194.7 kB / 395.3 MB, free: 352 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004746/0.1151, allocations: 0.5061 MB / 395.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1151, allocations: 0 / 395.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1151, allocations: 0 / 395.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1152, allocations: 0 / 395.8 MB, free: 15.84 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.001166/0.1163, allocations: 0.8528 MB / 396.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1164, allocations: 15.89 kB / 396.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.358e-05/0.1164, allocations: 62.72 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.309e-05/0.1165, allocations: 56.28 kB / 396.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.117, allocations: 418.3 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.086e-05/0.1171, allocations: 84.28 kB / 397.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.468e-05/0.1172, allocations: 35.91 kB / 397.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006036/0.1178, allocations: 395.5 kB / 397.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1178, allocations: 0 / 397.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.258e-05/0.1178, allocations: 16 kB / 397.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.1179, allocations: 12 kB / 397.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004602/0.1183, allocations: 266 kB / 398 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.1203, allocations: 1.457 MB / 399.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004269/0.1207, allocations: 198.5 kB / 399.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.1209, allocations: 128.9 kB / 399.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.121, allocations: 4 kB / 399.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003294/0.1213, allocations: 225.7 kB / 400 MB, free: 11.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.653e-06/0.1213, allocations: 4 kB / 400 MB, free: 11.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007921/0.1221, allocations: 490.2 kB / 400.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.1222, allocations: 114.8 kB / 400.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004573/0.1227, allocations: 489.7 kB / 401 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.1227, allocations: 33.7 kB / 401.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.1229, allocations: 252.1 kB / 401.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.323e-05/0.123, allocations: 86.8 kB / 401.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.788e-05/0.1231, allocations: 82.02 kB / 401.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1232, allocations: 362.8 kB / 401.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.1234, allocations: 116.7 kB / 401.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.1237, allocations: 236.9 kB / 402.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.1251, allocations: 0.7404 MB / 402.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1251, allocations: 4 kB / 402.9 MB, free: 8.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007162/0.1258, allocations: 0.5023 MB / 403.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.1259, allocations: 41.69 kB / 403.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1259, allocations: 4 kB / 403.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1259, allocations: 7.938 kB / 403.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005445/0.1264, allocations: 99.81 kB / 403.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.1265, allocations: 8 kB / 403.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.1267, allocations: 39.67 kB / 403.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.1267, allocations: 16 kB / 403.6 MB, free: 7.516 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.0002526/0.127, allocations: 248.2 kB / 403.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.127, allocations: 43.44 kB / 403.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007094/0.1277, allocations: 452.3 kB / 404.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1277, allocations: 7.922 kB / 404.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1278, allocations: 0 / 404.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1278, allocations: 7.984 kB / 404.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003733/0.1281, allocations: 421.2 kB / 404.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1282, allocations: 0 / 404.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006944/0.1289, allocations: 67.89 kB / 404.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1289, allocations: 4 kB / 404.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.1289, allocations: 19.92 kB / 404.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1289, allocations: 0 / 404.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1289, allocations: 0 / 404.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008985/0.1298, allocations: 0.5877 MB / 405.5 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-05/0.1299, allocations: 128.4 kB / 405.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.384e-05/0.13, allocations: 16 kB / 405.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.1302, allocations: 15.98 kB / 405.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.815e-05/0.1302, allocations: 19.97 kB / 405.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.1303, allocations: 8 kB / 405.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003395/0.1306, allocations: 343 kB / 406 MB, free: 5.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1306, allocations: 0 / 406 MB, free: 5.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003562/0.131, allocations: 103.8 kB / 406.1 MB, free: 4.945 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.002112/0.1331, allocations: 1.49 MB / 407.6 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007239/0.1338, allocations: 440 kB / 408 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1339, allocations: 0 / 408 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002981/0.1342, allocations: 231.1 kB / 408.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.1346, allocations: 81.83 kB / 408.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004999/0.1396, allocations: 4.335 MB / 412.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.1401, allocations: 0.8535 MB / 413.5 MB, free: 13.37 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002258/0.1403, allocations: 83.09 kB / 413.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/0.1405, allocations: 159.4 kB / 413.7 MB, free: 13.13 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1405, allocations: 0 / 413.7 MB, free: 13.13 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.1617, allocations: 9.13 MB / 422.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002104/0.162, allocations: 270.5 kB / 423.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.991/2.153, allocations: 4 kB / 423.1 MB, free: 3.672 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)