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.001333/0.001333, 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.001675/0.001675, allocations: 206.7 kB / 22.24 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.456/1.456, allocations: 230.6 MB / 256 MB, free: 7.781 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.0639/0.0639, allocations: 11.34 MB / 323.8 MB, free: 8.008 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.002253/0.002253, allocations: 67.89 kB / 451 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1132, allocations: 56.06 MB / 0.4952 GB, free: 2.148 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.003476/0.1167, allocations: 1.727 MB / 0.4968 GB, free: 420 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.1179, allocations: 0.5883 MB / 0.4974 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1181, allocations: 7.938 kB / 0.4974 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.1182, allocations: 19.73 kB / 0.4974 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.1183, allocations: 39.66 kB / 0.4975 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.1186, allocations: 91.81 kB / 0.4976 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.1189, allocations: 203.4 kB / 0.4978 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.1191, allocations: 30 kB / 0.4978 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1192, allocations: 87.64 kB / 0.4979 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.1194, allocations: 75.59 kB / 0.4979 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.1194, allocations: 16 kB / 0.498 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.395e-05/0.1194, allocations: 20 kB / 0.498 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.359e-05/0.1195, allocations: 39.89 kB / 0.498 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.601e-05/0.1196, allocations: 63.66 kB / 0.4981 GB, free: 15.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.1198, allocations: 179.1 kB / 0.4982 GB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1198, allocations: 0 / 0.4982 GB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1198, allocations: 0 / 0.4982 GB, free: 14.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1198, allocations: 0 / 0.4982 GB, free: 14.96 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001119/0.121, allocations: 0.5085 MB / 0.4987 GB, free: 14.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.121, allocations: 12.03 kB / 0.4988 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.738e-05/0.1211, allocations: 46.73 kB / 0.4988 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.1211, allocations: 20.8 kB / 0.4988 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003805/0.1215, allocations: 198.1 kB / 0.499 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.914e-05/0.1216, allocations: 67.97 kB / 0.4991 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.409e-05/0.1216, allocations: 20.38 kB / 0.4991 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.1221, allocations: 188 kB / 0.4993 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1221, allocations: 4 kB / 0.4993 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.1222, allocations: 7.938 kB / 0.4993 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.1222, allocations: 4 kB / 0.4993 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005853/0.1227, allocations: 155.8 kB / 0.4994 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009928/0.1237, allocations: 0.5777 MB / 0.5 GB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006048/0.1243, allocations: 162.4 kB / 0.5002 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.1246, allocations: 76.78 kB / 0.5002 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.1246, allocations: 0 / 0.5002 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004485/0.1251, allocations: 171.2 kB / 0.5004 GB, free: 12.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.1251, allocations: 0 / 0.5004 GB, free: 12.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.001072/0.1262, allocations: 299.6 kB / 0.5007 GB, free: 12.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.1262, allocations: 55.41 kB / 0.5007 GB, free: 12.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.1264, allocations: 199.8 kB / 0.5009 GB, free: 12.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/0.1265, allocations: 33.7 kB / 0.501 GB, free: 11.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.1266, allocations: 140.2 kB / 0.5011 GB, free: 11.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.131e-05/0.1266, allocations: 35.72 kB / 0.5011 GB, free: 11.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.462e-05/0.1267, allocations: 53.66 kB / 0.5012 GB, free: 11.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1268, allocations: 326.8 kB / 0.5015 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003766/0.1272, allocations: 155.2 kB / 0.5016 GB, free: 11.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003853/0.1276, allocations: 195.5 kB / 0.5018 GB, free: 11.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006376/0.1282, allocations: 266.9 kB / 0.5021 GB, free: 10.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1283, allocations: 0 / 0.5021 GB, free: 10.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008595/0.1291, allocations: 404 kB / 0.5025 GB, free: 10.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.919e-05/0.1292, allocations: 65.73 kB / 0.5025 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1292, allocations: 4 kB / 0.5025 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.1292, allocations: 4 kB / 0.5025 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000398/0.1296, allocations: 60.08 kB / 0.5026 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.1296, allocations: 4 kB / 0.5026 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.1299, allocations: 47.83 kB / 0.5026 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.1299, allocations: 8 kB / 0.5026 GB, free: 10.1 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.0001339/0.13, allocations: 137.8 kB / 0.5028 GB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.1301, allocations: 19.84 kB / 0.5028 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.535e-05/0.1301, allocations: 21.45 kB / 0.5028 GB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1301, allocations: 0 / 0.5028 GB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1301, allocations: 3.938 kB / 0.5028 GB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1301, allocations: 0 / 0.5028 GB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.1304, allocations: 208.6 kB / 0.503 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.1304, allocations: 3.938 kB / 0.503 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003971/0.1308, allocations: 51.95 kB / 0.5031 GB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1308, allocations: 0 / 0.5031 GB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.1308, allocations: 3.938 kB / 0.5031 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.1308, allocations: 3.984 kB / 0.5031 GB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1308, allocations: 0 / 0.5031 GB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.1318, allocations: 345.9 kB / 0.5034 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.68e-05/0.1318, allocations: 23.83 kB / 0.5034 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.1319, allocations: 11.98 kB / 0.5034 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.1321, allocations: 31.95 kB / 0.5035 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.347e-05/0.1322, allocations: 27.95 kB / 0.5035 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.1322, allocations: 0 / 0.5035 GB, free: 9.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001341/0.1323, allocations: 149.5 kB / 0.5036 GB, free: 9.008 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1323, allocations: 4 kB / 0.5036 GB, free: 9.004 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002481/0.1326, allocations: 36 kB / 0.5037 GB, free: 8.969 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.001314/0.1339, allocations: 0.881 MB / 0.5045 GB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008169/0.1347, allocations: 370.3 kB / 0.5049 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1347, allocations: 4 kB / 0.5049 GB, free: 7.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003339/0.135, allocations: 91.92 kB / 0.505 GB, free: 7.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.1353, allocations: 31.94 kB / 0.505 GB, free: 7.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003918/0.1392, allocations: 2.543 MB / 0.5075 GB, free: 4.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001118/0.1393, allocations: 120.1 kB / 0.5076 GB, free: 4.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.594e-05/0.1394, allocations: 13.48 kB / 0.5076 GB, free: 4.668 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.1395, allocations: 59.41 kB / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1395, allocations: 0 / 0.5077 GB, free: 4.609 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2808/0.4204, allocations: 5.11 MB / 0.5127 GB, free: 23.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.12, allocations: 7.031 kB / 0.5127 GB, free: 23.9 MB / 382.1 MB " [Timeout remaining time 649] (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: 13.78924931306392] Failed to read output from testmodel.py, exit status != 0: 11.22114979987964 11.235152979 11.112441585 Calling exit ...