Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTestInnerOuter.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.001292/0.001292, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001565/0.001565, allocations: 213.3 kB / 22.24 MB, free: 4.855 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.43/1.43, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.0146/0.0146, allocations: 3.274 MB / 315.7 MB, free: 15.7 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.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(ExternData.Examples.XMLTestInnerOuter,fileNamePrefix="ExternData_ExternData_Examples_XMLTestInnerOuter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTestInnerOuter,fileNamePrefix="ExternData_ExternData_Examples_XMLTestInnerOuter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData 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.002064/0.002064, allocations: 71.88 kB / 439.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1163, allocations: 54.38 MB / 493.9 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003635/0.12, allocations: 1.693 MB / 495.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003047/0.123, allocations: 1.691 MB / 497.3 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.977e-05/0.1231, allocations: 0 / 497.3 MB, free: 2.16 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:238:3-267:14:writable] Warning: Pure function 'ExternData.XMLFile' contains a call to impure function 'ExternData.Types.ExternXMLFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003756/0.1235, allocations: 47.78 kB / 497.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004283/0.1239, allocations: 123.4 kB / 497.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.1242, allocations: 87.78 kB / 497.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.1243, allocations: 99.77 kB / 497.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.717e-05/0.1244, allocations: 12.22 kB / 497.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.128e-05/0.1245, allocations: 43.78 kB / 497.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.1246, allocations: 35.84 kB / 497.7 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.1247, allocations: 8 kB / 497.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003254/0.125, allocations: 187.8 kB / 497.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.661e-05/0.1251, allocations: 23.91 kB / 497.9 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.758e-05/0.1251, allocations: 35.8 kB / 497.9 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004378/0.1256, allocations: 267.2 kB / 498.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1256, allocations: 0 / 498.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1256, allocations: 0 / 498.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1256, allocations: 0 / 498.2 MB, free: 1.203 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008066/0.1264, allocations: 411 kB / 498.6 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.1264, allocations: 12.03 kB / 498.6 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.258e-05/0.1265, allocations: 38.73 kB / 498.7 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.146e-05/0.1266, allocations: 16.89 kB / 498.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.127, allocations: 150.3 kB / 498.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.127, allocations: 4.375 kB / 498.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.127, allocations: 7.938 kB / 498.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.1273, allocations: 137 kB / 499 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1273, allocations: 0 / 499 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.1273, allocations: 8 kB / 499 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1273, allocations: 0 / 499 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.1275, allocations: 97.55 kB / 499.1 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005735/0.1281, allocations: 292.8 kB / 499.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.1284, allocations: 130.9 kB / 499.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.1286, allocations: 83.45 kB / 499.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.1286, allocations: 0 / 499.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003079/0.1289, allocations: 184.5 kB / 499.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.1289, allocations: 0 / 499.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006154/0.1295, allocations: 318.5 kB / 0.4883 GB, free: 15.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.1296, allocations: 114.8 kB / 0.4884 GB, free: 14.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001885/0.1298, allocations: 172.9 kB / 0.4886 GB, free: 14.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.1298, allocations: 33.64 kB / 0.4886 GB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.698e-05/0.1299, allocations: 92.14 kB / 0.4887 GB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.1299, allocations: 31.94 kB / 0.4888 GB, free: 14.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.03e-05/0.13, allocations: 21.72 kB / 0.4888 GB, free: 14.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.1302, allocations: 326.8 kB / 0.4891 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.1303, allocations: 81.67 kB / 0.4892 GB, free: 14.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.1304, allocations: 91.33 kB / 0.4893 GB, free: 14.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.1307, allocations: 165.1 kB / 0.4894 GB, free: 13.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1307, allocations: 4 kB / 0.4894 GB, free: 13.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004167/0.1311, allocations: 240.9 kB / 0.4896 GB, free: 13.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.889e-05/0.1311, allocations: 37.69 kB / 0.4897 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1311, allocations: 0 / 0.4897 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1312, allocations: 4 kB / 0.4897 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.215e-05/0.1312, allocations: 15.94 kB / 0.4897 GB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1312, allocations: 3.938 kB / 0.4897 GB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.804e-05/0.1313, allocations: 23.81 kB / 0.4897 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.1313, allocations: 8 kB / 0.4897 GB, free: 13.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (component.timeTable.nextEventScaled,component.timeTable.nextEvent,$PRE.component.timeTable.nextEvent,component.timeTable.last,component.timeTable.b,component.timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0001629/0.1315, allocations: 161.2 kB / 0.4899 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.118e-05/0.1315, allocations: 7.953 kB / 0.4899 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.1316, allocations: 13.05 kB / 0.4899 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1316, allocations: 0 / 0.4899 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.1316, allocations: 7.984 kB / 0.4899 GB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.1316, allocations: 7.922 kB / 0.4899 GB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.1318, allocations: 172.7 kB / 0.4901 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1318, allocations: 0 / 0.4901 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.569e-05/0.1318, allocations: 8 kB / 0.4901 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1319, allocations: 7.984 kB / 0.4901 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.1319, allocations: 7.938 kB / 0.4901 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1319, allocations: 3.938 kB / 0.4901 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1319, allocations: 0 / 0.4901 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000459/0.1323, allocations: 305.2 kB / 0.4904 GB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.579e-05/0.1324, allocations: 15.89 kB / 0.4904 GB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.1324, allocations: 11.92 kB / 0.4904 GB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.796e-05/0.1325, allocations: 8 kB / 0.4904 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.827e-05/0.1325, allocations: 11.92 kB / 0.4905 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.1325, allocations: 8.062 kB / 0.4905 GB, free: 12.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001117/0.1326, allocations: 127.2 kB / 0.4906 GB, free: 12.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1326, allocations: 0 / 0.4906 GB, free: 12.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.133, allocations: 79.75 kB / 0.4907 GB, free: 12.53 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,component.timeTable.a,component.timeTable.b,component.timeTable.last,component.timeTable.nextEvent,component.timeTable.nextEventScaled) * Number of discrete states: 6 (component.timeTable.nextEvent,component.timeTable.last,component.timeTable.nextEventScaled,component.timeTable.b,component.timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.001983/0.135, allocations: 1.147 MB / 0.4918 GB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004032/0.1354, allocations: 238.7 kB / 0.492 GB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1354, allocations: 0 / 0.492 GB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.1356, allocations: 157.1 kB / 0.4922 GB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.1358, allocations: 20.17 kB / 0.4922 GB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002658/0.1385, allocations: 2.128 MB / 0.4943 GB, free: 8.738 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.098e-05/0.1386, allocations: 81.5 kB / 0.4943 GB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.64e-05/0.1386, allocations: 28.39 kB / 0.4944 GB, free: 8.609 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-05/0.1387, allocations: 31.42 kB / 0.4944 GB, free: 8.578 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1387, allocations: 0 / 0.4944 GB, free: 8.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04015/0.1789, allocations: 5.16 MB / 0.4994 GB, free: 3.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.34, allocations: 2.656 kB / 0.4994 GB, free: 3.457 MB / 366.1 MB " [Timeout remaining time 649] (rm -f ExternData_ExternData.Examples.XMLTestInnerOuter.pipe ; mkfifo ExternData_ExternData.Examples.XMLTestInnerOuter.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTestInnerOuter.pipe >> ../files/ExternData_ExternData.Examples.XMLTestInnerOuter.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.XMLTestInnerOuter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_XMLTestInnerOuter.fmu > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.972916872706264] Failed to read output from testmodel.py, exit status != 0: 11.454178874846548 11.482248833 11.351442509 Calling exit ...