Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.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.001327/0.001327, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00145/0.00145, allocations: 211.8 kB / 22.25 MB, free: 5.258 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.404/1.404, allocations: 230.6 MB / 256 MB, free: 7.785 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.06187/0.06187, allocations: 11.34 MB / 323.8 MB, free: 8.004 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.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",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.002166/0.002166, allocations: 67.89 kB / 451 MB, free: 10.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1117, allocations: 56.07 MB / 0.4952 GB, free: 2.129 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003336/0.1151, allocations: 1.766 MB / 0.4969 GB, free: 360 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.1163, allocations: 0.612 MB / 0.4975 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.1165, allocations: 19.81 kB / 0.4975 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.1166, allocations: 19.73 kB / 0.4975 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.1168, allocations: 39.59 kB / 0.4976 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.1171, allocations: 107.7 kB / 0.4977 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.1174, allocations: 227.4 kB / 0.4979 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.1176, allocations: 48.72 kB / 0.4979 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.1178, allocations: 91.64 kB / 0.498 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.1179, allocations: 91.52 kB / 0.4981 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.481e-05/0.118, allocations: 16 kB / 0.4981 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.325e-05/0.118, allocations: 16 kB / 0.4981 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.904e-05/0.1181, allocations: 43.84 kB / 0.4982 GB, free: 15.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.654e-05/0.1181, allocations: 83.5 kB / 0.4983 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002711/0.1184, allocations: 191.1 kB / 0.4984 GB, free: 14.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1184, allocations: 0 / 0.4984 GB, free: 14.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1184, allocations: 0 / 0.4984 GB, free: 14.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1184, allocations: 0 / 0.4984 GB, free: 14.75 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001099/0.1195, allocations: 0.5011 MB / 0.4989 GB, free: 14.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1196, allocations: 12.03 kB / 0.4989 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.269e-05/0.1196, allocations: 50.73 kB / 0.499 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.747e-05/0.1197, allocations: 24.8 kB / 0.499 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.1201, allocations: 233.8 kB / 0.4992 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.811e-05/0.1202, allocations: 97.61 kB / 0.4993 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.1203, allocations: 28.31 kB / 0.4993 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004702/0.1207, allocations: 185.4 kB / 0.4995 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1208, allocations: 0 / 0.4995 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.1208, allocations: 4 kB / 0.4995 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1208, allocations: 4 kB / 0.4995 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005056/0.1213, allocations: 143.8 kB / 0.4997 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.1224, allocations: 0.5109 MB / 0.5002 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005103/0.1229, allocations: 138.4 kB / 0.5003 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.1231, allocations: 76.8 kB / 0.5004 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.1232, allocations: 4 kB / 0.5004 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004111/0.1236, allocations: 143.2 kB / 0.5005 GB, free: 12.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 2.124e-06/0.1236, allocations: 0 / 0.5005 GB, free: 12.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009235/0.1245, allocations: 281.4 kB / 0.5008 GB, free: 12.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.1246, allocations: 55.41 kB / 0.5008 GB, free: 12.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.1248, allocations: 207.1 kB / 0.501 GB, free: 11.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.1248, allocations: 29.7 kB / 0.5011 GB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.1249, allocations: 152.2 kB / 0.5012 GB, free: 11.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.823e-05/0.125, allocations: 31.78 kB / 0.5012 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.284e-05/0.1251, allocations: 57.64 kB / 0.5013 GB, free: 11.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1252, allocations: 330.8 kB / 0.5016 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.1255, allocations: 105.6 kB / 0.5017 GB, free: 11.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.1258, allocations: 141.1 kB / 0.5018 GB, free: 11.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005264/0.1263, allocations: 200.9 kB / 0.502 GB, free: 10.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1263, allocations: 0 / 0.502 GB, free: 10.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006856/0.127, allocations: 311.2 kB / 0.5023 GB, free: 10.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.1271, allocations: 29.7 kB / 0.5024 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1271, allocations: 4 kB / 0.5024 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1271, allocations: 0 / 0.5024 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000695/0.1278, allocations: 67.94 kB / 0.5024 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.1278, allocations: 8.062 kB / 0.5024 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.128, allocations: 27.97 kB / 0.5025 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.128, allocations: 7.938 kB / 0.5025 GB, free: 10.34 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,FOaw.ts,$whenCondition2,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0001363/0.1281, allocations: 146.2 kB / 0.5026 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.1282, allocations: 19.86 kB / 0.5026 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.399e-05/0.1282, allocations: 17.41 kB / 0.5026 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1282, allocations: 3.984 kB / 0.5027 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1282, allocations: 0 / 0.5027 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.1283, allocations: 4 kB / 0.5027 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003165/0.1286, allocations: 220.6 kB / 0.5029 GB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1286, allocations: 3.938 kB / 0.5029 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007299/0.1293, allocations: 67.94 kB / 0.5029 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.1293, allocations: 3.984 kB / 0.5029 GB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.1293, allocations: 4 kB / 0.5029 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.1293, allocations: 8 kB / 0.5029 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1293, allocations: 3.938 kB / 0.503 GB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008769/0.1302, allocations: 312.7 kB / 0.5033 GB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.938e-05/0.1302, allocations: 15.86 kB / 0.5033 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.1303, allocations: 12.03 kB / 0.5033 GB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.1304, allocations: 23.97 kB / 0.5033 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.582e-05/0.1305, allocations: 19.97 kB / 0.5033 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.1305, allocations: 7.984 kB / 0.5033 GB, free: 9.391 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001287/0.1307, allocations: 144.6 kB / 0.5035 GB, free: 9.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1307, allocations: 4 kB / 0.5035 GB, free: 9.246 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002258/0.1309, allocations: 31.94 kB / 0.5035 GB, free: 9.215 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.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 (12): * Single equations (assignments): 9 * 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.001178/0.1321, allocations: 0.8698 MB / 0.5043 GB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006334/0.1327, allocations: 252.9 kB / 0.5046 GB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1327, allocations: 0 / 0.5046 GB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.133, allocations: 83.88 kB / 0.5047 GB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.1332, allocations: 21.53 kB / 0.5047 GB, free: 7.941 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.1366, allocations: 2.345 MB / 0.507 GB, free: 5.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.1367, allocations: 125.2 kB / 0.5071 GB, free: 5.324 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.785e-05/0.1368, allocations: 25.42 kB / 0.5071 GB, free: 5.301 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.1369, allocations: 67.42 kB / 0.5072 GB, free: 5.234 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1369, allocations: 0 / 0.5072 GB, free: 5.234 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0327/0.1696, allocations: 4.81 MB / 0.5119 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.85, allocations: 4 kB / 0.5119 GB, free: 0.582 MB / 382.1 MB " [Timeout remaining time 649] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.696161376312375] Failed to read output from testmodel.py, exit status != 0: 11.191966839134693 11.203046551 11.082155792 Calling exit ...