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.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.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007949/0.007949, allocations: 99.69 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002079/0.002079, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.1595/0.1595, allocations: 2.93 MB / 293.5 MB, free: 3.262 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 59.91 kB / 405.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2815, allocations: 50.35 MB / 456.1 MB, free: 27.91 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.002602/0.2842, allocations: 1.675 MB / 457.8 MB, free: 26.76 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.2861, allocations: 1.607 MB / 459.4 MB, free: 25.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.02e-05/0.2862, allocations: 2.938 kB / 459.4 MB, free: 25.64 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0003382/0.2865, allocations: 39.69 kB / 459.4 MB, free: 25.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003169/0.2869, allocations: 121.6 kB / 459.6 MB, free: 25.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.2871, allocations: 98.28 kB / 459.6 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.2872, allocations: 100.4 kB / 459.7 MB, free: 25.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.979e-05/0.2873, allocations: 14.75 kB / 459.8 MB, free: 25.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.132e-05/0.2874, allocations: 45.12 kB / 459.8 MB, free: 25.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.2875, allocations: 41.89 kB / 459.8 MB, free: 25.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.2875, allocations: 6.656 kB / 459.9 MB, free: 25.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.2878, allocations: 205 kB / 460.1 MB, free: 25.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.639e-05/0.2879, allocations: 28.86 kB / 460.1 MB, free: 25.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.762e-05/0.2879, allocations: 47.06 kB / 460.1 MB, free: 25.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.2882, allocations: 253 kB / 460.4 MB, free: 25.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2883, allocations: 8 kB / 460.4 MB, free: 25.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2883, allocations: 0 / 460.4 MB, free: 25.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.2883, allocations: 3.281 kB / 460.4 MB, free: 25.2 MB / 366.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.000554/0.2888, allocations: 482 kB / 460.9 MB, free: 24.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2889, allocations: 13.61 kB / 460.9 MB, free: 24.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.375e-05/0.2889, allocations: 45.31 kB / 460.9 MB, free: 24.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.276e-05/0.289, allocations: 10.92 kB / 460.9 MB, free: 24.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.2892, allocations: 209.4 kB / 461.1 MB, free: 24.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.2892, allocations: 4.375 kB / 461.1 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.2892, allocations: 7.188 kB / 461.1 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.2895, allocations: 110.5 kB / 461.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.2895, allocations: 0 / 461.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.2895, allocations: 7.938 kB / 461.3 MB, free: 24.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.2895, allocations: 3.094 kB / 461.3 MB, free: 24.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.2896, allocations: 60.81 kB / 461.3 MB, free: 24.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003668/0.29, allocations: 343.6 kB / 461.7 MB, free: 24.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.2903, allocations: 108.8 kB / 461.8 MB, free: 23.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.2904, allocations: 56.8 kB / 461.8 MB, free: 23.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.2904, allocations: 4 kB / 461.8 MB, free: 23.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.2907, allocations: 145.4 kB / 462 MB, free: 23.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.402e-06/0.2907, allocations: 0 / 462 MB, free: 23.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004537/0.2911, allocations: 249.5 kB / 462.2 MB, free: 23.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.2912, allocations: 106 kB / 462.3 MB, free: 23.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.2913, allocations: 170.5 kB / 462.5 MB, free: 23.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.2913, allocations: 25.7 kB / 462.5 MB, free: 23.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.534e-05/0.2914, allocations: 91.2 kB / 462.6 MB, free: 23.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.2914, allocations: 33.27 kB / 462.6 MB, free: 23.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.425e-05/0.2914, allocations: 34.28 kB / 462.7 MB, free: 23.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.546e-05/0.2915, allocations: 325.2 kB / 463 MB, free: 22.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.893e-05/0.2916, allocations: 36.86 kB / 463 MB, free: 22.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.691e-05/0.2917, allocations: 64.22 kB / 463.1 MB, free: 22.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.2918, allocations: 163.4 kB / 463.2 MB, free: 22.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2918, allocations: 0 / 463.2 MB, free: 22.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002571/0.2921, allocations: 201.5 kB / 463.4 MB, free: 22.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.2921, allocations: 36.3 kB / 463.5 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2922, allocations: 3.281 kB / 463.5 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2922, allocations: 7.031 kB / 463.5 MB, free: 22.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.836e-05/0.2922, allocations: 17.47 kB / 463.5 MB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.2923, allocations: 0 / 463.5 MB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.143e-05/0.2923, allocations: 17.62 kB / 463.5 MB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.2924, allocations: 3.031 kB / 463.5 MB, free: 22.62 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 9.112e-05/0.2924, allocations: 161.7 kB / 463.7 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.2925, allocations: 10.36 kB / 463.7 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.641e-05/0.2925, allocations: 15.75 kB / 463.7 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2925, allocations: 3.125 kB / 463.7 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2925, allocations: 0 / 463.7 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2925, allocations: 15.86 kB / 463.7 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.2927, allocations: 218.8 kB / 463.9 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2927, allocations: 3.375 kB / 463.9 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-05/0.2927, allocations: 5.906 kB / 463.9 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.2927, allocations: 3.219 kB / 463.9 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.2928, allocations: 7.188 kB / 463.9 MB, free: 22.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2928, allocations: 0 / 463.9 MB, free: 22.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2928, allocations: 0 / 463.9 MB, free: 22.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003047/0.2931, allocations: 259.9 kB / 464.2 MB, free: 22.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-05/0.2931, allocations: 103.5 kB / 464.3 MB, free: 21.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.2932, allocations: 10.45 kB / 464.3 MB, free: 21.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.371e-05/0.2932, allocations: 6.25 kB / 464.3 MB, free: 21.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.2933, allocations: 14.28 kB / 464.3 MB, free: 21.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.2933, allocations: 7.156 kB / 464.3 MB, free: 21.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.38e-05/0.2934, allocations: 124.2 kB / 464.5 MB, free: 21.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2934, allocations: 0 / 464.5 MB, free: 21.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002983/0.2937, allocations: 83.55 kB / 464.5 MB, free: 21.81 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.00147/0.2952, allocations: 1.11 MB / 465.6 MB, free: 21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002848/0.2955, allocations: 207.9 kB / 465.9 MB, free: 20.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2955, allocations: 0 / 465.9 MB, free: 20.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.2956, allocations: 153.2 kB / 466 MB, free: 20.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.2958, allocations: 20.22 kB / 466 MB, free: 20.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.2976, allocations: 1.936 MB / 468 MB, free: 19.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001208/0.2977, allocations: 0.7014 MB / 468.7 MB, free: 18.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.111e-05/0.2978, allocations: 13.08 kB / 468.7 MB, free: 18.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.054e-05/0.2979, allocations: 40.36 kB / 468.7 MB, free: 18.58 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2979, allocations: 4 kB / 468.7 MB, free: 18.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02807/0.3259, allocations: 4.494 MB / 473.2 MB, free: 17.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.248/8.574, allocations: 29.69 kB / 473.2 MB, free: 17.64 MB / 366.1 MB (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)