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.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.001252/0.001252, allocations: 110.6 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.001249/0.001249, 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.488/1.488, allocations: 225.6 MB / 247.8 MB, free: 13.94 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.06455/0.06455, allocations: 11.36 MB / 314 MB, free: 14.95 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.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: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 75.86 kB / 437.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1079, allocations: 54.83 MB / 492.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.00408/0.112, allocations: 2.445 MB / 494.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.1145, allocations: 1.547 MB / 496.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.1147, allocations: 15.88 kB / 496.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007185/0.1155, allocations: 219 kB / 496.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003787/0.1158, allocations: 173.7 kB / 496.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.1169, allocations: 448.9 kB / 497 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007008/0.1176, allocations: 0.6179 MB / 497.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.1178, allocations: 57.06 kB / 497.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002883/0.118, allocations: 231.1 kB / 497.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000348/0.1184, allocations: 262.9 kB / 498.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.474e-05/0.1185, allocations: 32 kB / 498.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000278/0.1187, allocations: 163.8 kB / 498.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.1189, allocations: 147.5 kB / 498.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002301/0.1192, allocations: 230.4 kB / 498.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007156/0.1199, allocations: 0.5717 MB / 499.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1199, allocations: 0 / 499.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1199, allocations: 0 / 499.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1199, allocations: 4 kB / 499.3 MB, free: 12.39 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001561/0.1215, allocations: 0.9269 MB / 0.4885 GB, free: 11.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1215, allocations: 15.89 kB / 0.4885 GB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.049e-05/0.1216, allocations: 74.72 kB / 0.4886 GB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.1217, allocations: 64.52 kB / 0.4886 GB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000721/0.1224, allocations: 479 kB / 0.4891 GB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.1224, allocations: 33.36 kB / 0.4891 GB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.1225, allocations: 39.94 kB / 0.4892 GB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007589/0.1233, allocations: 476.2 kB / 0.4896 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.1233, allocations: 8 kB / 0.4896 GB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.1233, allocations: 12 kB / 0.4896 GB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1234, allocations: 8 kB / 0.4896 GB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000602/0.124, allocations: 338.2 kB / 0.49 GB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.1266, allocations: 1.92 MB / 0.4918 GB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004537/0.1271, allocations: 218.9 kB / 0.4921 GB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000243/0.1273, allocations: 133.5 kB / 0.4922 GB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.407e-05/0.1273, allocations: 12.16 kB / 0.4922 GB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004181/0.1277, allocations: 247.2 kB / 0.4924 GB, free: 7.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.1277, allocations: 0 / 0.4924 GB, free: 7.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001062/0.1288, allocations: 0.5535 MB / 0.493 GB, free: 6.586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.689e-05/0.1289, allocations: 110.8 kB / 0.4931 GB, free: 6.453 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006344/0.1295, allocations: 0.5417 MB / 0.4936 GB, free: 5.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.1296, allocations: 33.7 kB / 0.4936 GB, free: 5.859 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.1298, allocations: 288.3 kB / 0.4939 GB, free: 5.574 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.1299, allocations: 119.1 kB / 0.494 GB, free: 5.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.1301, allocations: 102.1 kB / 0.4941 GB, free: 5.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.1303, allocations: 374.7 kB / 0.4945 GB, free: 4.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.1305, allocations: 148.9 kB / 0.4946 GB, free: 4.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.131, allocations: 321.5 kB / 0.4949 GB, free: 4.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001919/0.1329, allocations: 0.9367 MB / 0.4958 GB, free: 3.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.1329, allocations: 4 kB / 0.4958 GB, free: 3.406 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001038/0.1339, allocations: 0.6444 MB / 0.4965 GB, free: 2.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.134, allocations: 41.83 kB / 0.4965 GB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.134, allocations: 7.938 kB / 0.4965 GB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.134, allocations: 11.98 kB / 0.4965 GB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.1344, allocations: 111.8 kB / 0.4966 GB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.553e-05/0.1345, allocations: 8 kB / 0.4967 GB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.1347, allocations: 59.61 kB / 0.4967 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.919e-05/0.1348, allocations: 28 kB / 0.4967 GB, free: 2.48 MB / 366.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.000364/0.1351, allocations: 271.8 kB / 0.497 GB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.147e-05/0.1352, allocations: 55.62 kB / 0.497 GB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008949/0.1361, allocations: 0.4923 MB / 0.4975 GB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.1361, allocations: 3.984 kB / 0.4975 GB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1361, allocations: 0 / 0.4975 GB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.1361, allocations: 4 kB / 0.4975 GB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005302/0.1367, allocations: 465.1 kB / 0.498 GB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1367, allocations: 0 / 0.498 GB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004028/0.1371, allocations: 67.89 kB / 0.498 GB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.1371, allocations: 4 kB / 0.498 GB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.1371, allocations: 19.98 kB / 0.4981 GB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.1371, allocations: 0 / 0.4981 GB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1371, allocations: 4 kB / 0.4981 GB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.1382, allocations: 0.6714 MB / 0.4987 GB, free: 348 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.1383, allocations: 132.7 kB / 0.4989 GB, free: 196 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.288e-05/0.1384, allocations: 20 kB / 0.4989 GB, free: 176 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.1386, allocations: 11.98 kB / 0.4989 GB, free: 164 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.853e-05/0.1386, allocations: 23.97 kB / 0.4989 GB, free: 140 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/0.1387, allocations: 15.98 kB / 0.4989 GB, free: 124 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004428/0.1391, allocations: 374.8 kB / 0.4993 GB, free: 15.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1391, allocations: 0 / 0.4993 GB, free: 15.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004619/0.1396, allocations: 123.8 kB / 0.4994 GB, free: 15.64 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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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.003021/0.1426, allocations: 1.574 MB / 0.5009 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009233/0.1435, allocations: 463.4 kB / 0.5014 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1435, allocations: 0 / 0.5014 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003448/0.1439, allocations: 219.2 kB / 0.5016 GB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004901/0.1444, allocations: 75.83 kB / 0.5017 GB, free: 13.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006517/0.1509, allocations: 4.863 MB / 0.5064 GB, free: 8.344 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.1514, allocations: 0.8859 MB / 0.5073 GB, free: 7.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002857/0.1517, allocations: 96.19 kB / 0.5074 GB, free: 7.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/0.152, allocations: 191.3 kB / 0.5075 GB, free: 7.152 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.152, allocations: 4 kB / 0.5075 GB, free: 7.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2186/0.3706, allocations: 10.66 MB / 0.518 GB, free: 32.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.148/9.518, allocations: 5.188 kB / 0.518 GB, free: 32.04 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.169179425109178] Failed to read output from testmodel.py, exit status != 0: 9.647688161581755 9.670867777 9.546557832 Calling exit ...