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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.004828/0.004828, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001256/0.001256, allocations: 195.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06526/0.06526, allocations: 11.21 MB / 301.7 MB, free: 4.043 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 67.33 kB / 417.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08974/0.09155, allocations: 51.98 MB / 469.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004354/0.09596, allocations: 2.457 MB / 471.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002776/0.09877, allocations: 1.532 MB / 473.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.09901, allocations: 15.88 kB / 473.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007237/0.09978, allocations: 222.9 kB / 473.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000393/0.1002, allocations: 163.2 kB / 473.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1012, allocations: 458.5 kB / 474.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006963/0.102, allocations: 0.6171 MB / 474.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.1022, allocations: 81.08 kB / 474.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.1025, allocations: 231.1 kB / 475.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.1028, allocations: 247 kB / 475.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.253e-05/0.1029, allocations: 32 kB / 475.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002794/0.1032, allocations: 151.8 kB / 475.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.1034, allocations: 143.6 kB / 475.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002225/0.1036, allocations: 218.5 kB / 475.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006866/0.1043, allocations: 0.5448 MB / 476.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1043, allocations: 0 / 476.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1043, allocations: 0 / 476.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1043, allocations: 0 / 476.4 MB, free: 7.98 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001465/0.1058, allocations: 0.9072 MB / 477.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.1059, allocations: 11.89 kB / 477.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.472e-05/0.1059, allocations: 70.72 kB / 477.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.1061, allocations: 64.56 kB / 477.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006331/0.1067, allocations: 466.7 kB / 477.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.663e-05/0.1068, allocations: 88.31 kB / 478 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.661e-05/0.1069, allocations: 39.95 kB / 478 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007366/0.1076, allocations: 450 kB / 478.5 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.1076, allocations: 7.984 kB / 478.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.1077, allocations: 12 kB / 478.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1077, allocations: 8 kB / 478.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005486/0.1082, allocations: 290 kB / 478.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.1107, allocations: 1.853 MB / 480.6 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004953/0.1112, allocations: 202.5 kB / 480.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.1115, allocations: 125.1 kB / 481 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.1115, allocations: 7.938 kB / 481 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000389/0.1119, allocations: 213.7 kB / 481.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.763e-06/0.1119, allocations: 0 / 481.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009615/0.1129, allocations: 0.4904 MB / 481.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.599e-05/0.113, allocations: 118.8 kB / 481.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006174/0.1136, allocations: 0.5058 MB / 482.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.1137, allocations: 33.7 kB / 482.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.1139, allocations: 272.3 kB / 482.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.694e-05/0.114, allocations: 107.2 kB / 482.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.1142, allocations: 86.02 kB / 482.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1143, allocations: 370.8 kB / 483.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.1146, allocations: 116.9 kB / 483.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000375/0.115, allocations: 287.7 kB / 483.5 MB, free: 428 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.1166, allocations: 0.7808 MB / 484.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.1166, allocations: 0 / 484.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00089/0.1175, allocations: 0.5573 MB / 484.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.252e-05/0.1176, allocations: 38.3 kB / 484.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.1176, allocations: 4 kB / 484.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1176, allocations: 12 kB / 484.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006015/0.1182, allocations: 95.88 kB / 485 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.1182, allocations: 11.94 kB / 485 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.1185, allocations: 55.66 kB / 485.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.1185, allocations: 27.94 kB / 485.1 MB, free: 14.73 MB / 366.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: 20 * Number of states: 0 () * Number of discrete variables: 20 ($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.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0003203/0.1188, allocations: 251.1 kB / 485.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.261e-05/0.1189, allocations: 51.67 kB / 485.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000826/0.1198, allocations: 443.9 kB / 485.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1198, allocations: 8 kB / 485.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1198, allocations: 0 / 485.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1198, allocations: 3.938 kB / 485.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004902/0.1203, allocations: 445.1 kB / 486.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1203, allocations: 0 / 486.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006298/0.1209, allocations: 63.89 kB / 486.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.121, allocations: 4 kB / 486.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.083e-05/0.121, allocations: 15.98 kB / 486.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.121, allocations: 0 / 486.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.121, allocations: 8 kB / 486.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.122, allocations: 0.6031 MB / 487 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.1222, allocations: 120.8 kB / 487.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.369e-05/0.1222, allocations: 15.98 kB / 487.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.1224, allocations: 19.92 kB / 487.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.1225, allocations: 23.86 kB / 487.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.1225, allocations: 15.98 kB / 487.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004111/0.1229, allocations: 354.8 kB / 487.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1229, allocations: 0 / 487.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004549/0.1234, allocations: 119.7 kB / 487.6 MB, free: 12.09 MB / 366.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.002956/0.1264, allocations: 1.493 MB / 489.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008858/0.1273, allocations: 436 kB / 489.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1273, allocations: 0 / 489.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003457/0.1276, allocations: 231.5 kB / 489.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.1282, allocations: 81.73 kB / 489.9 MB, free: 9.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006093/0.1343, allocations: 4.397 MB / 494.2 MB, free: 5.379 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.1349, allocations: 0.8658 MB / 495.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002436/0.1351, allocations: 67.31 kB / 495.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.1354, allocations: 179.3 kB / 495.4 MB, free: 4.238 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1354, allocations: 4 kB / 495.4 MB, free: 4.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.036/0.1714, allocations: 9.784 MB / 0.4933 GB, free: 10.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.397/8.568, allocations: 11.7 kB / 0.4933 GB, free: 10.62 MB / 382.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)