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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 216.9 kB / 22.25 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.477/1.477, allocations: 230.6 MB / 256 MB, free: 7.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06498/0.06498, allocations: 11.33 MB / 323.8 MB, free: 8.211 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 71.91 kB / 451 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1082, allocations: 56.07 MB / 0.4952 GB, free: 2.305 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004332/0.1125, allocations: 2.515 MB / 0.4977 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003379/0.1159, allocations: 1.708 MB / 0.4993 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000378/0.1162, allocations: 19.81 kB / 0.4994 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000809/0.1171, allocations: 237.1 kB / 0.4996 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006217/0.1177, allocations: 199.1 kB / 0.4998 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.119, allocations: 442 kB / 0.5002 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.12, allocations: 0.66 MB / 0.5009 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.1202, allocations: 65.5 kB / 0.5009 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005152/0.1208, allocations: 239.1 kB / 0.5011 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005297/0.1213, allocations: 258.9 kB / 0.5014 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1214, allocations: 36 kB / 0.5014 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003847/0.1218, allocations: 159.9 kB / 0.5016 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002067/0.122, allocations: 147.4 kB / 0.5017 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002924/0.1223, allocations: 214.6 kB / 0.5019 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009269/0.1232, allocations: 0.5523 MB / 0.5025 GB, free: 10.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1232, allocations: 3.938 kB / 0.5025 GB, free: 10.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.1232, allocations: 0 / 0.5025 GB, free: 10.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.1232, allocations: 0 / 0.5025 GB, free: 10.86 MB / 382.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.001588/0.1248, allocations: 0.832 MB / 0.5033 GB, free: 9.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.1249, allocations: 15.97 kB / 0.5033 GB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.653e-05/0.125, allocations: 78.64 kB / 0.5034 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.1251, allocations: 64.52 kB / 0.5034 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006774/0.1258, allocations: 391.5 kB / 0.5038 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.555e-05/0.1259, allocations: 84.38 kB / 0.5039 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.792e-05/0.1259, allocations: 36 kB / 0.5039 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007483/0.1267, allocations: 454.2 kB / 0.5043 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.1267, allocations: 0 / 0.5043 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.1267, allocations: 16 kB / 0.5044 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1267, allocations: 12 kB / 0.5044 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005676/0.1273, allocations: 290.3 kB / 0.5047 GB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002773/0.1301, allocations: 1.834 MB / 0.5064 GB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004931/0.1306, allocations: 186.5 kB / 0.5066 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.1308, allocations: 120.8 kB / 0.5067 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.1308, allocations: 4 kB / 0.5067 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003886/0.1312, allocations: 221.7 kB / 0.507 GB, free: 6.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.522e-06/0.1312, allocations: 3.938 kB / 0.507 GB, free: 6.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009606/0.1322, allocations: 489.6 kB / 0.5074 GB, free: 5.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.009e-05/0.1322, allocations: 114.8 kB / 0.5075 GB, free: 5.383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006888/0.1329, allocations: 0.5253 MB / 0.508 GB, free: 4.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.133, allocations: 29.7 kB / 0.5081 GB, free: 4.809 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.1332, allocations: 280.3 kB / 0.5083 GB, free: 4.531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.279e-05/0.1333, allocations: 95.22 kB / 0.5084 GB, free: 4.438 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.1335, allocations: 90.06 kB / 0.5085 GB, free: 4.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.1337, allocations: 362.8 kB / 0.5089 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.1339, allocations: 124.8 kB / 0.509 GB, free: 3.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.1343, allocations: 286.6 kB / 0.5093 GB, free: 3.504 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/0.136, allocations: 0.7934 MB / 0.51 GB, free: 2.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.136, allocations: 0 / 0.51 GB, free: 2.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001059/0.137, allocations: 0.549 MB / 0.5106 GB, free: 2.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.794e-05/0.1371, allocations: 37.69 kB / 0.5106 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1371, allocations: 4 kB / 0.5106 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.946e-05/0.1371, allocations: 8.594 kB / 0.5106 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005982/0.1377, allocations: 107.8 kB / 0.5107 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.038e-05/0.1377, allocations: 8 kB / 0.5107 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.138, allocations: 55.61 kB / 0.5108 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.1381, allocations: 23.94 kB / 0.5108 GB, free: 1.816 MB / 382.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.000507/0.1386, allocations: 254.2 kB / 0.511 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1387, allocations: 51.67 kB / 0.5111 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009587/0.1396, allocations: 444.2 kB / 0.5115 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.1396, allocations: 4 kB / 0.5115 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.1397, allocations: 0 / 0.5115 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.1397, allocations: 11.92 kB / 0.5115 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00061/0.1403, allocations: 412.3 kB / 0.5119 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.1403, allocations: 0 / 0.5119 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005944/0.1409, allocations: 67.95 kB / 0.512 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.1409, allocations: 3.984 kB / 0.512 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.1409, allocations: 15.97 kB / 0.512 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1409, allocations: 4 kB / 0.512 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1409, allocations: 3.984 kB / 0.512 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2141/0.355, allocations: 0.5952 MB / 0.5126 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.3552, allocations: 53.66 kB / 0.5126 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.378e-05/0.3553, allocations: 13.56 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.3555, allocations: 13.92 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.47e-05/0.3556, allocations: 25.41 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.3556, allocations: 11.5 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004199/0.356, allocations: 366.3 kB / 0.5131 GB, free: 23.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.356, allocations: 0 / 0.5131 GB, free: 23.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005464/0.3566, allocations: 115.5 kB / 0.5132 GB, free: 23.06 MB / 382.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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * 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.002653/0.3592, allocations: 1.492 MB / 0.5146 GB, free: 22.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006661/0.3599, allocations: 395.8 kB / 0.515 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3599, allocations: 0 / 0.515 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.3601, allocations: 197.7 kB / 0.5152 GB, free: 22.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.3606, allocations: 77.41 kB / 0.5153 GB, free: 22.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004598/0.3652, allocations: 4.429 MB / 0.5196 GB, free: 20.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.3654, allocations: 0.8695 MB / 0.5204 GB, free: 19.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002042/0.3656, allocations: 78.67 kB / 0.5205 GB, free: 19.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.3658, allocations: 174.7 kB / 0.5207 GB, free: 19.73 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3658, allocations: 3.625 kB / 0.5207 GB, free: 19.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04043/0.4063, allocations: 10.29 MB / 0.5307 GB, free: 17.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.32, allocations: 14.25 kB / 0.5307 GB, free: 17.63 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.08 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.991530166938901] Failed to read output from testmodel.py, exit status != 0: 12.486952821025625 12.499449714 12.373689293 Calling exit ...