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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00167/0.00167, allocations: 109.2 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002035/0.002035, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06503/0.06503, allocations: 11.36 MB / 314 MB, free: 14.94 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-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.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: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 71.89 kB / 437.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1037, allocations: 54.83 MB / 492.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004234/0.1079, allocations: 2.473 MB / 494.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002631/0.1106, allocations: 1.443 MB / 496.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002946/0.1108, allocations: 15.88 kB / 496.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007679/0.1116, allocations: 224.5 kB / 496.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004922/0.1121, allocations: 163.2 kB / 496.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1132, allocations: 409.9 kB / 496.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008/0.114, allocations: 0.5703 MB / 497.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.1141, allocations: 65.05 kB / 497.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000288/0.1144, allocations: 215.2 kB / 497.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003274/0.1148, allocations: 246.9 kB / 498 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.826e-05/0.1148, allocations: 32 kB / 498 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002784/0.1151, allocations: 147.9 kB / 498.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.1153, allocations: 131.5 kB / 498.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002086/0.1155, allocations: 218.5 kB / 498.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007362/0.1162, allocations: 0.5405 MB / 499 MB, free: 12.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1162, allocations: 0 / 499 MB, free: 12.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1162, allocations: 0 / 499 MB, free: 12.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.1162, allocations: 0 / 499 MB, free: 12.62 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.001568/0.1178, allocations: 0.8982 MB / 499.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1178, allocations: 11.89 kB / 499.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.125e-05/0.1179, allocations: 70.72 kB / 500 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.118, allocations: 60.56 kB / 0.4883 GB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007018/0.1187, allocations: 454.7 kB / 0.4888 GB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.1188, allocations: 29.03 kB / 0.4888 GB, free: 11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.35e-05/0.1189, allocations: 47.88 kB / 0.4888 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006993/0.1196, allocations: 430 kB / 0.4893 GB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.1196, allocations: 4 kB / 0.4893 GB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.535e-05/0.1196, allocations: 16 kB / 0.4893 GB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1196, allocations: 11.94 kB / 0.4893 GB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005369/0.1202, allocations: 282 kB / 0.4896 GB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.1225, allocations: 1.771 MB / 0.4913 GB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.1231, allocations: 199.6 kB / 0.4915 GB, free: 8.125 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.1233, allocations: 105.7 kB / 0.4916 GB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.1233, allocations: 4 kB / 0.4916 GB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000395/0.1237, allocations: 213.7 kB / 0.4918 GB, free: 7.785 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 2.013e-06/0.1237, allocations: 0 / 0.4918 GB, free: 7.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009384/0.1246, allocations: 489.9 kB / 0.4922 GB, free: 7.297 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.331e-05/0.1247, allocations: 106.8 kB / 0.4923 GB, free: 7.168 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000605/0.1253, allocations: 0.5213 MB / 0.4929 GB, free: 6.633 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.1253, allocations: 29.7 kB / 0.4929 GB, free: 6.598 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.1256, allocations: 280.3 kB / 0.4932 GB, free: 6.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.446e-05/0.1257, allocations: 99.16 kB / 0.4932 GB, free: 6.223 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.1258, allocations: 85.69 kB / 0.4933 GB, free: 6.133 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.126, allocations: 370.9 kB / 0.4937 GB, free: 5.762 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.1262, allocations: 120.4 kB / 0.4938 GB, free: 5.645 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/0.1266, allocations: 266.1 kB / 0.4941 GB, free: 5.316 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/0.1282, allocations: 0.769 MB / 0.4948 GB, free: 4.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1282, allocations: 0 / 0.4948 GB, free: 4.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009193/0.1291, allocations: 0.5373 MB / 0.4953 GB, free: 3.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.969e-05/0.1292, allocations: 37.7 kB / 0.4954 GB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.1292, allocations: 8.594 kB / 0.4954 GB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.1292, allocations: 11.98 kB / 0.4954 GB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/0.1295, allocations: 83.84 kB / 0.4955 GB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.1295, allocations: 15.92 kB / 0.4955 GB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.1298, allocations: 55.61 kB / 0.4955 GB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-05/0.1298, allocations: 20 kB / 0.4955 GB, free: 3.676 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.0003526/0.1302, allocations: 250.8 kB / 0.4958 GB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.507e-05/0.1302, allocations: 51.67 kB / 0.4958 GB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008046/0.131, allocations: 433.5 kB / 0.4963 GB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.131, allocations: 7.938 kB / 0.4963 GB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.131, allocations: 0 / 0.4963 GB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1311, allocations: 4 kB / 0.4963 GB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005171/0.1316, allocations: 429.2 kB / 0.4967 GB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1316, allocations: 0 / 0.4967 GB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.1318, allocations: 47.91 kB / 0.4967 GB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1318, allocations: 0 / 0.4967 GB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.1319, allocations: 12 kB / 0.4967 GB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.1319, allocations: 3.938 kB / 0.4967 GB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1319, allocations: 0 / 0.4967 GB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.1329, allocations: 0.5961 MB / 0.4973 GB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001358/0.1331, allocations: 128.8 kB / 0.4974 GB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.551e-05/0.1331, allocations: 15.92 kB / 0.4975 GB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.1333, allocations: 23.86 kB / 0.4975 GB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.447e-05/0.1334, allocations: 15.97 kB / 0.4975 GB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.962e-05/0.1334, allocations: 15.98 kB / 0.4975 GB, free: 1.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004055/0.1338, allocations: 358.8 kB / 0.4978 GB, free: 1.199 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1338, allocations: 0 / 0.4978 GB, free: 1.199 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004317/0.1342, allocations: 115.8 kB / 0.498 GB, free: 1.086 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.002803/0.137, allocations: 1.478 MB / 0.4994 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007269/0.1378, allocations: 387 kB / 0.4998 GB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1378, allocations: 0 / 0.4998 GB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002943/0.1381, allocations: 192.5 kB / 0.5 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.1385, allocations: 78.58 kB / 0.5 GB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005874/0.1444, allocations: 4.309 MB / 0.5042 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005451/0.1449, allocations: 0.862 MB / 0.5051 GB, free: 9.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002386/0.1451, allocations: 83.28 kB / 0.5052 GB, free: 9.602 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000326/0.1455, allocations: 179.4 kB / 0.5053 GB, free: 9.426 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1455, allocations: 0 / 0.5053 GB, free: 9.426 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2208/0.3662, allocations: 9.7 MB / 0.5148 GB, free: 34.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.07/9.437, allocations: 2.781 kB / 0.5148 GB, free: 34.42 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.053501283749938] Failed to read output from testmodel.py, exit status != 0: 9.561193048022687 9.575245852 9.456383671 Calling exit ...