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.001341/0.001341, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001407/0.001407, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.365/1.365, allocations: 230.6 MB / 256 MB, free: 7.773 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.06219/0.06219, allocations: 11.35 MB / 323.8 MB, free: 7.988 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.00308/0.00308, allocations: 63.91 kB / 451 MB, free: 10.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1152, allocations: 56.08 MB / 0.4952 GB, free: 2.105 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.00376/0.1189, allocations: 2.357 MB / 0.4975 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.1214, allocations: 1.509 MB / 0.4989 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.1216, allocations: 15.81 kB / 0.4989 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006607/0.1223, allocations: 234.9 kB / 0.4992 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004392/0.1227, allocations: 203 kB / 0.4994 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008081/0.1235, allocations: 402 kB / 0.4998 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006779/0.1242, allocations: 0.6092 MB / 0.5003 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.1243, allocations: 65.5 kB / 0.5004 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.1246, allocations: 219.2 kB / 0.5006 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.1249, allocations: 234.9 kB / 0.5008 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.627e-05/0.1249, allocations: 32 kB / 0.5009 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002487/0.1252, allocations: 151.8 kB / 0.501 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.1253, allocations: 139.5 kB / 0.5011 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001582/0.1255, allocations: 166.9 kB / 0.5013 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006115/0.1261, allocations: 0.5523 MB / 0.5018 GB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1261, allocations: 4 kB / 0.5019 GB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1261, allocations: 0 / 0.5019 GB, free: 11.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.1261, allocations: 0 / 0.5019 GB, free: 11.21 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.001269/0.1274, allocations: 0.8163 MB / 0.5026 GB, free: 10.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1274, allocations: 12.03 kB / 0.5027 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.453e-05/0.1275, allocations: 74.72 kB / 0.5027 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.715e-05/0.1276, allocations: 64.52 kB / 0.5028 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006383/0.1282, allocations: 382.9 kB / 0.5032 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.1283, allocations: 29.03 kB / 0.5032 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.725e-05/0.1283, allocations: 31.94 kB / 0.5032 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000693/0.129, allocations: 467 kB / 0.5037 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.129, allocations: 11.88 kB / 0.5037 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.1291, allocations: 12 kB / 0.5037 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.1291, allocations: 8 kB / 0.5037 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005364/0.1296, allocations: 316 kB / 0.504 GB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.1318, allocations: 1.678 MB / 0.5056 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005275/0.1323, allocations: 224.2 kB / 0.5058 GB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/0.1326, allocations: 138.5 kB / 0.506 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.1326, allocations: 4 kB / 0.506 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003791/0.133, allocations: 251.2 kB / 0.5062 GB, free: 6.473 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.964e-06/0.133, allocations: 0 / 0.5062 GB, free: 6.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009415/0.1339, allocations: 0.5475 MB / 0.5068 GB, free: 5.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.134, allocations: 85.11 kB / 0.5068 GB, free: 5.801 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006024/0.1346, allocations: 0.5292 MB / 0.5074 GB, free: 5.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.1346, allocations: 29.7 kB / 0.5074 GB, free: 5.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/0.1348, allocations: 284.3 kB / 0.5077 GB, free: 4.941 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.231e-05/0.1349, allocations: 99.2 kB / 0.5077 GB, free: 4.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.135, allocations: 101.5 kB / 0.5078 GB, free: 4.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.1352, allocations: 366.9 kB / 0.5082 GB, free: 4.371 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002528/0.1355, allocations: 150.1 kB / 0.5083 GB, free: 4.219 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/0.1358, allocations: 320.2 kB / 0.5086 GB, free: 3.824 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.1374, allocations: 0.7818 MB / 0.5094 GB, free: 2.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1374, allocations: 4 kB / 0.5094 GB, free: 2.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008799/0.1383, allocations: 0.5746 MB / 0.51 GB, free: 2.359 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/0.1383, allocations: 41.69 kB / 0.51 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.1383, allocations: 4 kB / 0.51 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.1383, allocations: 11.98 kB / 0.51 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.1386, allocations: 91.77 kB / 0.5101 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.1387, allocations: 4 kB / 0.5101 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.1389, allocations: 55.61 kB / 0.5102 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.1389, allocations: 20 kB / 0.5102 GB, free: 2.129 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.0002983/0.1392, allocations: 254.5 kB / 0.5104 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.369e-05/0.1393, allocations: 55.66 kB / 0.5105 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007994/0.1401, allocations: 486.1 kB / 0.5109 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1401, allocations: 3.938 kB / 0.511 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1401, allocations: 0 / 0.511 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1401, allocations: 4 kB / 0.511 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.1405, allocations: 372.4 kB / 0.5113 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1405, allocations: 0 / 0.5113 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.1408, allocations: 51.95 kB / 0.5114 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1408, allocations: 4 kB / 0.5114 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.1408, allocations: 8 kB / 0.5114 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1408, allocations: 3.938 kB / 0.5114 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1408, allocations: 0 / 0.5114 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.1418, allocations: 0.6816 MB / 0.512 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.515e-05/0.1419, allocations: 47.55 kB / 0.5121 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/0.142, allocations: 16.05 kB / 0.5121 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.1421, allocations: 19.92 kB / 0.5121 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.615e-05/0.1422, allocations: 19.97 kB / 0.5121 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.1887/0.3309, allocations: 12.91 kB / 0.5122 GB, free: 23.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004337/0.3313, allocations: 362.8 kB / 0.5125 GB, free: 23.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3313, allocations: 0 / 0.5125 GB, free: 23.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005683/0.3319, allocations: 114.6 kB / 0.5126 GB, free: 23.2 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 (26): * Single equations (assignments): 23 * 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.002542/0.3344, allocations: 1.573 MB / 0.5141 GB, free: 22.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005997/0.335, allocations: 451.3 kB / 0.5146 GB, free: 22.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.335, allocations: 0 / 0.5146 GB, free: 22.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.3353, allocations: 231.1 kB / 0.5148 GB, free: 22.26 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.3356, allocations: 81.81 kB / 0.5149 GB, free: 22.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004495/0.3401, allocations: 4.517 MB / 0.5193 GB, free: 20.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002071/0.3403, allocations: 263.1 kB / 0.5195 GB, free: 20.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001886/0.3405, allocations: 75.36 kB / 0.5196 GB, free: 20.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.3407, allocations: 178 kB / 0.5198 GB, free: 20.2 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3407, allocations: 0 / 0.5198 GB, free: 20.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04182/0.3826, allocations: 10.52 MB / 0.53 GB, free: 17.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.41, allocations: 4.984 kB / 0.5301 GB, free: 17.73 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: 13.965656799729913] Failed to read output from testmodel.py, exit status != 0: 11.578180599026382 11.600627069 11.470436261 Calling exit ...