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 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.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.005337/0.005337, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.00159/0.00159, allocations: 197.2 kB / 16.68 MB, free: 5.969 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06635/0.06635, allocations: 11.2 MB / 301.7 MB, free: 4.059 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 67.45 kB / 417.3 MB, free: 19.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08542/0.08727, allocations: 51.98 MB / 469.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003987/0.09129, allocations: 2.431 MB / 471.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00266/0.09398, allocations: 1.528 MB / 473.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.09423, allocations: 15.88 kB / 473.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006985/0.09496, allocations: 223 kB / 473.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004232/0.09539, allocations: 175.2 kB / 473.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.09647, allocations: 438.5 kB / 474.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007493/0.09723, allocations: 0.6296 MB / 474.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.09743, allocations: 81.06 kB / 474.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002936/0.09773, allocations: 235.1 kB / 475.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003375/0.09808, allocations: 251 kB / 475.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.423e-05/0.09816, allocations: 32 kB / 475.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.09845, allocations: 155.8 kB / 475.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.09863, allocations: 147.5 kB / 475.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.09887, allocations: 234.4 kB / 475.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007139/0.09959, allocations: 0.572 MB / 476.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.09961, allocations: 0 / 476.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09961, allocations: 0 / 476.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.09962, allocations: 0 / 476.4 MB, free: 7.961 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001483/0.1011, allocations: 0.927 MB / 477.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.1012, allocations: 15.89 kB / 477.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.029e-05/0.1013, allocations: 70.72 kB / 477.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.1014, allocations: 68.52 kB / 477.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006748/0.102, allocations: 483 kB / 478 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.1021, allocations: 29.31 kB / 478 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.598e-05/0.1022, allocations: 43.94 kB / 478.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007769/0.1029, allocations: 480.2 kB / 478.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.103, allocations: 7.938 kB / 478.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.666e-05/0.103, allocations: 12 kB / 478.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.103, allocations: 8 kB / 478.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006178/0.1037, allocations: 334.2 kB / 478.9 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002605/0.1063, allocations: 1.928 MB / 480.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000489/0.1068, allocations: 238.8 kB / 481 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002674/0.1071, allocations: 145.6 kB / 481.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.1071, allocations: 4.234 kB / 481.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004178/0.1075, allocations: 251.2 kB / 481.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.873e-06/0.1075, allocations: 0 / 481.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001058/0.1086, allocations: 0.5416 MB / 482 MB, free: 2.133 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.178e-05/0.1087, allocations: 114.8 kB / 482.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006392/0.1093, allocations: 0.5417 MB / 482.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.1094, allocations: 33.7 kB / 482.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.1096, allocations: 288.2 kB / 482.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.1098, allocations: 115.1 kB / 483.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.1099, allocations: 106.1 kB / 483.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.1101, allocations: 370.8 kB / 483.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.1104, allocations: 144.9 kB / 483.7 MB, free: 392 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.1108, allocations: 317.4 kB / 484 MB, free: 0 / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002005/0.1128, allocations: 0.9447 MB / 484.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1129, allocations: 7.938 kB / 484.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001053/0.1139, allocations: 0.64 MB / 485.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.292e-05/0.114, allocations: 41.69 kB / 485.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.114, allocations: 4 kB / 485.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.114, allocations: 8 kB / 485.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004496/0.1145, allocations: 112.5 kB / 485.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.858e-05/0.1145, allocations: 19.92 kB / 485.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.1148, allocations: 59.61 kB / 485.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.1148, allocations: 24 kB / 485.8 MB, free: 14.03 MB / 366.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: 22 * 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 (63): * Single equations (assignments): 62 * 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.0003612/0.1152, allocations: 270.9 kB / 486.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.147e-05/0.1153, allocations: 59.62 kB / 486.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000919/0.1162, allocations: 492.1 kB / 486.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1162, allocations: 8 kB / 486.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1162, allocations: 0 / 486.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.1162, allocations: 0 / 486.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005408/0.1168, allocations: 469.1 kB / 487.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1168, allocations: 0 / 487.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.1172, allocations: 67.95 kB / 487.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.1172, allocations: 3.984 kB / 487.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.1173, allocations: 12 kB / 487.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.1173, allocations: 3.938 kB / 487.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1173, allocations: 0 / 487.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.1184, allocations: 0.6833 MB / 487.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.1185, allocations: 136.7 kB / 488 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.845e-05/0.1186, allocations: 12 kB / 488 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.1188, allocations: 19.98 kB / 488 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.139e-05/0.1189, allocations: 19.97 kB / 488 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-05/0.1189, allocations: 19.98 kB / 488.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000429/0.1193, allocations: 382.8 kB / 488.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1193, allocations: 0 / 488.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004283/0.1198, allocations: 115.8 kB / 488.6 MB, free: 11.18 MB / 366.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.002873/0.1227, allocations: 1.565 MB / 490.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008142/0.1235, allocations: 0.4921 MB / 490.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1235, allocations: 0 / 490.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.1239, allocations: 259.4 kB / 490.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.1243, allocations: 89.36 kB / 491 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00655/0.1309, allocations: 4.846 MB / 495.8 MB, free: 3.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006046/0.1315, allocations: 0.8858 MB / 496.7 MB, free: 2.902 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002917/0.1318, allocations: 108.1 kB / 496.8 MB, free: 2.797 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000273/0.1321, allocations: 187.4 kB / 497 MB, free: 2.613 MB / 366.1 MB Notification: Performance of SimCode: time 9.41e-07/0.1321, allocations: 0 / 497 MB, free: 2.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03755/0.1697, allocations: 10.61 MB / 0.4957 GB, free: 8.199 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.7/8.869, allocations: 17.58 kB / 0.4957 GB, free: 8.184 MB / 382.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)