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.0008166/0.0008166, allocations: 79.69 kB / 19.26 MB, free: 0.6133 MB / 13.93 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.0009735/0.0009735, allocations: 166 kB / 22.56 MB, free: 1.953 MB / 18.57 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 0.8896/0.8896, allocations: 177.1 MB / 202.9 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] 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.01012/0.01012, allocations: 2.255 MB / 261.6 MB, free: 10.94 MB / 250.7 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: Performance of FrontEnd - loaded program: time 2.265e-06/2.265e-06, allocations: 0 / 385.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.232e-05/2.459e-05, allocations: 2.281 kB / 385.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.00276/0.002785, allocations: 1.674 MB / 387.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.004368, allocations: 1.706 MB / 388.9 MB, free: 8.887 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.258e-05/0.00443, allocations: 0 / 388.9 MB, free: 8.887 MB / 362.7 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.000328/0.004758, allocations: 43.7 kB / 388.9 MB, free: 8.844 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.005054, allocations: 127.4 kB / 389.1 MB, free: 8.719 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000169/0.005223, allocations: 95.72 kB / 389.2 MB, free: 8.625 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.005338, allocations: 99.64 kB / 389.3 MB, free: 8.527 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.332e-05/0.005422, allocations: 20.2 kB / 389.3 MB, free: 8.504 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.319e-05/0.005505, allocations: 55.89 kB / 389.3 MB, free: 8.449 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.005613, allocations: 31.89 kB / 389.4 MB, free: 8.418 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.005629, allocations: 8 kB / 389.4 MB, free: 8.41 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.005833, allocations: 191.6 kB / 389.6 MB, free: 8.223 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.087e-05/0.005894, allocations: 27.91 kB / 389.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.853e-05/0.005942, allocations: 23.92 kB / 389.6 MB, free: 8.172 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002901/0.006232, allocations: 287.3 kB / 389.9 MB, free: 7.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.006235, allocations: 0 / 389.9 MB, free: 7.891 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.006237, allocations: 4 kB / 389.9 MB, free: 7.887 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.006241, allocations: 0 / 389.9 MB, free: 7.887 MB / 362.7 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.0004925/0.006734, allocations: 411.1 kB / 390.3 MB, free: 7.449 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.006772, allocations: 16.02 kB / 390.3 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.394e-05/0.006796, allocations: 30.75 kB / 390.3 MB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.006834, allocations: 20.84 kB / 390.4 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.00703, allocations: 169.5 kB / 390.5 MB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.007038, allocations: 4.375 kB / 390.5 MB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.007053, allocations: 4.375 kB / 390.5 MB, free: 7.176 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/0.007231, allocations: 137.4 kB / 390.7 MB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.007238, allocations: 0 / 390.7 MB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.007248, allocations: 4 kB / 390.7 MB, free: 7.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.007253, allocations: 4 kB / 390.7 MB, free: 7.016 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.786e-05/0.007351, allocations: 89.59 kB / 390.8 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003052/0.007656, allocations: 288.8 kB / 391 MB, free: 6.594 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002009/0.007857, allocations: 126.9 kB / 391.2 MB, free: 6.445 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.219e-05/0.007929, allocations: 87.44 kB / 391.2 MB, free: 6.348 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.007944, allocations: 8 kB / 391.3 MB, free: 6.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001564/0.0081, allocations: 176.4 kB / 391.4 MB, free: 6.137 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 9.71e-07/0.008101, allocations: 0 / 391.4 MB, free: 6.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003401/0.008441, allocations: 322.9 kB / 391.7 MB, free: 5.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.008483, allocations: 106.8 kB / 391.8 MB, free: 5.668 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.008587, allocations: 165.7 kB / 392 MB, free: 5.496 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.008599, allocations: 29.64 kB / 392 MB, free: 5.461 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.00864, allocations: 100.1 kB / 392.1 MB, free: 5.359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.008666, allocations: 31.8 kB / 392.2 MB, free: 5.328 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.825e-05/0.008704, allocations: 25.7 kB / 392.2 MB, free: 5.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.685e-05/0.008781, allocations: 322.8 kB / 392.5 MB, free: 4.973 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.513e-05/0.008856, allocations: 81.61 kB / 392.6 MB, free: 4.887 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.502e-05/0.008921, allocations: 95.33 kB / 392.7 MB, free: 4.781 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.00905, allocations: 165.1 kB / 392.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.009052, allocations: 0 / 392.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002156/0.009268, allocations: 252.7 kB / 393.1 MB, free: 4.336 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.009305, allocations: 41.69 kB / 393.1 MB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.00931, allocations: 4 kB / 393.1 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.009323, allocations: 4 kB / 393.1 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.521e-05/0.009368, allocations: 15.92 kB / 393.2 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.009373, allocations: 0 / 393.2 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.82e-05/0.009421, allocations: 11.94 kB / 393.2 MB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.009432, allocations: 8 kB / 393.2 MB, free: 4.246 MB / 362.7 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 9.158e-05/0.009523, allocations: 163.5 kB / 393.3 MB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.222e-05/0.009546, allocations: 15.91 kB / 393.3 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.506e-05/0.009571, allocations: 12.77 kB / 393.4 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.009574, allocations: 8 kB / 393.4 MB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.009578, allocations: 0 / 393.4 MB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.009581, allocations: 0 / 393.4 MB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.009695, allocations: 176.6 kB / 393.5 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.009696, allocations: 0 / 393.5 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.969e-05/0.009726, allocations: 11.98 kB / 393.6 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.009729, allocations: 4 kB / 393.6 MB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.009739, allocations: 4 kB / 393.6 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.009747, allocations: 7.938 kB / 393.6 MB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.009749, allocations: 320 / 393.6 MB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.01001, allocations: 305.1 kB / 393.9 MB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.185e-05/0.01003, allocations: 23.88 kB / 393.9 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.01005, allocations: 8 kB / 393.9 MB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.441e-05/0.01009, allocations: 4 kB / 393.9 MB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.214e-05/0.01012, allocations: 7.984 kB / 393.9 MB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.01013, allocations: 4 kB / 393.9 MB, free: 3.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.632e-05/0.0102, allocations: 131 kB / 394 MB, free: 3.285 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0102, allocations: 0 / 394 MB, free: 3.285 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002158/0.01041, allocations: 71.8 kB / 394.1 MB, free: 3.215 MB / 362.7 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.001034/0.01145, allocations: 1.176 MB / 395.3 MB, free: 2.109 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002407/0.01169, allocations: 246.7 kB / 395.5 MB, free: 1.844 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01169, allocations: 0 / 395.5 MB, free: 1.844 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.777e-05/0.01179, allocations: 153.1 kB / 395.7 MB, free: 1.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001808/0.01197, allocations: 19.27 kB / 395.7 MB, free: 1.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.01357, allocations: 2.143 MB / 397.8 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.269e-05/0.01362, allocations: 89.06 kB / 397.9 MB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.929e-05/0.01367, allocations: 16.48 kB / 397.9 MB, free: 15.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.124e-05/0.01373, allocations: 40.47 kB / 398 MB, free: 15.22 MB / 378.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01373, allocations: 0 / 398 MB, free: 15.22 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.0325, allocations: 5.289 MB / 403.3 MB, free: 9.945 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.737/6.77, allocations: 3.938 kB / 403.3 MB, free: 9.941 MB / 378.7 MB " [Timeout remaining time 653] (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: 8.596076907590032] Failed to read output from testmodel.py, exit status != 0: 6.856502424925566 6.86696483 6.859046063 Calling exit ...