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.001751/0.001751, 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.002291/0.002291, allocations: 220.3 kB / 22.26 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.498/1.498, allocations: 230.6 MB / 256 MB, free: 7.992 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.06506/0.06506, allocations: 11.34 MB / 323.8 MB, free: 8.234 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_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.002069/0.002069, allocations: 67.89 kB / 451 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1077, allocations: 56.07 MB / 0.4952 GB, free: 2.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004125/0.1118, allocations: 2.513 MB / 0.4977 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.1146, allocations: 1.606 MB / 0.4992 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002381/0.1149, allocations: 23.69 kB / 0.4993 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008199/0.1157, allocations: 227 kB / 0.4995 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005571/0.1162, allocations: 211 kB / 0.4997 GB, free: 13.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.1173, allocations: 398 kB / 0.5001 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009233/0.1182, allocations: 0.6171 MB / 0.5007 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.1184, allocations: 69.52 kB / 0.5007 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.1187, allocations: 227.1 kB / 0.501 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000358/0.1191, allocations: 246.9 kB / 0.5012 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.894e-05/0.1191, allocations: 32 kB / 0.5012 GB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002999/0.1194, allocations: 159.9 kB / 0.5014 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.1196, allocations: 135.5 kB / 0.5015 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002179/0.1198, allocations: 210.6 kB / 0.5017 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007092/0.1205, allocations: 0.5444 MB / 0.5022 GB, free: 11.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.1205, allocations: 4 kB / 0.5022 GB, free: 11.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1205, allocations: 0 / 0.5022 GB, free: 11.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.1206, allocations: 4 kB / 0.5022 GB, free: 11.12 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.001462/0.122, allocations: 0.8124 MB / 0.503 GB, free: 10.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.1221, allocations: 8.031 kB / 0.503 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.223e-05/0.1221, allocations: 78.64 kB / 0.5031 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.1223, allocations: 64.52 kB / 0.5032 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007278/0.123, allocations: 391.5 kB / 0.5035 GB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/0.123, allocations: 29.03 kB / 0.5036 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-05/0.1231, allocations: 39.94 kB / 0.5036 GB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007316/0.1238, allocations: 438.2 kB / 0.504 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.1238, allocations: 0 / 0.504 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.33e-05/0.1239, allocations: 16 kB / 0.504 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.1239, allocations: 8 kB / 0.5041 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005386/0.1244, allocations: 286.3 kB / 0.5043 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.1267, allocations: 1.74 MB / 0.506 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006075/0.1273, allocations: 192.8 kB / 0.5062 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.1276, allocations: 112.8 kB / 0.5063 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.327e-05/0.1276, allocations: 7.984 kB / 0.5063 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003723/0.128, allocations: 215.9 kB / 0.5065 GB, free: 6.488 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.503e-06/0.128, allocations: 0 / 0.5065 GB, free: 6.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009288/0.1289, allocations: 497.1 kB / 0.507 GB, free: 5.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.291e-05/0.129, allocations: 110.8 kB / 0.5071 GB, free: 5.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007097/0.1297, allocations: 0.5214 MB / 0.5076 GB, free: 5.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.1297, allocations: 33.7 kB / 0.5077 GB, free: 5.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002503/0.13, allocations: 284.3 kB / 0.5079 GB, free: 5.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.137e-05/0.1301, allocations: 87.28 kB / 0.508 GB, free: 4.918 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.1302, allocations: 93.58 kB / 0.5081 GB, free: 4.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.1304, allocations: 370.9 kB / 0.5085 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.1306, allocations: 116.4 kB / 0.5086 GB, free: 4.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003673/0.131, allocations: 277.7 kB / 0.5088 GB, free: 3.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.1326, allocations: 0.7623 MB / 0.5096 GB, free: 3.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1326, allocations: 0 / 0.5096 GB, free: 3.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008919/0.1335, allocations: 0.5335 MB / 0.5101 GB, free: 2.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.292e-05/0.1335, allocations: 45.69 kB / 0.5101 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.1335, allocations: 4 kB / 0.5101 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.1335, allocations: 4 kB / 0.5101 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003162/0.1339, allocations: 91.77 kB / 0.5102 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.1339, allocations: 8.531 kB / 0.5102 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.1341, allocations: 51.72 kB / 0.5103 GB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.1341, allocations: 20 kB / 0.5103 GB, free: 2.371 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 (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.0003644/0.1345, allocations: 246.3 kB / 0.5105 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.588e-05/0.1346, allocations: 59.61 kB / 0.5106 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008349/0.1354, allocations: 440.4 kB / 0.511 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.1354, allocations: 7.938 kB / 0.511 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1354, allocations: 0 / 0.511 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1354, allocations: 0 / 0.511 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005227/0.1359, allocations: 404.3 kB / 0.5114 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1359, allocations: 0 / 0.5114 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.1362, allocations: 55.91 kB / 0.5115 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.1362, allocations: 7.984 kB / 0.5115 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.053e-05/0.1362, allocations: 15.94 kB / 0.5115 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.1362, allocations: 7.875 kB / 0.5115 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1362, allocations: 0 / 0.5115 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.1373, allocations: 0.6 MB / 0.5121 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.118e-05/0.1373, allocations: 43.61 kB / 0.5121 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.418e-05/0.1374, allocations: 16.06 kB / 0.5121 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.1376, allocations: 23.91 kB / 0.5122 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.501e-05/0.1376, allocations: 19.97 kB / 0.5122 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.1377, allocations: 12 kB / 0.5122 GB, free: 348 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2352/0.3729, allocations: 358.3 kB / 0.5125 GB, free: 23.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3729, allocations: 0 / 0.5125 GB, free: 23.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006698/0.3735, allocations: 112 kB / 0.5126 GB, free: 23.18 MB / 382.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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * 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.002505/0.376, allocations: 1.48 MB / 0.5141 GB, free: 22.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006235/0.3767, allocations: 378.7 kB / 0.5144 GB, free: 22.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3767, allocations: 0 / 0.5144 GB, free: 22.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.3769, allocations: 191.3 kB / 0.5146 GB, free: 22.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.3773, allocations: 82.28 kB / 0.5147 GB, free: 22.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.3816, allocations: 4.323 MB / 0.5189 GB, free: 20.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.3819, allocations: 0.8636 MB / 0.5198 GB, free: 19.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001902/0.3821, allocations: 80.42 kB / 0.5199 GB, free: 19.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.3823, allocations: 176.7 kB / 0.52 GB, free: 19.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3823, allocations: 3 kB / 0.52 GB, free: 19.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04063/0.4229, allocations: 10.17 MB / 0.53 GB, free: 17.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.19, allocations: 7.156 kB / 0.53 GB, free: 17.94 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.940041914116591] Failed to read output from testmodel.py, exit status != 0: 12.359269058099017 12.372871208 12.249670778 Calling exit ...