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.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.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.005045/0.005045, allocations: 101 kB / 15.73 MB, free: 6.059 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.001285/0.001285, allocations: 197.6 kB / 16.68 MB, free: 5.969 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01877/0.01876, allocations: 2.957 MB / 293.5 MB, free: 11.78 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 67.91 kB / 405.8 MB, free: 29.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.09156, allocations: 50.33 MB / 456.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.003063/0.09466, allocations: 1.669 MB / 457.8 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.097, allocations: 1.604 MB / 459.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.775e-05/0.09709, allocations: 4 kB / 459.4 MB, free: 7.586 MB / 334.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.0003309/0.09743, allocations: 35.73 kB / 459.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003739/0.09781, allocations: 127.4 kB / 459.5 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.09806, allocations: 79.78 kB / 459.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.09822, allocations: 87.72 kB / 459.7 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.09833, allocations: 24.48 kB / 459.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.382e-05/0.09841, allocations: 31.86 kB / 459.8 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.0986, allocations: 39.83 kB / 459.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.09863, allocations: 7.938 kB / 459.8 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003239/0.09896, allocations: 203.8 kB / 460 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.523e-05/0.09903, allocations: 19.92 kB / 460 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.697e-05/0.09912, allocations: 47.72 kB / 460.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.0995, allocations: 243.2 kB / 460.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.09952, allocations: 0 / 460.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.09953, allocations: 0 / 460.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.09954, allocations: 0 / 460.3 MB, free: 6.652 MB / 334.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.0007287/0.1003, allocations: 488.1 kB / 460.8 MB, free: 6.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.1003, allocations: 11.89 kB / 460.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.1004, allocations: 34.75 kB / 460.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.146e-05/0.1004, allocations: 8.891 kB / 460.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.1008, allocations: 212.2 kB / 461 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.1008, allocations: 12.38 kB / 461.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.1008, allocations: 7.938 kB / 461.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.101, allocations: 91.31 kB / 461.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.101, allocations: 0 / 461.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.1011, allocations: 4 kB / 461.2 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1011, allocations: 7.984 kB / 461.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.1012, allocations: 47.97 kB / 461.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.1017, allocations: 325.5 kB / 461.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.102, allocations: 97.28 kB / 461.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.1021, allocations: 65.66 kB / 461.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.1021, allocations: 7.938 kB / 461.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.1023, allocations: 134.8 kB / 461.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.1023, allocations: 0 / 461.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004931/0.1028, allocations: 231.4 kB / 462.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.081e-05/0.1029, allocations: 110.8 kB / 462.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.1031, allocations: 164.5 kB / 462.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.1031, allocations: 25.7 kB / 462.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/0.1032, allocations: 96.14 kB / 462.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.1033, allocations: 27.73 kB / 462.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.844e-05/0.1033, allocations: 29.66 kB / 462.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1035, allocations: 326.8 kB / 462.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.659e-05/0.1036, allocations: 35.97 kB / 462.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.427e-05/0.1037, allocations: 61.58 kB / 462.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.1039, allocations: 145 kB / 463.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1039, allocations: 4 kB / 463.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003159/0.1042, allocations: 191.2 kB / 463.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/0.1043, allocations: 37.69 kB / 463.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.1043, allocations: 0 / 463.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1043, allocations: 0 / 463.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.73e-05/0.1044, allocations: 12 kB / 463.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.1044, allocations: 0 / 463.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.869e-05/0.1045, allocations: 23.88 kB / 463.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.1045, allocations: 4 kB / 463.3 MB, free: 3.309 MB / 334.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.0001471/0.1046, allocations: 158.6 kB / 463.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.1047, allocations: 15.89 kB / 463.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.269e-05/0.1047, allocations: 16.72 kB / 463.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1047, allocations: 0 / 463.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1047, allocations: 4 kB / 463.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.1048, allocations: 11.94 kB / 463.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002099/0.105, allocations: 213.5 kB / 463.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.105, allocations: 0 / 463.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.169e-05/0.105, allocations: 11.98 kB / 463.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1051, allocations: 0 / 463.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.1051, allocations: 4 kB / 463.7 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1051, allocations: 0 / 463.7 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1051, allocations: 0 / 463.7 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/0.1055, allocations: 255.7 kB / 464 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.881e-05/0.1056, allocations: 93.05 kB / 464.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.1056, allocations: 4 kB / 464.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.393e-05/0.1057, allocations: 7.984 kB / 464.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.1058, allocations: 15.92 kB / 464.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1058, allocations: 4 kB / 464.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001227/0.1059, allocations: 119.2 kB / 464.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1059, allocations: 7.938 kB / 464.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.1062, allocations: 83.75 kB / 464.3 MB, free: 2.191 MB / 334.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.001882/0.1081, allocations: 1.092 MB / 465.4 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.1085, allocations: 183.4 kB / 465.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1085, allocations: 0 / 465.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.1087, allocations: 135.3 kB / 465.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.1089, allocations: 27.86 kB / 465.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/0.1113, allocations: 1.873 MB / 467.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.1116, allocations: 0.7039 MB / 468.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.846e-05/0.1117, allocations: 20.34 kB / 468.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.434e-05/0.1118, allocations: 43.41 kB / 468.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1118, allocations: 0 / 468.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.1409, allocations: 4.349 MB / 472.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.1/8.241, allocations: 7.688 kB / 472.8 MB, free: 9.676 MB / 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)