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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1222/0.1222, allocations: 2.939 MB / 293.3 MB, free: 3.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.84 kB / 354.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0845/0.08577, allocations: 50.35 MB / 405.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002744/0.08854, allocations: 1.643 MB / 406.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.09066, allocations: 1.608 MB / 408.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.627e-05/0.09074, allocations: 7.938 kB / 408.4 MB, free: 14.02 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:250:3-279:14:writable] Warning: Pure function 'ExternData.XMLFile' contains a call to impure function 'ExternData.Types.ExternXMLFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002881/0.09103, allocations: 39.8 kB / 408.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003179/0.09136, allocations: 119.5 kB / 408.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.09159, allocations: 83.77 kB / 408.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.09174, allocations: 95.77 kB / 408.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.035e-05/0.09184, allocations: 16.2 kB / 408.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.87e-05/0.09192, allocations: 39.8 kB / 408.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.09209, allocations: 35.84 kB / 408.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.09212, allocations: 7.938 kB / 408.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002895/0.09242, allocations: 203.8 kB / 409 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.556e-05/0.09248, allocations: 15.98 kB / 409 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.463e-05/0.09255, allocations: 47.73 kB / 409.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003322/0.09289, allocations: 243.6 kB / 409.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.09291, allocations: 0 / 409.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09292, allocations: 0 / 409.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.09293, allocations: 0 / 409.3 MB, free: 13.09 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.0006585/0.09359, allocations: 484.6 kB / 409.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.09364, allocations: 11.89 kB / 409.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.387e-05/0.09368, allocations: 38.75 kB / 409.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/0.09373, allocations: 8.844 kB / 409.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.09396, allocations: 216.9 kB / 410 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.09398, allocations: 8.312 kB / 410.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.094, allocations: 3.938 kB / 410.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.0942, allocations: 99.31 kB / 410.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.09422, allocations: 0 / 410.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.09424, allocations: 4 kB / 410.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.09425, allocations: 4 kB / 410.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.09439, allocations: 47.97 kB / 410.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003764/0.09478, allocations: 325.6 kB / 410.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.09503, allocations: 97.22 kB / 410.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.09515, allocations: 69.72 kB / 410.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.09517, allocations: 0 / 410.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.09543, allocations: 134.8 kB / 410.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.09544, allocations: 0 / 410.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000463/0.09591, allocations: 227.3 kB / 411 MB, free: 11.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.09598, allocations: 110.8 kB / 411.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.09615, allocations: 160.2 kB / 411.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.09617, allocations: 29.7 kB / 411.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.076e-05/0.09623, allocations: 96.05 kB / 411.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.91e-05/0.09628, allocations: 27.64 kB / 411.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.78e-05/0.09634, allocations: 21.72 kB / 411.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.09645, allocations: 330.7 kB / 411.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.614e-05/0.09655, allocations: 43.97 kB / 411.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.512e-05/0.09664, allocations: 45.7 kB / 411.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.09685, allocations: 149 kB / 412 MB, free: 10.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.09686, allocations: 3.938 kB / 412 MB, free: 10.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000318/0.09718, allocations: 191.1 kB / 412.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/0.09723, allocations: 41.69 kB / 412.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.09725, allocations: 8 kB / 412.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.09727, allocations: 0 / 412.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.458e-05/0.09734, allocations: 11.94 kB / 412.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.09735, allocations: 320 / 412.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.985e-05/0.09743, allocations: 15.92 kB / 412.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.09745, allocations: 4 kB / 412.3 MB, free: 9.754 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 (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 0.0001272/0.09759, allocations: 159.5 kB / 412.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.09763, allocations: 15.81 kB / 412.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.86e-05/0.09766, allocations: 12.72 kB / 412.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.09767, allocations: 4 kB / 412.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.09768, allocations: 0 / 412.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.09769, allocations: 3.938 kB / 412.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.09786, allocations: 209.6 kB / 412.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.09787, allocations: 0 / 412.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.222e-05/0.09793, allocations: 8 kB / 412.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.09794, allocations: 3.984 kB / 412.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.09796, allocations: 8 kB / 412.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.09796, allocations: 0 / 412.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/0.09798, allocations: 0 / 412.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003688/0.09835, allocations: 263.2 kB / 413 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.09842, allocations: 89 kB / 413.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.09846, allocations: 12.06 kB / 413.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.963e-05/0.09854, allocations: 4 kB / 413.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.09859, allocations: 11.92 kB / 413.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.09861, allocations: 8 kB / 413.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.09872, allocations: 125.3 kB / 413.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.09873, allocations: 0 / 413.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003022/0.09904, allocations: 71.98 kB / 413.3 MB, free: 8.656 MB / 350.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,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.001389/0.1004, allocations: 1.101 MB / 414.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003064/0.1008, allocations: 195.3 kB / 414.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1008, allocations: 0 / 414.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.1009, allocations: 131.4 kB / 414.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.1012, allocations: 29.11 kB / 414.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.1032, allocations: 1.875 MB / 416.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.1034, allocations: 0.7078 MB / 417.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.325e-05/0.1035, allocations: 16.41 kB / 417.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.863e-05/0.1035, allocations: 35.42 kB / 417.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1035, allocations: 0 / 417.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.126, allocations: 4.267 MB / 421.6 MB, free: 256 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.503/7.63, allocations: 8.062 kB / 421.7 MB, free: 248 kB / 350.1 MB (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)