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.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.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.008764/0.008764, allocations: 101.6 kB / 15.73 MB, free: 5.609 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.001728/0.001728, allocations: 193.5 kB / 16.67 MB, free: 5.527 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01384/0.01384, allocations: 2.953 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 69.45 kB / 405.8 MB, free: 29.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09804, allocations: 50.33 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003086/0.1012, allocations: 1.681 MB / 457.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.1035, allocations: 1.604 MB / 459.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.854e-05/0.1036, allocations: 0 / 459.4 MB, free: 7.562 MB / 334.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.0003696/0.104, allocations: 43.7 kB / 459.4 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003682/0.1043, allocations: 119.5 kB / 459.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.1046, allocations: 91.28 kB / 459.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.1048, allocations: 111.7 kB / 459.7 MB, free: 7.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.819e-05/0.1049, allocations: 16.5 kB / 459.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.032e-05/0.105, allocations: 43.78 kB / 459.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001762/0.1052, allocations: 39.84 kB / 459.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.1052, allocations: 8 kB / 459.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002947/0.1055, allocations: 203.8 kB / 460 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.141e-05/0.1056, allocations: 23.92 kB / 460.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.496e-05/0.1056, allocations: 55.72 kB / 460.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003564/0.106, allocations: 255.2 kB / 460.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.106, allocations: 8 kB / 460.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.106, allocations: 0 / 460.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.106, allocations: 0 / 460.4 MB, free: 6.562 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.0006525/0.1067, allocations: 484.2 kB / 460.9 MB, free: 6.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1068, allocations: 15.89 kB / 460.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.822e-05/0.1068, allocations: 38.73 kB / 460.9 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.828e-05/0.1069, allocations: 12.89 kB / 460.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.1072, allocations: 216.1 kB / 461.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.1072, allocations: 8.359 kB / 461.1 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.1072, allocations: 7.938 kB / 461.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.1075, allocations: 99.38 kB / 461.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1075, allocations: 0 / 461.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.1075, allocations: 0 / 461.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1075, allocations: 4 kB / 461.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001599/0.1077, allocations: 59.91 kB / 461.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004478/0.1081, allocations: 337.6 kB / 461.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.1084, allocations: 113.2 kB / 461.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.1085, allocations: 61.69 kB / 461.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.1086, allocations: 4 kB / 461.8 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.1088, allocations: 138.8 kB / 461.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.1088, allocations: 0 / 461.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005046/0.1093, allocations: 251.4 kB / 462.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.1094, allocations: 110.8 kB / 462.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.1095, allocations: 172.3 kB / 462.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.1096, allocations: 25.7 kB / 462.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.84e-05/0.1096, allocations: 96.12 kB / 462.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.707e-05/0.1097, allocations: 31.73 kB / 462.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.1097, allocations: 25.72 kB / 462.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1098, allocations: 326.8 kB / 463 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.263e-05/0.1099, allocations: 39.98 kB / 463 MB, free: 3.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.299e-05/0.11, allocations: 61.69 kB / 463.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.1102, allocations: 161.2 kB / 463.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1103, allocations: 0 / 463.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003171/0.1106, allocations: 203.2 kB / 463.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.751e-05/0.1106, allocations: 37.7 kB / 463.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1106, allocations: 4 kB / 463.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.1107, allocations: 0 / 463.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.677e-05/0.1107, allocations: 19.92 kB / 463.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1107, allocations: 0 / 463.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.474e-05/0.1108, allocations: 15.89 kB / 463.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.1109, allocations: 4 kB / 463.5 MB, free: 3.117 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 (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 0.0001355/0.111, allocations: 163.8 kB / 463.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/0.111, allocations: 15.89 kB / 463.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.1111, allocations: 16.66 kB / 463.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1111, allocations: 0 / 463.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1111, allocations: 4 kB / 463.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.1111, allocations: 7.938 kB / 463.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.1113, allocations: 225.5 kB / 463.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1113, allocations: 8 kB / 463.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.301e-05/0.1114, allocations: 8 kB / 463.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1114, allocations: 0 / 463.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.1114, allocations: 8 kB / 463.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.1114, allocations: 7.922 kB / 464 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1114, allocations: 0 / 464 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003985/0.1118, allocations: 259.5 kB / 464.2 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.591e-05/0.1119, allocations: 93.05 kB / 464.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.1119, allocations: 8 kB / 464.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.212e-05/0.112, allocations: 4 kB / 464.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.1121, allocations: 11.92 kB / 464.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1121, allocations: 8 kB / 464.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.1122, allocations: 122 kB / 464.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1122, allocations: 3.938 kB / 464.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003415/0.1126, allocations: 87.75 kB / 464.5 MB, free: 1.969 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,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.001502/0.1141, allocations: 1.117 MB / 465.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004101/0.1145, allocations: 203.3 kB / 465.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1145, allocations: 0 / 465.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.1147, allocations: 147.4 kB / 466 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.115, allocations: 23.86 kB / 466 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.1175, allocations: 1.924 MB / 467.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.1178, allocations: 0.7078 MB / 468.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.521e-05/0.1178, allocations: 16.42 kB / 468.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.543e-05/0.1179, allocations: 39.41 kB / 468.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.605e-06/0.1179, allocations: 4 kB / 468.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.1416, allocations: 4.511 MB / 473.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.821/7.963, allocations: 11.92 kB / 473.2 MB, free: 9.207 MB / 350.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)