Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.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.001544/0.001544, allocations: 105.8 kB / 18.84 MB, free: 3.043 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.001803/0.001803, allocations: 187.6 kB / 22.1 MB, free: 5.148 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.587/1.587, allocations: 225.6 MB / 250.8 MB, free: 13.06 MB / 206.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.06684/0.06684, allocations: 11.35 MB / 317.4 MB, free: 13.82 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-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.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 71.89 kB / 442.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1246, allocations: 54.88 MB / 497.1 MB, free: 56 kB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.003762/0.1284, allocations: 1.738 MB / 498.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.1295, allocations: 0.5765 MB / 499.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.1296, allocations: 7.875 kB / 499.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.1298, allocations: 15.8 kB / 499.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.354e-05/0.1299, allocations: 31.72 kB / 499.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003437/0.1302, allocations: 63.88 kB / 499.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.1305, allocations: 183.4 kB / 499.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.1306, allocations: 30.02 kB / 499.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.1308, allocations: 71.7 kB / 499.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.1309, allocations: 71.67 kB / 499.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.1309, allocations: 12 kB / 499.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.377e-05/0.1309, allocations: 12 kB / 499.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.575e-05/0.131, allocations: 31.84 kB / 499.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.47e-05/0.1311, allocations: 71.59 kB / 500 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.1313, allocations: 143.3 kB / 0.4884 GB, free: 12.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1313, allocations: 0 / 0.4884 GB, free: 12.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1313, allocations: 0 / 0.4884 GB, free: 12.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.1313, allocations: 0 / 0.4884 GB, free: 12.99 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001024/0.1324, allocations: 455.2 kB / 0.4888 GB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.1324, allocations: 11.97 kB / 0.4888 GB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.477e-05/0.1324, allocations: 38.75 kB / 0.4889 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.1325, allocations: 20.83 kB / 0.4889 GB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.1329, allocations: 194.1 kB / 0.4891 GB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.759e-05/0.1329, allocations: 55.97 kB / 0.4891 GB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.133, allocations: 12.38 kB / 0.4891 GB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.1334, allocations: 145.4 kB / 0.4893 GB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.1334, allocations: 0 / 0.4893 GB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.1334, allocations: 4 kB / 0.4893 GB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1334, allocations: 4 kB / 0.4893 GB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005432/0.134, allocations: 123.9 kB / 0.4894 GB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008592/0.1348, allocations: 391.6 kB / 0.4898 GB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005147/0.1354, allocations: 126.4 kB / 0.4899 GB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.1356, allocations: 60.8 kB / 0.49 GB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.1356, allocations: 0 / 0.49 GB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004047/0.136, allocations: 127.3 kB / 0.4901 GB, free: 11.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.136, allocations: 0 / 0.4901 GB, free: 11.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0009016/0.1369, allocations: 241.5 kB / 0.4903 GB, free: 10.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.137, allocations: 55.41 kB / 0.4904 GB, free: 10.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.1372, allocations: 184 kB / 0.4905 GB, free: 10.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.1372, allocations: 29.7 kB / 0.4906 GB, free: 10.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.585e-05/0.1373, allocations: 132.2 kB / 0.4907 GB, free: 10.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.634e-05/0.1374, allocations: 27.89 kB / 0.4907 GB, free: 10.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.871e-05/0.1374, allocations: 33.7 kB / 0.4908 GB, free: 10.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1376, allocations: 326.8 kB / 0.4911 GB, free: 10.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.1379, allocations: 93.62 kB / 0.4912 GB, free: 9.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002988/0.1382, allocations: 117.1 kB / 0.4913 GB, free: 9.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000534/0.1387, allocations: 177.3 kB / 0.4914 GB, free: 9.617 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1387, allocations: 0 / 0.4914 GB, free: 9.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006886/0.1394, allocations: 260.8 kB / 0.4917 GB, free: 9.344 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.1395, allocations: 41.73 kB / 0.4917 GB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1395, allocations: 3.938 kB / 0.4917 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.1395, allocations: 0 / 0.4917 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.1397, allocations: 35.89 kB / 0.4918 GB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1397, allocations: 0 / 0.4918 GB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.1399, allocations: 31.92 kB / 0.4918 GB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.1399, allocations: 4 kB / 0.4918 GB, free: 9.223 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Ptr.ts,$whenCondition2,P.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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.0001267/0.1401, allocations: 125.8 kB / 0.4919 GB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.941e-05/0.1401, allocations: 19.84 kB / 0.4919 GB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.291e-05/0.1401, allocations: 25.38 kB / 0.492 GB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1402, allocations: 0 / 0.492 GB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1402, allocations: 0 / 0.492 GB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.1402, allocations: 0 / 0.492 GB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002316/0.1404, allocations: 200.6 kB / 0.4922 GB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1404, allocations: 0 / 0.4922 GB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.1406, allocations: 27.91 kB / 0.4922 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1406, allocations: 7.938 kB / 0.4922 GB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.1406, allocations: 0 / 0.4922 GB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1406, allocations: 4 kB / 0.4922 GB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1406, allocations: 0 / 0.4922 GB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006221/0.1412, allocations: 208.8 kB / 0.4924 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.466e-05/0.1412, allocations: 11.91 kB / 0.4924 GB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.1413, allocations: 11.88 kB / 0.4924 GB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.1415, allocations: 31.95 kB / 0.4924 GB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.444e-05/0.1416, allocations: 15.97 kB / 0.4925 GB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.1416, allocations: 4 kB / 0.4925 GB, free: 8.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001156/0.1417, allocations: 129.2 kB / 0.4926 GB, free: 8.344 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1417, allocations: 0 / 0.4926 GB, free: 8.344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002433/0.1419, allocations: 35.95 kB / 0.4926 GB, free: 8.309 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,Ptr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0009705/0.1429, allocations: 0.7417 MB / 0.4933 GB, free: 7.539 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006745/0.1436, allocations: 232.8 kB / 0.4936 GB, free: 7.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1436, allocations: 0 / 0.4936 GB, free: 7.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002815/0.1439, allocations: 68.12 kB / 0.4936 GB, free: 7.227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.1441, allocations: 23.98 kB / 0.4937 GB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003382/0.1475, allocations: 2.049 MB / 0.4957 GB, free: 5.004 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.1479, allocations: 0.7124 MB / 0.4964 GB, free: 4.266 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.592e-05/0.1479, allocations: 13.08 kB / 0.4964 GB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.805e-05/0.148, allocations: 43.42 kB / 0.4964 GB, free: 4.211 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.148, allocations: 0 / 0.4964 GB, free: 4.211 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0427/0.1907, allocations: 3.635 MB / 0.5 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.81, allocations: 7.938 kB / 0.5 GB, free: 0.7266 MB / 366.1 MB " [Timeout remaining time 648] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP_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_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.678338079014793] Failed to read output from testmodel.py, exit status != 0: 11.915604865876958 11.932592965 11.797934549 Calling exit ...