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.00136/0.00136, allocations: 110.1 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.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.001481/0.001481, allocations: 211.2 kB / 22.13 MB, free: 5.141 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.47/1.47, allocations: 230.5 MB / 255.8 MB, free: 8.078 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.06494/0.06494, allocations: 11.36 MB / 323.5 MB, free: 8.309 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.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.002818/0.002818, allocations: 70.23 kB / 450.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1367, allocations: 56.07 MB / 0.4949 GB, free: 2.523 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003223/0.14, allocations: 1.848 MB / 0.4967 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.1412, allocations: 0.6546 MB / 0.4973 GB, free: 4 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.1414, allocations: 15.92 kB / 0.4973 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.1415, allocations: 19.73 kB / 0.4974 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.75e-05/0.1416, allocations: 39.59 kB / 0.4974 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.1419, allocations: 107.8 kB / 0.4975 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.1422, allocations: 227.2 kB / 0.4977 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.1424, allocations: 45.06 kB / 0.4978 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.1425, allocations: 99.58 kB / 0.4979 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.1426, allocations: 95.52 kB / 0.4979 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.63e-05/0.1427, allocations: 16 kB / 0.498 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.834e-05/0.1427, allocations: 20 kB / 0.498 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.011e-05/0.1428, allocations: 39.84 kB / 0.498 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.1429, allocations: 103.4 kB / 0.4981 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.1431, allocations: 191.1 kB / 0.4983 GB, free: 15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1431, allocations: 0 / 0.4983 GB, free: 15 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.1431, allocations: 7.984 kB / 0.4983 GB, free: 14.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1431, allocations: 0 / 0.4983 GB, free: 14.99 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.001116/0.1443, allocations: 0.499 MB / 0.4988 GB, free: 14.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1443, allocations: 12.03 kB / 0.4988 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.071e-05/0.1444, allocations: 50.73 kB / 0.4988 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.517e-05/0.1444, allocations: 24.8 kB / 0.4989 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004408/0.1449, allocations: 229.8 kB / 0.4991 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-05/0.145, allocations: 101.7 kB / 0.4992 GB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.145, allocations: 16.33 kB / 0.4992 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004908/0.1455, allocations: 185.9 kB / 0.4994 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1455, allocations: 0 / 0.4994 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.1455, allocations: 4 kB / 0.4994 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1455, allocations: 4 kB / 0.4994 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005056/0.146, allocations: 151.8 kB / 0.4995 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.1472, allocations: 0.5381 MB / 0.5001 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005001/0.1477, allocations: 138.3 kB / 0.5002 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.1479, allocations: 80.78 kB / 0.5003 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.1479, allocations: 4 kB / 0.5003 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004145/0.1484, allocations: 139.3 kB / 0.5004 GB, free: 12.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.1484, allocations: 0 / 0.5004 GB, free: 12.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009193/0.1493, allocations: 281.4 kB / 0.5007 GB, free: 12.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/0.1493, allocations: 59.39 kB / 0.5007 GB, free: 12.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002084/0.1496, allocations: 207.1 kB / 0.5009 GB, free: 12.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.1496, allocations: 25.7 kB / 0.501 GB, free: 12.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.1497, allocations: 144.3 kB / 0.5011 GB, free: 11.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.1497, allocations: 47.67 kB / 0.5011 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.785e-05/0.1498, allocations: 45.66 kB / 0.5012 GB, free: 11.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.15, allocations: 334.8 kB / 0.5015 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002939/0.1502, allocations: 105.6 kB / 0.5016 GB, free: 11.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.1506, allocations: 137.1 kB / 0.5017 GB, free: 11.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005199/0.1511, allocations: 207.3 kB / 0.5019 GB, free: 11.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1511, allocations: 0 / 0.5019 GB, free: 11.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006671/0.1517, allocations: 296.7 kB / 0.5022 GB, free: 10.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.1518, allocations: 33.69 kB / 0.5022 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1518, allocations: 4.094 kB / 0.5022 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1518, allocations: 4 kB / 0.5023 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000667/0.1525, allocations: 67.95 kB / 0.5023 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.1525, allocations: 4 kB / 0.5023 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.1527, allocations: 31.91 kB / 0.5023 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.1527, allocations: 12 kB / 0.5024 GB, free: 10.55 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.0001422/0.1528, allocations: 137.7 kB / 0.5025 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.364e-05/0.1529, allocations: 23.86 kB / 0.5025 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.972e-05/0.153, allocations: 25.39 kB / 0.5025 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.153, allocations: 0 / 0.5025 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.153, allocations: 0 / 0.5025 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.153, allocations: 3.938 kB / 0.5025 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.1533, allocations: 244.5 kB / 0.5028 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1533, allocations: 4 kB / 0.5028 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007581/0.154, allocations: 71.94 kB / 0.5028 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.154, allocations: 0 / 0.5028 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.154, allocations: 0 / 0.5028 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.154, allocations: 0 / 0.5028 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.154, allocations: 4 kB / 0.5029 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008698/0.1549, allocations: 324.6 kB / 0.5032 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.774e-05/0.1549, allocations: 16.03 kB / 0.5032 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.155, allocations: 11.98 kB / 0.5032 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.1552, allocations: 27.91 kB / 0.5032 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/0.1552, allocations: 19.97 kB / 0.5032 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.1552, allocations: 7.984 kB / 0.5032 GB, free: 9.578 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001327/0.1554, allocations: 144.6 kB / 0.5034 GB, free: 9.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1554, allocations: 0 / 0.5034 GB, free: 9.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.1556, allocations: 39.89 kB / 0.5034 GB, free: 9.398 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.001222/0.1568, allocations: 0.861 MB / 0.5043 GB, free: 8.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000666/0.1575, allocations: 256.8 kB / 0.5045 GB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1575, allocations: 0 / 0.5045 GB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.1578, allocations: 88.06 kB / 0.5046 GB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.1581, allocations: 27.97 kB / 0.5046 GB, free: 8.125 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/0.1616, allocations: 2.344 MB / 0.5069 GB, free: 5.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.1617, allocations: 121.2 kB / 0.507 GB, free: 5.516 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.072e-05/0.1618, allocations: 25.48 kB / 0.507 GB, free: 5.492 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.1619, allocations: 63.41 kB / 0.5071 GB, free: 5.43 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1619, allocations: 0 / 0.5071 GB, free: 5.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.1983, allocations: 4.337 MB / 0.5113 GB, free: 1.246 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.42, allocations: 3.938 kB / 0.5113 GB, free: 1.242 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.413765364792198] Failed to read output from testmodel.py, exit status != 0: 11.737852434627712 11.749643992 11.603635571 Calling exit ...