Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.0008907/0.0008907, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009498/0.0009498, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9119/0.9119, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.03368/0.03368, allocations: 8.609 MB / 267.8 MB, free: 5.133 MB / 250.7 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.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 395.1 MB, free: 2.68 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.08e-05, allocations: 2.281 kB / 395.1 MB, free: 2.676 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.002712/0.002733, allocations: 2.341 MB / 397.4 MB, free: 324 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.004601, allocations: 1.61 MB / 399 MB, free: 14.7 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001692/0.00477, allocations: 23.75 kB / 399 MB, free: 14.68 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008532/0.005623, allocations: 222.8 kB / 399.3 MB, free: 14.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003469/0.00597, allocations: 222.8 kB / 399.5 MB, free: 14.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006071/0.006577, allocations: 457.6 kB / 399.9 MB, free: 13.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004458/0.007023, allocations: 0.6021 MB / 400.5 MB, free: 13.19 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.007158, allocations: 57.25 kB / 400.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002292/0.007387, allocations: 295.3 kB / 400.9 MB, free: 12.84 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.0076, allocations: 219.4 kB / 401.1 MB, free: 12.62 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.067e-05/0.007641, allocations: 36 kB / 401.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.007825, allocations: 159.8 kB / 401.3 MB, free: 12.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.007936, allocations: 147.5 kB / 401.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.008043, allocations: 147.5 kB / 401.6 MB, free: 12.14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.00852, allocations: 0.5917 MB / 402.2 MB, free: 11.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.008523, allocations: 4 kB / 402.2 MB, free: 11.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.008525, allocations: 0 / 402.2 MB, free: 11.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.008532, allocations: 0 / 402.2 MB, free: 11.54 MB / 378.7 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.001012/0.009544, allocations: 0.8632 MB / 403 MB, free: 10.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.009584, allocations: 8.031 kB / 403 MB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.822e-05/0.009643, allocations: 74.72 kB / 403.1 MB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.009726, allocations: 72.5 kB / 403.2 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004743/0.0102, allocations: 406.1 kB / 403.6 MB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.01023, allocations: 29.38 kB / 403.6 MB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.946e-05/0.01028, allocations: 44.31 kB / 403.6 MB, free: 9.984 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005353/0.01081, allocations: 0.4974 MB / 404.1 MB, free: 9.441 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.01083, allocations: 11.94 kB / 404.2 MB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.01086, allocations: 16 kB / 404.2 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.435e-06/0.01086, allocations: 8 kB / 404.2 MB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/0.01126, allocations: 356 kB / 404.5 MB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.01335, allocations: 1.815 MB / 406.3 MB, free: 7.156 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003438/0.01369, allocations: 264.7 kB / 406.6 MB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.01386, allocations: 166.7 kB / 406.8 MB, free: 6.711 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.01389, allocations: 4.219 kB / 406.8 MB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003296/0.01422, allocations: 277.7 kB / 407 MB, free: 6.414 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.01422, allocations: 0 / 407 MB, free: 6.414 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007176/0.01494, allocations: 0.6175 MB / 407.7 MB, free: 5.773 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.015, allocations: 89.09 kB / 407.7 MB, free: 5.668 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004169/0.01541, allocations: 0.569 MB / 408.3 MB, free: 5.086 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.01544, allocations: 37.69 kB / 408.4 MB, free: 5.043 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.0156, allocations: 288.3 kB / 408.6 MB, free: 4.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.131e-05/0.01567, allocations: 119.1 kB / 408.7 MB, free: 4.641 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.988e-05/0.01577, allocations: 102.1 kB / 408.8 MB, free: 4.531 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.0159, allocations: 370.8 kB / 409.2 MB, free: 4.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.01609, allocations: 186.7 kB / 409.4 MB, free: 3.973 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.01634, allocations: 364.9 kB / 409.7 MB, free: 3.527 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.01749, allocations: 0.957 MB / 410.7 MB, free: 2.477 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.0175, allocations: 4 kB / 410.7 MB, free: 2.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006255/0.01812, allocations: 0.6886 MB / 411.4 MB, free: 1.766 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.01816, allocations: 45.69 kB / 411.4 MB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.01817, allocations: 4 kB / 411.4 MB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.01818, allocations: 8 kB / 411.5 MB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.01842, allocations: 111.8 kB / 411.6 MB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.01843, allocations: 8.5 kB / 411.6 MB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.01856, allocations: 67.55 kB / 411.6 MB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/0.01859, allocations: 24 kB / 411.7 MB, free: 1.496 MB / 378.7 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.0002444/0.01883, allocations: 275.2 kB / 411.9 MB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.352e-05/0.01887, allocations: 55.61 kB / 412 MB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005455/0.01942, allocations: 0.5378 MB / 412.5 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.01942, allocations: 4 kB / 412.5 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.01943, allocations: 0 / 412.5 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.01944, allocations: 0 / 412.5 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.01976, allocations: 396.4 kB / 412.9 MB, free: 172 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.01977, allocations: 4 kB / 412.9 MB, free: 168 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.01998, allocations: 79.83 kB / 413 MB, free: 88 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.01998, allocations: 3.938 kB / 413 MB, free: 84 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.02001, allocations: 19.98 kB / 413 MB, free: 64 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.02001, allocations: 0 / 413 MB, free: 64 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.02001, allocations: 0 / 413 MB, free: 64 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.02113, allocations: 0.7377 MB / 413.8 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/0.02118, allocations: 63.44 kB / 413.8 MB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/0.02123, allocations: 19.98 kB / 413.8 MB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.922e-05/0.02131, allocations: 19.92 kB / 413.9 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.02138, allocations: 23.95 kB / 413.9 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.0214, allocations: 12 kB / 413.9 MB, free: 15.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002943/0.0217, allocations: 390.8 kB / 414.3 MB, free: 14.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0217, allocations: 0 / 414.3 MB, free: 14.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003076/0.022, allocations: 119.8 kB / 414.4 MB, free: 14.66 MB / 394.7 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.001673/0.02368, allocations: 1.692 MB / 416.1 MB, free: 13.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005972/0.02427, allocations: 0.5117 MB / 416.6 MB, free: 12.56 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.02428, allocations: 0 / 416.6 MB, free: 12.56 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002215/0.0245, allocations: 265.7 kB / 416.9 MB, free: 12.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.02477, allocations: 76.86 kB / 416.9 MB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004806/0.02958, allocations: 5.03 MB / 422 MB, free: 6.918 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/0.02976, allocations: 284.5 kB / 422.2 MB, free: 6.617 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001678/0.02993, allocations: 100.3 kB / 422.3 MB, free: 6.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001886/0.03012, allocations: 196.4 kB / 422.5 MB, free: 6.328 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.03012, allocations: 0 / 422.5 MB, free: 6.328 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.05382, allocations: 11.67 MB / 434.2 MB, free: 10.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.245/7.299, allocations: 8.047 kB / 434.2 MB, free: 10.75 MB / 410.7 MB " [Timeout remaining time 653] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.362642467021942] Failed to read output from testmodel.py, exit status != 0: 7.400308086536825 7.571938461 7.561498073 Calling exit ...