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.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.001419/0.001419, 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.001442/0.001442, allocations: 187.9 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.425/1.425, allocations: 225.6 MB / 250.8 MB, free: 2.895 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.06291/0.06291, allocations: 11.35 MB / 317.4 MB, free: 292 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.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: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 67.89 kB / 442.2 MB, free: 5.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.249, allocations: 54.87 MB / 497.1 MB, free: 24.43 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.00356/0.2526, allocations: 2.501 MB / 499.6 MB, free: 22.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.2547, allocations: 1.461 MB / 0.4893 GB, free: 21.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003421/0.2551, allocations: 21.88 kB / 0.4893 GB, free: 21.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000715/0.2558, allocations: 231.9 kB / 0.4895 GB, free: 21.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004989/0.2563, allocations: 165.1 kB / 0.4897 GB, free: 21.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.2573, allocations: 425.5 kB / 0.4901 GB, free: 20.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007625/0.258, allocations: 0.6161 MB / 0.4907 GB, free: 20.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.2582, allocations: 59.2 kB / 0.4907 GB, free: 20.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.2585, allocations: 230 kB / 0.491 GB, free: 20.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002894/0.2588, allocations: 241.2 kB / 0.4912 GB, free: 20.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.468e-05/0.2589, allocations: 29.97 kB / 0.4912 GB, free: 20.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.2592, allocations: 152.4 kB / 0.4914 GB, free: 20.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.2593, allocations: 136 kB / 0.4915 GB, free: 20.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.2595, allocations: 213.9 kB / 0.4917 GB, free: 19.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000697/0.2602, allocations: 0.534 MB / 0.4922 GB, free: 19.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2602, allocations: 0 / 0.4922 GB, free: 19.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2602, allocations: 0 / 0.4922 GB, free: 19.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.2602, allocations: 3.984 kB / 0.4922 GB, free: 19.5 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001235/0.2615, allocations: 0.8197 MB / 0.493 GB, free: 18.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.2615, allocations: 9.188 kB / 0.493 GB, free: 18.81 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.864e-05/0.2616, allocations: 75.38 kB / 0.4931 GB, free: 18.74 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.2617, allocations: 60.88 kB / 0.4932 GB, free: 18.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000535/0.2622, allocations: 383.6 kB / 0.4935 GB, free: 18.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.2622, allocations: 27.47 kB / 0.4936 GB, free: 18.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.2623, allocations: 43.7 kB / 0.4936 GB, free: 18.37 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006299/0.2629, allocations: 494 kB / 0.4941 GB, free: 18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/0.263, allocations: 9.375 kB / 0.4941 GB, free: 17.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.263, allocations: 11.91 kB / 0.4941 GB, free: 17.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.263, allocations: 9.375 kB / 0.4941 GB, free: 17.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004636/0.2635, allocations: 310.5 kB / 0.4944 GB, free: 17.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.2653, allocations: 1.733 MB / 0.4961 GB, free: 16.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005121/0.2659, allocations: 217.5 kB / 0.4963 GB, free: 16.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.2661, allocations: 141.7 kB / 0.4964 GB, free: 16.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-05/0.2661, allocations: 7.5 kB / 0.4964 GB, free: 16.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000333/0.2664, allocations: 246.5 kB / 0.4967 GB, free: 15.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 2.044e-06/0.2664, allocations: 0 / 0.4967 GB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008677/0.2673, allocations: 0.5368 MB / 0.4972 GB, free: 15.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.2673, allocations: 115.3 kB / 0.4973 GB, free: 15.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005517/0.2679, allocations: 0.5192 MB / 0.4978 GB, free: 15.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.2679, allocations: 31.98 kB / 0.4978 GB, free: 15.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.2681, allocations: 275.7 kB / 0.4981 GB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.274e-05/0.2681, allocations: 96.22 kB / 0.4982 GB, free: 14.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.2682, allocations: 86.5 kB / 0.4983 GB, free: 14.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.407e-05/0.2683, allocations: 364.6 kB / 0.4986 GB, free: 14.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.2685, allocations: 157.6 kB / 0.4988 GB, free: 14.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002655/0.2688, allocations: 352 kB / 0.4991 GB, free: 13.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.2701, allocations: 0.7825 MB / 0.4999 GB, free: 13.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.2701, allocations: 1.062 kB / 0.4999 GB, free: 13.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008248/0.271, allocations: 0.5658 MB / 0.5004 GB, free: 13.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.271, allocations: 37.94 kB / 0.5005 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.271, allocations: 5.5 kB / 0.5005 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.271, allocations: 6.875 kB / 0.5005 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.2714, allocations: 90.7 kB / 0.5006 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.2714, allocations: 14.17 kB / 0.5006 GB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.2716, allocations: 63.14 kB / 0.5006 GB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.57e-05/0.2717, allocations: 24.81 kB / 0.5007 GB, free: 12.94 MB / 366.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.000325/0.272, allocations: 239.9 kB / 0.5009 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.455e-05/0.2721, allocations: 50.8 kB / 0.5009 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007532/0.2728, allocations: 480.7 kB / 0.5014 GB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.2728, allocations: 6.344 kB / 0.5014 GB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2728, allocations: 0 / 0.5014 GB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.2729, allocations: 0 / 0.5014 GB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004016/0.2733, allocations: 403.3 kB / 0.5018 GB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2733, allocations: 0 / 0.5018 GB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.2735, allocations: 45.09 kB / 0.5018 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.2735, allocations: 5.375 kB / 0.5018 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.241e-05/0.2735, allocations: 21.36 kB / 0.5019 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.2736, allocations: 5.312 kB / 0.5019 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2736, allocations: 0 / 0.5019 GB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009216/0.2745, allocations: 0.6594 MB / 0.5025 GB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.2746, allocations: 54.69 kB / 0.5026 GB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.719e-05/0.2746, allocations: 10.38 kB / 0.5026 GB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.2748, allocations: 23.36 kB / 0.5026 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.537e-05/0.2749, allocations: 18.88 kB / 0.5026 GB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.2749, allocations: 12.8 kB / 0.5026 GB, free: 11.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000371/0.2753, allocations: 355.8 kB / 0.503 GB, free: 11.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2753, allocations: 1.406 kB / 0.503 GB, free: 11.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004811/0.2757, allocations: 114.7 kB / 0.5031 GB, free: 11.36 MB / 366.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 (25): * Single equations (assignments): 22 * 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.002486/0.2782, allocations: 1.544 MB / 0.5046 GB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007871/0.279, allocations: 449.5 kB / 0.505 GB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.279, allocations: 0 / 0.505 GB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.2793, allocations: 226.5 kB / 0.5052 GB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.2798, allocations: 83.67 kB / 0.5053 GB, free: 9.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004955/0.2847, allocations: 4.483 MB / 0.5097 GB, free: 6.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.285, allocations: 0.862 MB / 0.5105 GB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002205/0.2852, allocations: 71.31 kB / 0.5106 GB, free: 5.184 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.2854, allocations: 175.4 kB / 0.5108 GB, free: 5.012 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2854, allocations: 4 kB / 0.5108 GB, free: 5.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04252/0.3279, allocations: 10.08 MB / 0.5206 GB, free: 10.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.13, allocations: 7.203 kB / 0.5206 GB, free: 10.98 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.762976530008018] Failed to read output from testmodel.py, exit status != 0: 12.298573964973912 12.314544726 12.05101814 Calling exit ...