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.001312/0.001312, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002284/0.002284, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.58/1.58, allocations: 230.6 MB / 256 MB, free: 8.023 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.06526/0.06526, allocations: 11.33 MB / 323.8 MB, free: 8.262 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.002091/0.002091, allocations: 63.91 kB / 451 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1092, allocations: 56.07 MB / 0.4952 GB, free: 2.391 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.004089/0.1133, allocations: 2.487 MB / 0.4976 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00295/0.1163, allocations: 1.715 MB / 0.4993 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.1165, allocations: 23.75 kB / 0.4993 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008005/0.1173, allocations: 229.3 kB / 0.4996 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005312/0.1178, allocations: 215 kB / 0.4998 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.1189, allocations: 426 kB / 0.5002 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000792/0.1197, allocations: 0.6685 MB / 0.5008 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.1199, allocations: 65.52 kB / 0.5009 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003123/0.1202, allocations: 247.1 kB / 0.5011 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.1205, allocations: 266.8 kB / 0.5014 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.1206, allocations: 32 kB / 0.5014 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002762/0.1209, allocations: 163.9 kB / 0.5016 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001632/0.121, allocations: 143.5 kB / 0.5017 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002365/0.1213, allocations: 238.4 kB / 0.5019 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007087/0.122, allocations: 0.5756 MB / 0.5025 GB, free: 10.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.122, allocations: 0 / 0.5025 GB, free: 10.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.122, allocations: 0 / 0.5025 GB, free: 10.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.122, allocations: 0 / 0.5025 GB, free: 10.91 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.001528/0.1235, allocations: 0.8633 MB / 0.5033 GB, free: 10 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.1236, allocations: 12.03 kB / 0.5033 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.98e-05/0.1237, allocations: 78.72 kB / 0.5034 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.1238, allocations: 64.52 kB / 0.5035 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007308/0.1245, allocations: 411.7 kB / 0.5039 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/0.1245, allocations: 29.38 kB / 0.5039 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/0.1246, allocations: 43.92 kB / 0.5039 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007743/0.1254, allocations: 480.2 kB / 0.5044 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.1254, allocations: 11.95 kB / 0.5044 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.1255, allocations: 12 kB / 0.5044 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.1255, allocations: 8 kB / 0.5044 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006408/0.1261, allocations: 334.3 kB / 0.5048 GB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002614/0.1287, allocations: 1.885 MB / 0.5066 GB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/0.1292, allocations: 222.9 kB / 0.5068 GB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.1295, allocations: 137 kB / 0.5069 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.1295, allocations: 12.25 kB / 0.507 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004298/0.1299, allocations: 248 kB / 0.5072 GB, free: 5.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.284e-06/0.1299, allocations: 0 / 0.5072 GB, free: 5.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001092/0.131, allocations: 0.5517 MB / 0.5077 GB, free: 5.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.406e-05/0.1311, allocations: 106.8 kB / 0.5078 GB, free: 5.176 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006809/0.1318, allocations: 0.5534 MB / 0.5084 GB, free: 4.609 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.1318, allocations: 45.62 kB / 0.5084 GB, free: 4.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/0.1321, allocations: 292.2 kB / 0.5087 GB, free: 4.266 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.1322, allocations: 123 kB / 0.5088 GB, free: 4.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.1324, allocations: 106.1 kB / 0.5089 GB, free: 4.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.1325, allocations: 370.8 kB / 0.5093 GB, free: 3.664 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.1328, allocations: 141 kB / 0.5094 GB, free: 3.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004591/0.1333, allocations: 322.1 kB / 0.5097 GB, free: 3.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002112/0.1354, allocations: 0.9291 MB / 0.5106 GB, free: 2.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1354, allocations: 0 / 0.5106 GB, free: 2.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001101/0.1365, allocations: 0.6478 MB / 0.5112 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.1365, allocations: 41.69 kB / 0.5113 GB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.1365, allocations: 4 kB / 0.5113 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.1366, allocations: 8.656 kB / 0.5113 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.1371, allocations: 115.8 kB / 0.5114 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.1371, allocations: 8 kB / 0.5114 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.1373, allocations: 63.56 kB / 0.5115 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.1374, allocations: 24 kB / 0.5115 GB, free: 1.191 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.0004215/0.1378, allocations: 278.8 kB / 0.5118 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.499e-05/0.1379, allocations: 55.62 kB / 0.5118 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009197/0.1388, allocations: 0.4932 MB / 0.5123 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.1388, allocations: 8 kB / 0.5123 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1388, allocations: 3.984 kB / 0.5123 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1388, allocations: 3.984 kB / 0.5123 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.198/0.3369, allocations: 433.8 kB / 0.5127 GB, free: 23.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.3369, allocations: 1.562 kB / 0.5127 GB, free: 23.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005613/0.3374, allocations: 65.62 kB / 0.5128 GB, free: 23.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.013e-05/0.3374, allocations: 2.281 kB / 0.5128 GB, free: 23.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.088e-05/0.3375, allocations: 18.88 kB / 0.5128 GB, free: 23.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.3375, allocations: 4.625 kB / 0.5128 GB, free: 23.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.3375, allocations: 2.875 kB / 0.5128 GB, free: 23.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.3388, allocations: 0.6657 MB / 0.5135 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.3389, allocations: 56.91 kB / 0.5135 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.3e-05/0.339, allocations: 14.41 kB / 0.5135 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.3391, allocations: 16.75 kB / 0.5136 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.022e-05/0.3392, allocations: 26.72 kB / 0.5136 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-05/0.3393, allocations: 19.78 kB / 0.5136 GB, free: 23.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004159/0.3397, allocations: 383.8 kB / 0.514 GB, free: 22.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3397, allocations: 0 / 0.514 GB, free: 22.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005092/0.3402, allocations: 125.7 kB / 0.5141 GB, free: 22.99 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 (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.002637/0.3428, allocations: 1.573 MB / 0.5156 GB, free: 22.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007556/0.3436, allocations: 453.7 kB / 0.5161 GB, free: 22.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3436, allocations: 0 / 0.5161 GB, free: 22.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.3439, allocations: 227 kB / 0.5163 GB, free: 22.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.3443, allocations: 74.77 kB / 0.5163 GB, free: 22.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005152/0.3494, allocations: 4.866 MB / 0.5211 GB, free: 20.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.3498, allocations: 0.8831 MB / 0.522 GB, free: 19.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.35, allocations: 99.7 kB / 0.522 GB, free: 19.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.3503, allocations: 191.8 kB / 0.5222 GB, free: 19.51 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3503, allocations: 3.531 kB / 0.5222 GB, free: 19.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04399/0.3942, allocations: 11.21 MB / 0.5332 GB, free: 16.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.51, allocations: 5.531 kB / 0.5332 GB, free: 16.78 MB / 382.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.048 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: 15.450941934999719] Failed to read output from testmodel.py, exit status != 0: 12.682783415999438 12.69795942 12.573247155 Calling exit ...