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.001344/0.001344, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001456/0.001456, allocations: 218.9 kB / 22.25 MB, free: 5.121 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 7.945 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.01532/0.01532, allocations: 3.27 MB / 315.7 MB, free: 15.82 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.002559/0.002559, allocations: 63.91 kB / 439.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1167, allocations: 54.38 MB / 493.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003191/0.1199, allocations: 1.717 MB / 495.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.1228, allocations: 1.749 MB / 497.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.251e-05/0.1228, allocations: 7.875 kB / 497.4 MB, free: 2.316 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.0003365/0.1232, allocations: 43.77 kB / 497.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.1236, allocations: 123.5 kB / 497.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.1238, allocations: 91.72 kB / 497.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.124, allocations: 99.75 kB / 497.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.593e-05/0.124, allocations: 8.234 kB / 497.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.102e-05/0.1241, allocations: 43.8 kB / 497.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.1243, allocations: 39.83 kB / 497.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.1243, allocations: 8 kB / 497.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003081/0.1246, allocations: 211.8 kB / 498.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.342e-05/0.1247, allocations: 27.92 kB / 498.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.691e-05/0.1247, allocations: 47.72 kB / 498.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003786/0.1251, allocations: 267.2 kB / 498.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1251, allocations: 0 / 498.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1251, allocations: 0 / 498.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1251, allocations: 0 / 498.4 MB, free: 1.32 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.0006302/0.1258, allocations: 411 kB / 498.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.1258, allocations: 8.031 kB / 498.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.352e-05/0.1258, allocations: 34.75 kB / 498.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.487e-05/0.1259, allocations: 12.89 kB / 498.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.1262, allocations: 162.3 kB / 499 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.1262, allocations: 4.375 kB / 499 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.514e-05/0.1262, allocations: 11.94 kB / 499 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.1265, allocations: 95.38 kB / 499.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1265, allocations: 4 kB / 499.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.1265, allocations: 0 / 499.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.351e-06/0.1265, allocations: 4 kB / 499.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.1267, allocations: 67.89 kB / 499.2 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004759/0.1271, allocations: 300.7 kB / 499.5 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.1274, allocations: 101.2 kB / 499.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.1275, allocations: 53.75 kB / 499.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.1275, allocations: 0 / 499.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.1278, allocations: 142.9 kB / 499.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.012e-06/0.1278, allocations: 0 / 499.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005191/0.1283, allocations: 263.1 kB / 0.4883 GB, free: 15.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/0.1284, allocations: 110.8 kB / 0.4884 GB, free: 15.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.1286, allocations: 161.7 kB / 0.4886 GB, free: 15.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.1286, allocations: 33.64 kB / 0.4886 GB, free: 15.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.036e-05/0.1286, allocations: 100.1 kB / 0.4887 GB, free: 15.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.507e-05/0.1287, allocations: 23.81 kB / 0.4887 GB, free: 15.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.415e-05/0.1287, allocations: 29.7 kB / 0.4888 GB, free: 14.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1289, allocations: 326.8 kB / 0.4891 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.446e-05/0.129, allocations: 43.98 kB / 0.4891 GB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.756e-05/0.1291, allocations: 57.69 kB / 0.4892 GB, free: 14.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.1293, allocations: 157.1 kB / 0.4893 GB, free: 14.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1293, allocations: 0 / 0.4893 GB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003368/0.1296, allocations: 203.2 kB / 0.4895 GB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.177e-05/0.1297, allocations: 37.7 kB / 0.4895 GB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1297, allocations: 0 / 0.4895 GB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1297, allocations: 0 / 0.4895 GB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.97e-05/0.1298, allocations: 19.92 kB / 0.4896 GB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.1298, allocations: 0 / 0.4896 GB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.176e-05/0.1299, allocations: 19.83 kB / 0.4896 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.1299, allocations: 4 kB / 0.4896 GB, free: 14.09 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.0001494/0.13, allocations: 169.7 kB / 0.4898 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.1301, allocations: 11.95 kB / 0.4898 GB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.133e-05/0.1301, allocations: 16.72 kB / 0.4898 GB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.1301, allocations: 3.938 kB / 0.4898 GB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1301, allocations: 0 / 0.4898 GB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1301, allocations: 3.938 kB / 0.4898 GB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000195/0.1303, allocations: 192.6 kB / 0.49 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1303, allocations: 0 / 0.49 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.539e-05/0.1304, allocations: 8 kB / 0.49 GB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.1304, allocations: 4 kB / 0.49 GB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.1304, allocations: 7.984 kB / 0.49 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1304, allocations: 11.88 kB / 0.49 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1304, allocations: 4 kB / 0.49 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004164/0.1308, allocations: 259.5 kB / 0.4903 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.148e-05/0.1308, allocations: 19.88 kB / 0.4903 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.1309, allocations: 8 kB / 0.4903 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.754e-05/0.1309, allocations: 4 kB / 0.4903 GB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.267e-05/0.131, allocations: 11.92 kB / 0.4903 GB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.131, allocations: 8 kB / 0.4903 GB, free: 13.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.1311, allocations: 126.2 kB / 0.4904 GB, free: 13.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1311, allocations: 0 / 0.4904 GB, free: 13.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003355/0.1314, allocations: 83.69 kB / 0.4905 GB, free: 13.07 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.001805/0.1332, allocations: 1.104 MB / 0.4916 GB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003402/0.1336, allocations: 171.3 kB / 0.4917 GB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1336, allocations: 0 / 0.4917 GB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.1337, allocations: 119.4 kB / 0.4919 GB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.134, allocations: 22.55 kB / 0.4919 GB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.1365, allocations: 1.933 MB / 0.4938 GB, free: 9.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.1368, allocations: 0.7008 MB / 0.4945 GB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.518e-05/0.1369, allocations: 28.34 kB / 0.4945 GB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.157e-05/0.1369, allocations: 39.41 kB / 0.4945 GB, free: 8.879 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1369, allocations: 0 / 0.4945 GB, free: 8.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03411/0.171, allocations: 4.682 MB / 0.4991 GB, free: 4.211 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.61, allocations: 0 / 0.4991 GB, free: 4.211 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.563213065994205] Failed to read output from testmodel.py, exit status != 0: 11.731083466998825 11.976295278 11.84823792 Calling exit ...