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.001343/0.001343, allocations: 101.7 kB / 16.45 MB, free: 6.449 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.001442/0.001442, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.494/1.494, allocations: 230.6 MB / 252.8 MB, free: 8.93 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.06774/0.06774, allocations: 11.32 MB / 320.2 MB, free: 9.402 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.002851/0.002851, allocations: 67.91 kB / 445.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1495, allocations: 56 MB / 0.4901 GB, free: 5.605 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.006623/0.1561, allocations: 2.491 MB / 0.4925 GB, free: 3.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004415/0.1606, allocations: 1.589 MB / 0.494 GB, free: 1.492 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000392/0.1609, allocations: 19.81 kB / 0.4941 GB, free: 1.473 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.162, allocations: 238.8 kB / 0.4943 GB, free: 1.238 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008035/0.1628, allocations: 199 kB / 0.4945 GB, free: 1.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001549/0.1644, allocations: 378.1 kB / 0.4948 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001087/0.1654, allocations: 0.5819 MB / 0.4954 GB, free: 96 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.1657, allocations: 73.25 kB / 0.4955 GB, free: 20 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004312/0.1661, allocations: 227.2 kB / 0.4957 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004587/0.1666, allocations: 246.9 kB / 0.4959 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.053e-05/0.1667, allocations: 28 kB / 0.496 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004051/0.1671, allocations: 159.7 kB / 0.4961 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002245/0.1673, allocations: 135.5 kB / 0.4962 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.1676, allocations: 214.6 kB / 0.4964 GB, free: 15.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.1686, allocations: 0.5444 MB / 0.497 GB, free: 14.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1686, allocations: 0 / 0.497 GB, free: 14.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1686, allocations: 0 / 0.497 GB, free: 14.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1686, allocations: 0 / 0.497 GB, free: 14.48 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.002006/0.1706, allocations: 0.8955 MB / 0.4979 GB, free: 13.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.1707, allocations: 12.03 kB / 0.4979 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.1708, allocations: 70.72 kB / 0.4979 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.171, allocations: 64.52 kB / 0.498 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009524/0.1719, allocations: 462.7 kB / 0.4984 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.172, allocations: 25.03 kB / 0.4985 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.812e-05/0.1721, allocations: 39.94 kB / 0.4985 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.1731, allocations: 430 kB / 0.4989 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.417e-05/0.1731, allocations: 11.94 kB / 0.4989 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-05/0.1732, allocations: 15.98 kB / 0.4989 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.1732, allocations: 8 kB / 0.4989 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008495/0.174, allocations: 278 kB / 0.4992 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.1776, allocations: 1.775 MB / 0.5009 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.1784, allocations: 194.5 kB / 0.5011 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003473/0.1788, allocations: 108.8 kB / 0.5012 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.935e-05/0.1788, allocations: 4 kB / 0.5012 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005888/0.1794, allocations: 213.6 kB / 0.5014 GB, free: 9.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.845e-06/0.1794, allocations: 3.938 kB / 0.5014 GB, free: 9.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001474/0.1809, allocations: 495.8 kB / 0.5019 GB, free: 9.145 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.181, allocations: 106.8 kB / 0.502 GB, free: 9.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.182, allocations: 0.5176 MB / 0.5025 GB, free: 8.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.034e-05/0.1821, allocations: 33.7 kB / 0.5026 GB, free: 8.445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003463/0.1824, allocations: 284.2 kB / 0.5028 GB, free: 8.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.1826, allocations: 95.27 kB / 0.5029 GB, free: 8.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.1828, allocations: 97.59 kB / 0.503 GB, free: 7.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002779/0.183, allocations: 366.9 kB / 0.5034 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003563/0.1834, allocations: 116.5 kB / 0.5035 GB, free: 7.488 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005341/0.1839, allocations: 276.6 kB / 0.5037 GB, free: 7.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002618/0.1866, allocations: 0.7623 MB / 0.5045 GB, free: 6.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.1866, allocations: 7.938 kB / 0.5045 GB, free: 6.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001497/0.1881, allocations: 0.5335 MB / 0.505 GB, free: 5.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.795e-05/0.1881, allocations: 37.7 kB / 0.505 GB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.1881, allocations: 4.594 kB / 0.505 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.1882, allocations: 12 kB / 0.5051 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.1887, allocations: 91.77 kB / 0.5051 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.14e-05/0.1887, allocations: 11.98 kB / 0.5052 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003958/0.1891, allocations: 47.66 kB / 0.5052 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.576e-05/0.1892, allocations: 20 kB / 0.5052 GB, free: 5.52 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.0005065/0.1897, allocations: 254.8 kB / 0.5055 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.1898, allocations: 55.62 kB / 0.5055 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.1911, allocations: 440.3 kB / 0.5059 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.1911, allocations: 7.938 kB / 0.5059 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1911, allocations: 0 / 0.5059 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1911, allocations: 4 kB / 0.506 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007741/0.1919, allocations: 429.2 kB / 0.5064 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.1919, allocations: 0 / 0.5064 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004399/0.1923, allocations: 47.97 kB / 0.5064 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.1923, allocations: 0 / 0.5064 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.502e-05/0.1924, allocations: 19.97 kB / 0.5064 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/0.1924, allocations: 3.938 kB / 0.5064 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1924, allocations: 3.938 kB / 0.5064 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.194, allocations: 0.5938 MB / 0.507 GB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.1942, allocations: 128.8 kB / 0.5071 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.637e-05/0.1943, allocations: 12 kB / 0.5071 GB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002589/0.1946, allocations: 19.92 kB / 0.5072 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.1947, allocations: 20.09 kB / 0.5072 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.572e-05/0.1947, allocations: 12 kB / 0.5072 GB, free: 3.375 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006861/0.1954, allocations: 366.8 kB / 0.5075 GB, free: 3.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1954, allocations: 4 kB / 0.5075 GB, free: 3.016 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008011/0.1962, allocations: 111.8 kB / 0.5077 GB, free: 2.906 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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * 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.004232/0.2004, allocations: 1.481 MB / 0.5091 GB, free: 1.551 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.2016, allocations: 387 kB / 0.5095 GB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.2016, allocations: 0 / 0.5095 GB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004652/0.202, allocations: 193.1 kB / 0.5097 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007148/0.2028, allocations: 91.66 kB / 0.5097 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.249/0.4517, allocations: 4.317 MB / 0.514 GB, free: 22.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.4521, allocations: 0.8635 MB / 0.5148 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002521/0.4523, allocations: 78.39 kB / 0.5149 GB, free: 22.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.4526, allocations: 176.6 kB / 0.515 GB, free: 22.1 MB / 382.1 MB Notification: Performance of SimCode: time 2.134e-06/0.4526, allocations: 3.562 kB / 0.515 GB, free: 22.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.4916, allocations: 9.782 MB / 0.5246 GB, free: 20.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.062/9.554, allocations: 14.38 kB / 0.5246 GB, free: 20.69 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.32165204299963] Failed to read output from testmodel.py, exit status != 0: 9.687636212998768 9.707896297 9.535181911 Calling exit ...