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.001774/0.001774, 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.001935/0.001935, allocations: 194.3 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1303/0.1303, allocations: 2.937 MB / 293.3 MB, free: 3.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 59.91 kB / 354.8 MB, free: 3.645 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08485/0.08685, allocations: 50.34 MB / 405.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.002954/0.08984, allocations: 1.659 MB / 406.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002204/0.09206, allocations: 1.615 MB / 408.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.514e-05/0.09214, allocations: 4 kB / 408.4 MB, free: 13.96 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.0002841/0.09243, allocations: 39.8 kB / 408.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003068/0.09274, allocations: 119.4 kB / 408.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.09298, allocations: 91.8 kB / 408.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.09313, allocations: 99.75 kB / 408.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.422e-05/0.09324, allocations: 28.2 kB / 408.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.684e-05/0.09331, allocations: 35.86 kB / 408.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.09348, allocations: 47.83 kB / 408.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.09351, allocations: 8 kB / 408.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002841/0.0938, allocations: 203.6 kB / 409 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.285e-05/0.09388, allocations: 19.98 kB / 409.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.804e-05/0.09395, allocations: 51.72 kB / 409.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003262/0.09428, allocations: 255.7 kB / 409.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.0943, allocations: 0 / 409.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.0943, allocations: 0 / 409.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.09431, allocations: 4 kB / 409.4 MB, free: 12.97 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.0006015/0.09492, allocations: 488.6 kB / 409.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.09496, allocations: 15.83 kB / 409.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.54e-05/0.095, allocations: 38.75 kB / 409.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.09505, allocations: 8.844 kB / 409.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.09525, allocations: 213.3 kB / 410.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.09528, allocations: 8.312 kB / 410.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.0953, allocations: 7.938 kB / 410.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/0.0955, allocations: 103.3 kB / 410.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.09552, allocations: 3.938 kB / 410.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.09554, allocations: 8 kB / 410.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.09555, allocations: 3.984 kB / 410.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001549/0.09571, allocations: 55.97 kB / 410.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004032/0.09612, allocations: 337.6 kB / 410.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.09637, allocations: 101.2 kB / 410.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.0965, allocations: 65.73 kB / 410.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.09652, allocations: 0 / 410.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.09678, allocations: 150.7 kB / 410.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.0968, allocations: 0 / 410.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004997/0.0973, allocations: 247.3 kB / 411.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.09737, allocations: 110.8 kB / 411.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.09753, allocations: 159.7 kB / 411.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.09755, allocations: 29.7 kB / 411.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.016e-05/0.09761, allocations: 96.05 kB / 411.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.09765, allocations: 27.64 kB / 411.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.09771, allocations: 21.72 kB / 411.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.09782, allocations: 330.8 kB / 411.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.081e-05/0.09792, allocations: 43.97 kB / 412 MB, free: 10.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.195e-05/0.09802, allocations: 53.7 kB / 412 MB, free: 10.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001944/0.09823, allocations: 165 kB / 412.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.09824, allocations: 0 / 412.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003826/0.09863, allocations: 211 kB / 412.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.09868, allocations: 37.69 kB / 412.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.09869, allocations: 3.938 kB / 412.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.09871, allocations: 0 / 412.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.413e-05/0.09878, allocations: 8 kB / 412.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.09879, allocations: 4 kB / 412.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.845e-05/0.09889, allocations: 19.92 kB / 412.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.09891, allocations: 4 kB / 412.5 MB, free: 9.531 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 (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.0001237/0.09904, allocations: 166.5 kB / 412.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.28e-05/0.09908, allocations: 15.75 kB / 412.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.761e-05/0.09911, allocations: 12.72 kB / 412.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.09912, allocations: 4 kB / 412.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.09913, allocations: 0 / 412.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.09914, allocations: 8.25 kB / 412.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.09934, allocations: 221.6 kB / 412.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.09935, allocations: 4 kB / 412.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.449e-05/0.09941, allocations: 11.98 kB / 412.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.09941, allocations: 0 / 412.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.09944, allocations: 8 kB / 412.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.09944, allocations: 0 / 412.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.09945, allocations: 3.984 kB / 412.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003966/0.09985, allocations: 271.3 kB / 413.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.09991, allocations: 93 kB / 413.3 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.09996, allocations: 8 kB / 413.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.155e-05/0.1, allocations: 4 kB / 413.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.1001, allocations: 11.92 kB / 413.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.1001, allocations: 4 kB / 413.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001054/0.1002, allocations: 126 kB / 413.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1002, allocations: 0 / 413.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.1005, allocations: 75.98 kB / 413.5 MB, free: 8.398 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,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.001324/0.1019, allocations: 1.125 MB / 414.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003159/0.1022, allocations: 199.4 kB / 414.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1022, allocations: 4 kB / 414.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.1024, allocations: 147.3 kB / 415 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002346/0.1026, allocations: 19.92 kB / 415 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.1047, allocations: 1.93 MB / 416.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.105, allocations: 0.7078 MB / 417.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.172e-05/0.1051, allocations: 12.42 kB / 417.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.145e-05/0.1051, allocations: 35.42 kB / 417.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1051, allocations: 192 / 417.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.1268, allocations: 4.425 MB / 422.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.45/7.577, allocations: 11.78 kB / 422.1 MB, free: 15.75 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)