Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.001355/0.001355, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001468/0.001468, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.399/1.399, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.06037/0.06037, allocations: 11.33 MB / 320.9 MB, free: 14.09 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.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="cs",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.001915/0.001915, allocations: 65.12 kB / 446.5 MB, free: 38.85 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09042/0.09234, allocations: 56.01 MB / 0.4908 GB, free: 3.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.00313/0.09547, allocations: 2.49 MB / 0.4932 GB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.09772, allocations: 1.599 MB / 0.4948 GB, free: 15.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.09791, allocations: 23.75 kB / 0.4948 GB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006865/0.09859, allocations: 222.9 kB / 0.495 GB, free: 15.08 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004414/0.09904, allocations: 209.5 kB / 0.4952 GB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007951/0.09983, allocations: 371.1 kB / 0.4955 GB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006183/0.1004, allocations: 0.5819 MB / 0.4961 GB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.1006, allocations: 73.25 kB / 0.4962 GB, free: 13.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002528/0.1009, allocations: 223.1 kB / 0.4964 GB, free: 13.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002903/0.1012, allocations: 250.9 kB / 0.4966 GB, free: 13.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.444e-05/0.1012, allocations: 32 kB / 0.4967 GB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.1015, allocations: 155.9 kB / 0.4968 GB, free: 13.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.1016, allocations: 135.5 kB / 0.4969 GB, free: 13.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.1018, allocations: 214.6 kB / 0.4971 GB, free: 12.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006344/0.1024, allocations: 0.5445 MB / 0.4977 GB, free: 12.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.1024, allocations: 3.938 kB / 0.4977 GB, free: 12.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1024, allocations: 0 / 0.4977 GB, free: 12.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1024, allocations: 0 / 0.4977 GB, free: 12.32 MB / 366.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.001316/0.1038, allocations: 0.8878 MB / 0.4985 GB, free: 11.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.1038, allocations: 8.031 kB / 0.4986 GB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.213e-05/0.1038, allocations: 12.78 kB / 0.4986 GB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.017e-05/0.1039, allocations: 74.72 kB / 0.4986 GB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.104, allocations: 64.52 kB / 0.4987 GB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005946/0.1046, allocations: 454.8 kB / 0.4991 GB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.1046, allocations: 36.78 kB / 0.4992 GB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.676e-05/0.1047, allocations: 32 kB / 0.4992 GB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.1053, allocations: 430 kB / 0.4996 GB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.1054, allocations: 4 kB / 0.4996 GB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.1054, allocations: 19.94 kB / 0.4996 GB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.1054, allocations: 15.98 kB / 0.4996 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005202/0.1059, allocations: 278 kB / 0.4999 GB, free: 9.879 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002104/0.108, allocations: 1.779 MB / 0.5016 GB, free: 8.008 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005065/0.1085, allocations: 200.3 kB / 0.5018 GB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.1087, allocations: 108.8 kB / 0.5019 GB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.1088, allocations: 4 kB / 0.5019 GB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003482/0.1091, allocations: 213.6 kB / 0.5022 GB, free: 7.465 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.1091, allocations: 0 / 0.5022 GB, free: 7.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008984/0.11, allocations: 487.6 kB / 0.5026 GB, free: 6.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.1101, allocations: 118.8 kB / 0.5027 GB, free: 6.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005787/0.1107, allocations: 0.5178 MB / 0.5032 GB, free: 6.309 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.1107, allocations: 29.7 kB / 0.5033 GB, free: 6.273 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.1109, allocations: 284.2 kB / 0.5035 GB, free: 5.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.078e-05/0.111, allocations: 95.27 kB / 0.5036 GB, free: 5.898 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.1111, allocations: 85.64 kB / 0.5037 GB, free: 5.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1113, allocations: 366.7 kB / 0.5041 GB, free: 5.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.1115, allocations: 124.5 kB / 0.5042 GB, free: 5.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003407/0.1118, allocations: 266.1 kB / 0.5044 GB, free: 4.988 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.1134, allocations: 0.7691 MB / 0.5052 GB, free: 4.133 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1134, allocations: 0 / 0.5052 GB, free: 4.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008632/0.1143, allocations: 0.5336 MB / 0.5057 GB, free: 3.586 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.256e-05/0.1143, allocations: 41.7 kB / 0.5057 GB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1143, allocations: 8 kB / 0.5057 GB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.1143, allocations: 11.94 kB / 0.5058 GB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003012/0.1146, allocations: 83.83 kB / 0.5058 GB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.1146, allocations: 7.984 kB / 0.5058 GB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.1149, allocations: 56.09 kB / 0.5059 GB, free: 3.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.385e-05/0.1149, allocations: 24 kB / 0.5059 GB, free: 3.352 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 (50): * Single equations (assignments): 49 * 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.0002887/0.1152, allocations: 240.6 kB / 0.5062 GB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.194e-05/0.1153, allocations: 59.62 kB / 0.5062 GB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007637/0.116, allocations: 436.3 kB / 0.5066 GB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.116, allocations: 11.88 kB / 0.5066 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.116, allocations: 7.922 kB / 0.5066 GB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.116, allocations: 3.938 kB / 0.5066 GB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004368/0.1165, allocations: 433.2 kB / 0.5071 GB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1165, allocations: 0 / 0.5071 GB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/0.1167, allocations: 43.97 kB / 0.5071 GB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1167, allocations: 4 kB / 0.5071 GB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.1168, allocations: 19.98 kB / 0.5071 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1168, allocations: 3.938 kB / 0.5071 GB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1168, allocations: 0 / 0.5071 GB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009751/0.1177, allocations: 0.5879 MB / 0.5077 GB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.1178, allocations: 132.8 kB / 0.5078 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.1179, allocations: 8 kB / 0.5078 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.118, allocations: 23.92 kB / 0.5079 GB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.408e-05/0.1181, allocations: 23.97 kB / 0.5079 GB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.1181, allocations: 8 kB / 0.5079 GB, free: 1.211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003912/0.1185, allocations: 366.8 kB / 0.5082 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1185, allocations: 0 / 0.5082 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003988/0.1189, allocations: 111.8 kB / 0.5083 GB, free: 0.7461 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (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 (25): * Single equations (assignments): 22 * 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.002695/0.1216, allocations: 1.492 MB / 0.5098 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006389/0.1223, allocations: 380.7 kB / 0.5102 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1223, allocations: 0 / 0.5102 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002905/0.1226, allocations: 199.2 kB / 0.5104 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.123, allocations: 76.8 kB / 0.5104 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005576/0.1285, allocations: 4.329 MB / 0.5147 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005263/0.1291, allocations: 0.8582 MB / 0.5155 GB, free: 9.301 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.1293, allocations: 79.28 kB / 0.5156 GB, free: 9.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.1295, allocations: 179.4 kB / 0.5157 GB, free: 9.043 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1295, allocations: 0 / 0.5157 GB, free: 9.043 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0302/0.1597, allocations: 9.837 MB / 0.5254 GB, free: 15.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.772/8.932, allocations: 14.61 kB / 0.5254 GB, free: 15.33 MB / 398.1 MB " [Timeout remaining time 651] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.583196840016171] Failed to read output from testmodel.py, exit status != 0: 9.109878848015796 9.12537629 9.02001286 Calling exit ...