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.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.001955/0.001955, allocations: 105.8 kB / 18.84 MB, free: 3.023 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.002241/0.002241, allocations: 185.4 kB / 22.1 MB, free: 4.223 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.499/1.499, allocations: 225.6 MB / 250.8 MB, free: 2.891 MB / 190.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.06493/0.06493, allocations: 11.35 MB / 317.4 MB, free: 216 kB / 238.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.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 0.002187/0.002187, allocations: 64.09 kB / 442.2 MB, free: 5.586 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2486, allocations: 54.87 MB / 497.1 MB, free: 24.41 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003847/0.2525, allocations: 2.478 MB / 499.5 MB, free: 22.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.2546, allocations: 1.569 MB / 0.4894 GB, free: 21.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.2548, allocations: 24.34 kB / 0.4894 GB, free: 21.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006888/0.2555, allocations: 223.9 kB / 0.4896 GB, free: 21.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003353/0.2558, allocations: 177.6 kB / 0.4898 GB, free: 21.06 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008548/0.2567, allocations: 455 kB / 0.4902 GB, free: 20.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006493/0.2573, allocations: 0.6604 MB / 0.4908 GB, free: 20.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.2575, allocations: 62.48 kB / 0.4909 GB, free: 20.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002689/0.2577, allocations: 253.3 kB / 0.4912 GB, free: 20.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.258, allocations: 261.7 kB / 0.4914 GB, free: 19.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.2581, allocations: 33.62 kB / 0.4914 GB, free: 19.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.2583, allocations: 159.3 kB / 0.4916 GB, free: 19.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.2585, allocations: 145.5 kB / 0.4917 GB, free: 19.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.2586, allocations: 232.1 kB / 0.4919 GB, free: 19.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005581/0.2592, allocations: 0.574 MB / 0.4925 GB, free: 19.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2592, allocations: 1.125 kB / 0.4925 GB, free: 19.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2592, allocations: 0 / 0.4925 GB, free: 19.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.2592, allocations: 7.938 kB / 0.4925 GB, free: 19.21 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.001322/0.2605, allocations: 0.8536 MB / 0.4933 GB, free: 18.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.2606, allocations: 13.5 kB / 0.4934 GB, free: 18.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.458e-05/0.2606, allocations: 75.58 kB / 0.4934 GB, free: 18.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.2607, allocations: 66.98 kB / 0.4935 GB, free: 18.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006229/0.2614, allocations: 407.9 kB / 0.4939 GB, free: 18.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.2614, allocations: 29.31 kB / 0.4939 GB, free: 18.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.591e-05/0.2615, allocations: 43.92 kB / 0.494 GB, free: 18.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006849/0.2622, allocations: 485 kB / 0.4944 GB, free: 17.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.2622, allocations: 10.27 kB / 0.4944 GB, free: 17.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.2622, allocations: 12.75 kB / 0.4944 GB, free: 17.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.2622, allocations: 13.55 kB / 0.4945 GB, free: 17.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005218/0.2627, allocations: 320.5 kB / 0.4948 GB, free: 17.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.2649, allocations: 1.887 MB / 0.4966 GB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.2653, allocations: 221.1 kB / 0.4968 GB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.2655, allocations: 138.9 kB / 0.4969 GB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.2655, allocations: 2.484 kB / 0.4969 GB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003539/0.2659, allocations: 245 kB / 0.4972 GB, free: 15.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.853e-06/0.2659, allocations: 0 / 0.4972 GB, free: 15.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009807/0.2668, allocations: 0.5474 MB / 0.4977 GB, free: 15.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.2669, allocations: 112.1 kB / 0.4978 GB, free: 15.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005792/0.2675, allocations: 0.5459 MB / 0.4984 GB, free: 14.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.2675, allocations: 32.08 kB / 0.4984 GB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.2676, allocations: 288.5 kB / 0.4987 GB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.572e-05/0.2677, allocations: 119.5 kB / 0.4988 GB, free: 14.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.2678, allocations: 107.2 kB / 0.4989 GB, free: 14.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.495e-05/0.2679, allocations: 373.5 kB / 0.4992 GB, free: 14.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002537/0.2682, allocations: 140.4 kB / 0.4994 GB, free: 14.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.2685, allocations: 331.6 kB / 0.4997 GB, free: 13.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.2701, allocations: 0.9482 MB / 0.5006 GB, free: 13.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2701, allocations: 1.25 kB / 0.5006 GB, free: 13.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008938/0.271, allocations: 0.647 MB / 0.5012 GB, free: 12.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.271, allocations: 43.31 kB / 0.5013 GB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2711, allocations: 8.156 kB / 0.5013 GB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.2711, allocations: 8.25 kB / 0.5013 GB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003941/0.2715, allocations: 112.6 kB / 0.5014 GB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.2715, allocations: 10.44 kB / 0.5014 GB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.2717, allocations: 60.64 kB / 0.5015 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.2718, allocations: 23.66 kB / 0.5015 GB, free: 12.59 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.0002738/0.272, allocations: 275.2 kB / 0.5018 GB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.2721, allocations: 56.78 kB / 0.5018 GB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007791/0.2729, allocations: 496.9 kB / 0.5023 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.2729, allocations: 4.094 kB / 0.5023 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2729, allocations: 0 / 0.5023 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.2729, allocations: 7.922 kB / 0.5023 GB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003925/0.2733, allocations: 439.3 kB / 0.5027 GB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2733, allocations: 1.469 kB / 0.5027 GB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000364/0.2737, allocations: 61.27 kB / 0.5028 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.2737, allocations: 1.969 kB / 0.5028 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.59e-05/0.2737, allocations: 19.34 kB / 0.5028 GB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2737, allocations: 1.156 kB / 0.5028 GB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2737, allocations: 0 / 0.5028 GB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000954/0.2747, allocations: 0.6824 MB / 0.5035 GB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.592e-05/0.2747, allocations: 55.78 kB / 0.5035 GB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.568e-05/0.2748, allocations: 15.19 kB / 0.5035 GB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.275, allocations: 20.64 kB / 0.5036 GB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.821e-05/0.275, allocations: 23.45 kB / 0.5036 GB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.2751, allocations: 17.08 kB / 0.5036 GB, free: 11.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003461/0.2754, allocations: 379.9 kB / 0.504 GB, free: 11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2754, allocations: 0 / 0.504 GB, free: 11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004303/0.2758, allocations: 115.4 kB / 0.5041 GB, free: 10.98 MB / 366.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.002399/0.2782, allocations: 1.562 MB / 0.5056 GB, free: 9.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00068/0.2789, allocations: 463.3 kB / 0.506 GB, free: 9.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2789, allocations: 0 / 0.506 GB, free: 9.727 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00026/0.2792, allocations: 222.9 kB / 0.5062 GB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.2796, allocations: 86.58 kB / 0.5063 GB, free: 9.547 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004556/0.2841, allocations: 4.887 MB / 0.5111 GB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.2844, allocations: 0.882 MB / 0.512 GB, free: 3.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002182/0.2846, allocations: 96.3 kB / 0.5121 GB, free: 3.793 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.2848, allocations: 191.4 kB / 0.5122 GB, free: 3.605 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2848, allocations: 4 kB / 0.5122 GB, free: 3.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0381/0.3229, allocations: 11.08 MB / 0.5231 GB, free: 8.566 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.033/9.356, allocations: 7.922 kB / 0.5231 GB, free: 8.559 MB / 382.1 MB " [Timeout remaining time 651] (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: 12.09757555401302] Failed to read output from testmodel.py, exit status != 0: 9.48583713901462 9.502324481 9.239687734 Calling exit ...