Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.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.00134/0.00134, allocations: 103.2 kB / 16.45 MB, free: 6.453 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.001447/0.001447, allocations: 208.9 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.519/1.519, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.06668/0.06668, allocations: 11.31 MB / 320.2 MB, free: 9.406 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.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",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.003111/0.003111, allocations: 63.89 kB / 445.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1261, allocations: 56.01 MB / 0.4901 GB, free: 5.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.003371/0.1294, allocations: 1.781 MB / 0.4918 GB, free: 3.797 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.1308, allocations: 0.6389 MB / 0.4924 GB, free: 3.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.131, allocations: 7.938 kB / 0.4924 GB, free: 3.145 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.1311, allocations: 19.73 kB / 0.4925 GB, free: 3.125 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.1312, allocations: 35.66 kB / 0.4925 GB, free: 3.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.1315, allocations: 87.81 kB / 0.4926 GB, free: 3.004 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003338/0.1318, allocations: 207.4 kB / 0.4928 GB, free: 2.801 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.132, allocations: 29.89 kB / 0.4928 GB, free: 2.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.1321, allocations: 87.67 kB / 0.4929 GB, free: 2.684 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.1323, allocations: 83.59 kB / 0.493 GB, free: 2.602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.162e-05/0.1323, allocations: 16 kB / 0.493 GB, free: 2.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.129e-05/0.1323, allocations: 16 kB / 0.493 GB, free: 2.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.021e-05/0.1324, allocations: 35.84 kB / 0.493 GB, free: 2.535 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1325, allocations: 87.52 kB / 0.4931 GB, free: 2.449 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.1328, allocations: 167.2 kB / 0.4933 GB, free: 2.285 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.1328, allocations: 4 kB / 0.4933 GB, free: 2.281 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1328, allocations: 0 / 0.4933 GB, free: 2.281 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.1328, allocations: 4 kB / 0.4933 GB, free: 2.277 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001385/0.1342, allocations: 0.5721 MB / 0.4938 GB, free: 1.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.1343, allocations: 12.03 kB / 0.4939 GB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.529e-05/0.1343, allocations: 46.73 kB / 0.4939 GB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.148e-05/0.1344, allocations: 24.8 kB / 0.4939 GB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.1349, allocations: 260.8 kB / 0.4942 GB, free: 1.262 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.694e-05/0.1349, allocations: 63.97 kB / 0.4942 GB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.135, allocations: 20.3 kB / 0.4942 GB, free: 1.168 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005813/0.1356, allocations: 197.7 kB / 0.4944 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1356, allocations: 0 / 0.4944 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.1356, allocations: 8 kB / 0.4944 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1356, allocations: 3.938 kB / 0.4944 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006668/0.1363, allocations: 159.8 kB / 0.4946 GB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.1374, allocations: 0.6372 MB / 0.4952 GB, free: 100 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007161/0.1382, allocations: 158.4 kB / 0.4954 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.1385, allocations: 80.78 kB / 0.4955 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.1385, allocations: 3.984 kB / 0.4955 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005351/0.1391, allocations: 163.2 kB / 0.4956 GB, free: 15.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.1391, allocations: 4 kB / 0.4956 GB, free: 15.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.001216/0.1403, allocations: 289.5 kB / 0.4959 GB, free: 15.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.1404, allocations: 63.41 kB / 0.4959 GB, free: 15.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.1406, allocations: 200.8 kB / 0.4961 GB, free: 15.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.1406, allocations: 29.7 kB / 0.4962 GB, free: 15.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.1408, allocations: 140.2 kB / 0.4963 GB, free: 14.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.205e-05/0.1408, allocations: 35.73 kB / 0.4963 GB, free: 14.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-05/0.1409, allocations: 45.7 kB / 0.4964 GB, free: 14.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1411, allocations: 330.8 kB / 0.4967 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003757/0.1414, allocations: 87.92 kB / 0.4968 GB, free: 14.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.1418, allocations: 137.9 kB / 0.4969 GB, free: 14.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007411/0.1426, allocations: 275.8 kB / 0.4972 GB, free: 13.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1426, allocations: 4 kB / 0.4972 GB, free: 13.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009202/0.1435, allocations: 344.7 kB / 0.4975 GB, free: 13.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.225e-05/0.1436, allocations: 55.41 kB / 0.4976 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.1436, allocations: 11.92 kB / 0.4976 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.1436, allocations: 4 kB / 0.4976 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000458/0.1441, allocations: 63.88 kB / 0.4976 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.1441, allocations: 4 kB / 0.4976 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.1444, allocations: 47.97 kB / 0.4977 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.1444, allocations: 8 kB / 0.4977 GB, free: 13.4 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Itr.ts,Input.count,$PRE.Input.count,Input.T_start,$PRE.Input.T_start,$whenCondition1,$whenCondition3,I.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 2 * 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.0001618/0.1446, allocations: 133.8 kB / 0.4978 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.509e-05/0.1446, allocations: 19.83 kB / 0.4978 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.171e-05/0.1447, allocations: 25.53 kB / 0.4979 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1447, allocations: 0 / 0.4979 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1447, allocations: 4 kB / 0.4979 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1447, allocations: 0 / 0.4979 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002766/0.145, allocations: 245.5 kB / 0.4981 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.145, allocations: 7.938 kB / 0.4981 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004275/0.1454, allocations: 47.95 kB / 0.4982 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.1454, allocations: 4 kB / 0.4982 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.19e-05/0.1454, allocations: 7.984 kB / 0.4982 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1454, allocations: 3.938 kB / 0.4982 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1454, allocations: 4 kB / 0.4982 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.1466, allocations: 348 kB / 0.4985 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.91e-05/0.1467, allocations: 96.89 kB / 0.4986 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.1467, allocations: 7.984 kB / 0.4986 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/0.147, allocations: 31.95 kB / 0.4986 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.715e-05/0.1471, allocations: 23.97 kB / 0.4987 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.1471, allocations: 4 kB / 0.4987 GB, free: 12.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.1472, allocations: 140.5 kB / 0.4988 GB, free: 12.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1472, allocations: 4 kB / 0.4988 GB, free: 12.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002612/0.1475, allocations: 43.94 kB / 0.4988 GB, free: 12.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (I.y,Itr.y) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,Input.T_start,Input.count,Itr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 2 (Input.count,TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001516/0.149, allocations: 0.8777 MB / 0.4997 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008813/0.1499, allocations: 312.9 kB / 0.5 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1499, allocations: 4 kB / 0.5 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003709/0.1502, allocations: 95.84 kB / 0.5001 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.1505, allocations: 30.42 kB / 0.5001 GB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.1546, allocations: 2.322 MB / 0.5024 GB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.1549, allocations: 0.7279 MB / 0.5031 GB, free: 7.559 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.23e-05/0.155, allocations: 21.53 kB / 0.5031 GB, free: 7.539 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.1551, allocations: 55.41 kB / 0.5032 GB, free: 7.484 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.1551, allocations: 0 / 0.5032 GB, free: 7.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03014/0.1853, allocations: 4.398 MB / 0.5075 GB, free: 3.246 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.15/8.335, allocations: 15.94 kB / 0.5075 GB, free: 3.23 MB / 382.1 MB " [Timeout remaining time 652] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.262864422998973] Failed to read output from testmodel.py, exit status != 0: 8.407248805000563 8.622980339 8.48545294 Calling exit ...