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.001262/0.001262, allocations: 102.5 kB / 16.45 MB, free: 6.449 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.001393/0.001393, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.475/1.475, allocations: 230.6 MB / 252.8 MB, free: 8.98 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.01594/0.01594, allocations: 3.269 MB / 312.1 MB, free: 0.9922 MB / 238.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.002868/0.002868, allocations: 67.89 kB / 434.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09935/0.1022, allocations: 54.33 MB / 488.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003218/0.1054, allocations: 1.716 MB / 490.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.1084, allocations: 1.651 MB / 492.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.1085, allocations: 4 kB / 492.1 MB, free: 4.926 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.0003807/0.1089, allocations: 43.72 kB / 492.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004184/0.1093, allocations: 119.4 kB / 492.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.1095, allocations: 91.78 kB / 492.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.1097, allocations: 99.75 kB / 492.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.333e-05/0.1098, allocations: 12.23 kB / 492.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.525e-05/0.1099, allocations: 35.86 kB / 492.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.1101, allocations: 47.77 kB / 492.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.1101, allocations: 12 kB / 492.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003093/0.1104, allocations: 199.8 kB / 492.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.1105, allocations: 27.86 kB / 492.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.938e-05/0.1105, allocations: 47.78 kB / 492.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003855/0.1109, allocations: 263.2 kB / 493.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1109, allocations: 0 / 493.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1109, allocations: 0 / 493.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1109, allocations: 0 / 493.1 MB, free: 3.941 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.0007219/0.1117, allocations: 484.2 kB / 493.5 MB, free: 3.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1117, allocations: 16.03 kB / 493.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.729e-05/0.1117, allocations: 30.75 kB / 493.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.772e-05/0.1118, allocations: 24.75 kB / 493.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.1121, allocations: 212.2 kB / 493.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.1121, allocations: 384 / 493.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.1122, allocations: 11.92 kB / 493.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002262/0.1124, allocations: 99.38 kB / 493.9 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1124, allocations: 0 / 493.9 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.1124, allocations: 4 kB / 493.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1124, allocations: 4 kB / 493.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001599/0.1126, allocations: 59.91 kB / 494 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005204/0.1131, allocations: 329.7 kB / 494.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.1134, allocations: 105.2 kB / 494.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.1135, allocations: 57.73 kB / 494.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.1135, allocations: 0 / 494.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.1138, allocations: 146.7 kB / 494.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.1138, allocations: 4 kB / 494.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005609/0.1143, allocations: 251.3 kB / 494.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.99e-05/0.1144, allocations: 110.8 kB / 495 MB, free: 1.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.1146, allocations: 160.2 kB / 495.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.1146, allocations: 29.7 kB / 495.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.625e-05/0.1147, allocations: 96.12 kB / 495.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.1147, allocations: 35.69 kB / 495.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.798e-05/0.1148, allocations: 33.64 kB / 495.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.115, allocations: 326.8 kB / 495.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.819e-05/0.1151, allocations: 35.98 kB / 495.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.1152, allocations: 61.69 kB / 495.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.1154, allocations: 161 kB / 495.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1154, allocations: 0 / 495.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003595/0.1158, allocations: 199.2 kB / 496.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.287e-05/0.1158, allocations: 41.69 kB / 496.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1158, allocations: 0 / 496.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.1158, allocations: 4 kB / 496.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.902e-05/0.1159, allocations: 11.98 kB / 496.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1159, allocations: 0 / 496.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.375e-05/0.116, allocations: 19.89 kB / 496.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.116, allocations: 4.312 kB / 496.2 MB, free: 0.5117 MB / 350.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.0001707/0.1162, allocations: 163.5 kB / 496.3 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.558e-05/0.1163, allocations: 11.95 kB / 496.3 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.1163, allocations: 16.7 kB / 496.4 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1163, allocations: 0 / 496.4 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1163, allocations: 0 / 496.4 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.1163, allocations: 7.938 kB / 496.4 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.1166, allocations: 229.4 kB / 496.6 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1166, allocations: 4 kB / 496.6 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.178e-05/0.1166, allocations: 8 kB / 496.6 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1166, allocations: 0 / 496.6 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.1166, allocations: 4 kB / 496.6 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1166, allocations: 4 kB / 496.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1166, allocations: 3.938 kB / 496.6 MB, free: 0 / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004835/0.1171, allocations: 271.8 kB / 496.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.097e-05/0.1172, allocations: 93.05 kB / 497 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.1172, allocations: 4 kB / 497 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.36e-05/0.1173, allocations: 4 kB / 497 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.581e-05/0.1174, allocations: 27.84 kB / 497 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.1174, allocations: 4 kB / 497 MB, free: 15.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.1175, allocations: 122 kB / 497.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1175, allocations: 0 / 497.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004102/0.118, allocations: 87.69 kB / 497.2 MB, free: 15.36 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.002004/0.12, allocations: 1.09 MB / 498.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004192/0.1204, allocations: 175.3 kB / 498.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1204, allocations: 0 / 498.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.1205, allocations: 115.3 kB / 498.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.1208, allocations: 30.91 kB / 498.6 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.1237, allocations: 1.928 MB / 0.4888 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.1242, allocations: 0.704 MB / 0.4895 GB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.1243, allocations: 20.42 kB / 0.4895 GB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.235e-05/0.1244, allocations: 35.41 kB / 0.4896 GB, free: 11.18 MB / 366.1 MB Notification: Performance of SimCode: time 1.994e-06/0.1244, allocations: 0 / 0.4896 GB, free: 11.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.1536, allocations: 4.491 MB / 0.4939 GB, free: 6.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.148/8.301, allocations: 10.2 kB / 0.4939 GB, free: 6.66 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.894925045999116] Failed to read output from testmodel.py, exit status != 0: 8.38402554798813 8.406129486 8.291209817 Calling exit ...