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.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.001362/0.001362, allocations: 106.5 kB / 16.45 MB, free: 6.508 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.001743/0.001743, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.512/1.512, allocations: 230.6 MB / 252.8 MB, free: 9.113 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.06503/0.06503, 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.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: 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.002001/0.002001, allocations: 63.91 kB / 445.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1145, allocations: 56.02 MB / 0.4901 GB, free: 5.574 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.002979/0.1175, allocations: 1.74 MB / 0.4918 GB, free: 3.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.1186, allocations: 0.6388 MB / 0.4924 GB, free: 3.176 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.365e-05/0.1187, allocations: 7.938 kB / 0.4924 GB, free: 3.168 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.1188, allocations: 23.73 kB / 0.4924 GB, free: 3.145 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.823e-05/0.1189, allocations: 27.72 kB / 0.4924 GB, free: 3.117 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.1191, allocations: 79.78 kB / 0.4925 GB, free: 3.039 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002579/0.1194, allocations: 179.5 kB / 0.4927 GB, free: 2.863 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.1195, allocations: 21.83 kB / 0.4927 GB, free: 2.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.1197, allocations: 87.56 kB / 0.4928 GB, free: 2.754 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.1198, allocations: 67.69 kB / 0.4929 GB, free: 2.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.1198, allocations: 12 kB / 0.4929 GB, free: 2.676 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.203e-05/0.1199, allocations: 20 kB / 0.4929 GB, free: 2.656 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.791e-05/0.1199, allocations: 31.84 kB / 0.4929 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.266e-05/0.12, allocations: 59.66 kB / 0.493 GB, free: 2.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.1202, allocations: 155.2 kB / 0.4931 GB, free: 2.414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1202, allocations: 0 / 0.4931 GB, free: 2.414 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1202, allocations: 4 kB / 0.4931 GB, free: 2.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.1202, allocations: 0 / 0.4931 GB, free: 2.41 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.001008/0.1212, allocations: 0.5197 MB / 0.4936 GB, free: 1.836 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.1213, allocations: 8.031 kB / 0.4937 GB, free: 1.828 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.549e-05/0.1213, allocations: 42.69 kB / 0.4937 GB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.1215, allocations: 28.78 kB / 0.4937 GB, free: 1.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.1218, allocations: 252.9 kB / 0.494 GB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.453e-05/0.1219, allocations: 59.97 kB / 0.494 GB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.1219, allocations: 12.38 kB / 0.494 GB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004083/0.1223, allocations: 141.4 kB / 0.4942 GB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.1223, allocations: 0 / 0.4942 GB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.1224, allocations: 4 kB / 0.4942 GB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1224, allocations: 4 kB / 0.4942 GB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005187/0.1229, allocations: 115.9 kB / 0.4943 GB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008239/0.1237, allocations: 436.4 kB / 0.4947 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.1242, allocations: 118.5 kB / 0.4948 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002531/0.1245, allocations: 60.8 kB / 0.4949 GB, free: 460 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.1245, allocations: 4 kB / 0.4949 GB, free: 456 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000404/0.1249, allocations: 127.2 kB / 0.495 GB, free: 316 kB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.1249, allocations: 0 / 0.495 GB, free: 316 kB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0009029/0.1258, allocations: 237.5 kB / 0.4952 GB, free: 72 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.1258, allocations: 59.41 kB / 0.4953 GB, free: 0 / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.126, allocations: 183.2 kB / 0.4955 GB, free: 15.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.1261, allocations: 25.7 kB / 0.4955 GB, free: 15.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.1262, allocations: 128.4 kB / 0.4956 GB, free: 15.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.1262, allocations: 27.78 kB / 0.4956 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/0.1263, allocations: 38.08 kB / 0.4957 GB, free: 15.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1264, allocations: 326.8 kB / 0.496 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/0.1267, allocations: 67.94 kB / 0.496 GB, free: 15.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.127, allocations: 89.06 kB / 0.4961 GB, free: 15.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005423/0.1275, allocations: 180.8 kB / 0.4963 GB, free: 14.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1275, allocations: 0 / 0.4963 GB, free: 14.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007125/0.1283, allocations: 231.1 kB / 0.4965 GB, free: 14.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.883e-05/0.1283, allocations: 41.64 kB / 0.4966 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1283, allocations: 0 / 0.4966 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1283, allocations: 4 kB / 0.4966 GB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.1285, allocations: 27.95 kB / 0.4966 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.1285, allocations: 4 kB / 0.4966 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.1288, allocations: 43.92 kB / 0.4966 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.1288, allocations: 4 kB / 0.4966 GB, free: 14.52 MB / 382.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.0001253/0.1289, allocations: 128 kB / 0.4968 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.1289, allocations: 19.78 kB / 0.4968 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.374e-05/0.129, allocations: 21.39 kB / 0.4968 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.129, allocations: 4 kB / 0.4968 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.129, allocations: 0 / 0.4968 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.129, allocations: 0 / 0.4968 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.1292, allocations: 221.5 kB / 0.497 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1293, allocations: 4 kB / 0.497 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.1294, allocations: 23.97 kB / 0.497 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1294, allocations: 7.938 kB / 0.497 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.1294, allocations: 0 / 0.497 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1294, allocations: 3.984 kB / 0.497 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1294, allocations: 0 / 0.497 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006226/0.1301, allocations: 200.9 kB / 0.4972 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.473e-05/0.1301, allocations: 89.02 kB / 0.4973 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.1302, allocations: 15.92 kB / 0.4973 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.1304, allocations: 19.97 kB / 0.4974 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/0.1304, allocations: 19.97 kB / 0.4974 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.1304, allocations: 4 kB / 0.4974 GB, free: 13.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.1306, allocations: 132.4 kB / 0.4975 GB, free: 13.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1306, allocations: 0 / 0.4975 GB, free: 13.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002803/0.1308, allocations: 31.92 kB / 0.4975 GB, free: 13.5 MB / 382.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.0009632/0.1318, allocations: 0.7567 MB / 0.4983 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006491/0.1324, allocations: 199.2 kB / 0.4985 GB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1324, allocations: 4.188 kB / 0.4985 GB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.1327, allocations: 71.88 kB / 0.4985 GB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.133, allocations: 26.73 kB / 0.4986 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00323/0.1362, allocations: 1.947 MB / 0.5005 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.1366, allocations: 0.7123 MB / 0.5012 GB, free: 9.617 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.371e-05/0.1367, allocations: 17.08 kB / 0.5012 GB, free: 9.598 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.785e-05/0.1368, allocations: 43.42 kB / 0.5012 GB, free: 9.555 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1368, allocations: 0 / 0.5012 GB, free: 9.555 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02557/0.1623, allocations: 3.538 MB / 0.5047 GB, free: 6.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.215/8.377, allocations: 22.39 kB / 0.5047 GB, free: 6.156 MB / 382.1 MB " [Timeout remaining time 652] (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: 11.336983454995789] Failed to read output from testmodel.py, exit status != 0: 8.446580599003937 8.670295086 8.547631988000001 Calling exit ...