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.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.001289/0.001289, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001531/0.001531, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.377/1.377, allocations: 230.6 MB / 256 MB, free: 7.797 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.06238/0.06238, allocations: 11.34 MB / 323.8 MB, free: 8.043 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.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"}) [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.00201/0.00201, allocations: 71.89 kB / 451 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1082, allocations: 56.07 MB / 0.4952 GB, free: 2.168 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.003933/0.1121, allocations: 2.332 MB / 0.4974 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002822/0.1149, allocations: 1.602 MB / 0.499 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002773/0.1152, allocations: 23.75 kB / 0.499 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007889/0.116, allocations: 223 kB / 0.4992 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005187/0.1165, allocations: 211 kB / 0.4994 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009841/0.1175, allocations: 429.8 kB / 0.4998 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007631/0.1183, allocations: 0.6606 MB / 0.5005 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.1184, allocations: 65.5 kB / 0.5006 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.1187, allocations: 239.1 kB / 0.5008 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.119, allocations: 254.9 kB / 0.501 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.49e-05/0.1191, allocations: 32 kB / 0.5011 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002632/0.1194, allocations: 155.8 kB / 0.5012 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.1195, allocations: 151.5 kB / 0.5013 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001885/0.1197, allocations: 178.8 kB / 0.5015 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007165/0.1204, allocations: 0.5911 MB / 0.5021 GB, free: 11.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.1204, allocations: 4 kB / 0.5021 GB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1204, allocations: 0 / 0.5021 GB, free: 11.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1204, allocations: 0 / 0.5021 GB, free: 11.02 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001443/0.1219, allocations: 0.8555 MB / 0.5029 GB, free: 10.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1219, allocations: 8.031 kB / 0.5029 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.951e-05/0.122, allocations: 74.72 kB / 0.503 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.1221, allocations: 68.52 kB / 0.5031 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006973/0.1228, allocations: 410.8 kB / 0.5035 GB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.1228, allocations: 29.38 kB / 0.5035 GB, free: 9.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.486e-05/0.1229, allocations: 43.92 kB / 0.5035 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007743/0.1237, allocations: 0.4893 MB / 0.504 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.1237, allocations: 7.953 kB / 0.504 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/0.1238, allocations: 23.92 kB / 0.504 GB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1238, allocations: 12 kB / 0.5041 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006128/0.1244, allocations: 360 kB / 0.5044 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.127, allocations: 1.823 MB / 0.5062 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004795/0.1274, allocations: 256.5 kB / 0.5064 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002619/0.1277, allocations: 170.7 kB / 0.5066 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.1277, allocations: 4.234 kB / 0.5066 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004307/0.1282, allocations: 285.7 kB / 0.5069 GB, free: 5.883 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.773e-06/0.1282, allocations: 0 / 0.5069 GB, free: 5.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001051/0.1292, allocations: 0.6136 MB / 0.5075 GB, free: 5.246 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.1293, allocations: 89.11 kB / 0.5076 GB, free: 5.141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006458/0.1299, allocations: 0.5651 MB / 0.5081 GB, free: 4.562 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.13, allocations: 29.7 kB / 0.5081 GB, free: 4.527 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.1302, allocations: 292.3 kB / 0.5084 GB, free: 4.238 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.1303, allocations: 127 kB / 0.5085 GB, free: 4.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.1304, allocations: 102.1 kB / 0.5086 GB, free: 4.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.1306, allocations: 370.8 kB / 0.509 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.1309, allocations: 182.6 kB / 0.5092 GB, free: 3.453 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/0.1314, allocations: 372.7 kB / 0.5095 GB, free: 3.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001915/0.1333, allocations: 0.9447 MB / 0.5104 GB, free: 1.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.1333, allocations: 4 kB / 0.5104 GB, free: 1.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001061/0.1343, allocations: 0.689 MB / 0.5111 GB, free: 1.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.987e-05/0.1344, allocations: 45.69 kB / 0.5112 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/0.1344, allocations: 4 kB / 0.5112 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.1344, allocations: 8 kB / 0.5112 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/0.1349, allocations: 111.8 kB / 0.5113 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.1349, allocations: 11.94 kB / 0.5113 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.1351, allocations: 55.61 kB / 0.5113 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.353e-05/0.1352, allocations: 31.98 kB / 0.5114 GB, free: 0.9883 MB / 382.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.0003611/0.1355, allocations: 279 kB / 0.5116 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.142e-05/0.1356, allocations: 55.62 kB / 0.5117 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009017/0.1365, allocations: 0.5339 MB / 0.5122 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1365, allocations: 4 kB / 0.5122 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1365, allocations: 0 / 0.5122 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.1365, allocations: 3.984 kB / 0.5122 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2172/0.3538, allocations: 395.4 kB / 0.5126 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3538, allocations: 0 / 0.5126 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004298/0.3542, allocations: 66.5 kB / 0.5127 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.3542, allocations: 0.7031 kB / 0.5127 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.3542, allocations: 16.31 kB / 0.5127 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.3542, allocations: 5.031 kB / 0.5127 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3542, allocations: 6.75 kB / 0.5127 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.3553, allocations: 0.7452 MB / 0.5134 GB, free: 23.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.936e-05/0.3554, allocations: 56.53 kB / 0.5135 GB, free: 23.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.614e-05/0.3555, allocations: 16.39 kB / 0.5135 GB, free: 23.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.3557, allocations: 17.19 kB / 0.5135 GB, free: 23.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.571e-05/0.3558, allocations: 27.19 kB / 0.5135 GB, free: 23.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.27e-05/0.3558, allocations: 15.91 kB / 0.5135 GB, free: 23.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003588/0.3561, allocations: 381.5 kB / 0.5139 GB, free: 22.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3561, allocations: 0.6562 kB / 0.5139 GB, free: 22.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004564/0.3566, allocations: 125.8 kB / 0.514 GB, free: 22.97 MB / 382.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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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.002689/0.3593, allocations: 1.669 MB / 0.5157 GB, free: 22.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007584/0.3601, allocations: 0.5179 MB / 0.5162 GB, free: 22.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3601, allocations: 1.406 kB / 0.5162 GB, free: 22.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.3603, allocations: 259.9 kB / 0.5164 GB, free: 22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.3607, allocations: 80.81 kB / 0.5165 GB, free: 22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005207/0.366, allocations: 5.048 MB / 0.5214 GB, free: 19.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.3663, allocations: 285.5 kB / 0.5217 GB, free: 19.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002685/0.3665, allocations: 100.8 kB / 0.5218 GB, free: 19.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.3667, allocations: 185.3 kB / 0.522 GB, free: 19.75 MB / 382.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3667, allocations: 0 / 0.522 GB, free: 19.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0587/0.4254, allocations: 11.48 MB / 0.5332 GB, free: 16.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.41, allocations: 5.125 kB / 0.5332 GB, free: 16.54 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.048 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.9668736779131] Failed to read output from testmodel.py, exit status != 0: 11.57104470487684 11.583277635 11.46069282 Calling exit ...