Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTest.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.0008394/0.0008394, allocations: 80.44 kB / 19.17 MB, free: 0.7383 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.0009977/0.0009977, allocations: 165.9 kB / 22.45 MB, free: 2.102 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.9144/0.9144, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.01017/0.01017, allocations: 2.26 MB / 261.4 MB, free: 10.99 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.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 385.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.95e-05/2.104e-05, allocations: 10.22 kB / 385.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002158/0.002179, allocations: 1.67 MB / 387 MB, free: 10.72 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.003736, allocations: 1.695 MB / 388.7 MB, free: 9.016 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.847e-05/0.003794, allocations: 0 / 388.7 MB, free: 9.016 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.0003082/0.004103, allocations: 43.7 kB / 388.7 MB, free: 8.973 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.004379, allocations: 119.4 kB / 388.8 MB, free: 8.855 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001617/0.004541, allocations: 91.7 kB / 388.9 MB, free: 8.766 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.004648, allocations: 83.77 kB / 389 MB, free: 8.684 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.088e-05/0.004729, allocations: 16.22 kB / 389 MB, free: 8.664 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.82e-05/0.004807, allocations: 59.77 kB / 389.1 MB, free: 8.605 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.004913, allocations: 31.89 kB / 389.1 MB, free: 8.574 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.004928, allocations: 4 kB / 389.1 MB, free: 8.57 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.005122, allocations: 187.6 kB / 389.3 MB, free: 8.387 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.527e-05/0.005178, allocations: 23.92 kB / 389.3 MB, free: 8.363 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.277e-05/0.00522, allocations: 31.91 kB / 389.3 MB, free: 8.332 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.005488, allocations: 263.2 kB / 389.6 MB, free: 8.074 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.00549, allocations: 4 kB / 389.6 MB, free: 8.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.005491, allocations: 0 / 389.6 MB, free: 8.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.005494, allocations: 0 / 389.6 MB, free: 8.07 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.0004748/0.005969, allocations: 411 kB / 390 MB, free: 7.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.006008, allocations: 12.03 kB / 390 MB, free: 7.621 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.746e-05/0.006036, allocations: 34.75 kB / 390.1 MB, free: 7.578 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.534e-05/0.006071, allocations: 20.84 kB / 390.1 MB, free: 7.559 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.006251, allocations: 152.3 kB / 390.2 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/0.006261, allocations: 4.375 kB / 390.2 MB, free: 7.383 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.006272, allocations: 4.375 kB / 390.2 MB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.006448, allocations: 137.3 kB / 390.4 MB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.006456, allocations: 3.938 kB / 390.4 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.006467, allocations: 7.984 kB / 390.4 MB, free: 7.215 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.006472, allocations: 4 kB / 390.4 MB, free: 7.211 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.691e-05/0.006569, allocations: 81.66 kB / 390.5 MB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003154/0.006885, allocations: 276.8 kB / 390.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/0.007071, allocations: 115 kB / 390.8 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.278e-05/0.007144, allocations: 87.38 kB / 390.9 MB, free: 6.574 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.007158, allocations: 0 / 390.9 MB, free: 6.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.007319, allocations: 172.4 kB / 391.1 MB, free: 6.375 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 8.32e-07/0.007319, allocations: 0 / 391.1 MB, free: 6.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003374/0.007657, allocations: 294.8 kB / 391.4 MB, free: 6.062 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.007701, allocations: 114.8 kB / 391.5 MB, free: 5.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.007804, allocations: 161.7 kB / 391.7 MB, free: 5.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.007815, allocations: 25.7 kB / 391.7 MB, free: 5.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.018e-05/0.007855, allocations: 96.08 kB / 391.8 MB, free: 5.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.007881, allocations: 31.8 kB / 391.8 MB, free: 5.598 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.007915, allocations: 29.72 kB / 391.8 MB, free: 5.562 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.934e-05/0.008015, allocations: 326.8 kB / 392.2 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.943e-05/0.008104, allocations: 69.67 kB / 392.2 MB, free: 5.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.391e-05/0.008168, allocations: 83.33 kB / 392.3 MB, free: 5.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.008282, allocations: 153 kB / 392.5 MB, free: 4.898 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.008284, allocations: 0 / 392.5 MB, free: 4.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001989/0.008483, allocations: 236.8 kB / 392.7 MB, free: 4.648 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.00851, allocations: 45.69 kB / 392.7 MB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.008514, allocations: 3.938 kB / 392.7 MB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.769e-06/0.008524, allocations: 0 / 392.7 MB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.92e-05/0.008563, allocations: 8 kB / 392.7 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.008569, allocations: 4 kB / 392.7 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.593e-05/0.008615, allocations: 15.86 kB / 392.8 MB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-06/0.008622, allocations: 4 kB / 392.8 MB, free: 4.562 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 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,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 7.942e-05/0.008702, allocations: 163.5 kB / 392.9 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.785e-05/0.00872, allocations: 11.91 kB / 392.9 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.039e-05/0.00874, allocations: 16.77 kB / 392.9 MB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.008742, allocations: 8 kB / 393 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.008746, allocations: 0 / 393 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.008749, allocations: 0 / 393 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001118/0.008861, allocations: 172.6 kB / 393.1 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.008862, allocations: 0 / 393.1 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-05/0.008888, allocations: 8 kB / 393.1 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.00889, allocations: 0 / 393.1 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.0089, allocations: 8 kB / 393.1 MB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.008901, allocations: 0 / 393.1 MB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.008902, allocations: 336 / 393.1 MB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002286/0.009131, allocations: 297 kB / 393.4 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.128e-05/0.009152, allocations: 23.86 kB / 393.5 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.009171, allocations: 4 kB / 393.5 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.366e-05/0.009205, allocations: 7.984 kB / 393.5 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.881e-05/0.009234, allocations: 8 kB / 393.5 MB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.009246, allocations: 4 kB / 393.5 MB, free: 3.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.384e-05/0.00931, allocations: 124.8 kB / 393.6 MB, free: 3.629 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.00931, allocations: 0 / 393.6 MB, free: 3.629 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002038/0.009514, allocations: 75.8 kB / 393.7 MB, free: 3.555 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,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,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.0009618/0.01048, allocations: 1.16 MB / 394.8 MB, free: 2.465 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002084/0.01068, allocations: 222.7 kB / 395.1 MB, free: 2.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01069, allocations: 3.938 kB / 395.1 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.314e-05/0.01077, allocations: 141.1 kB / 395.2 MB, free: 2.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001724/0.01094, allocations: 12 kB / 395.2 MB, free: 2.051 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.01238, allocations: 2.081 MB / 397.3 MB, free: 15.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.992e-05/0.01243, allocations: 89.05 kB / 397.4 MB, free: 15.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.051e-05/0.01247, allocations: 16.48 kB / 397.4 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.01253, allocations: 36.48 kB / 397.4 MB, free: 15.68 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01253, allocations: 0 / 397.4 MB, free: 15.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/0.03412, allocations: 5.141 MB / 402.6 MB, free: 10.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.079/7.113, allocations: 4 kB / 402.6 MB, free: 10.55 MB / 378.7 MB " [Timeout remaining time 653] (rm -f ExternData_ExternData.Examples.XMLTest.pipe ; mkfifo ExternData_ExternData.Examples.XMLTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTest.pipe >> ../files/ExternData_ExternData.Examples.XMLTest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.XMLTest_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_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.989669132977724] Failed to read output from testmodel.py, exit status != 0: 7.206052335910499 7.220945884 7.213386784 Calling exit ...