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.001422/0.001422, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001504/0.001504, allocations: 190.1 kB / 16.25 MB, free: 6.621 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.378/1.378, allocations: 222.9 MB / 239.9 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1458/0.1458, allocations: 2.934 MB / 293 MB, free: 3.176 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 64.11 kB / 354.3 MB, free: 3.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08664/0.0879, allocations: 50.34 MB / 404.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.004761/0.09272, allocations: 1.743 MB / 406.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002863/0.09561, allocations: 1.584 MB / 407.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.802e-05/0.09571, allocations: 0 / 407.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.09604, allocations: 43.78 kB / 408 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003548/0.09641, allocations: 103.7 kB / 408.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.09667, allocations: 79.88 kB / 408.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.09683, allocations: 103.8 kB / 408.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.184e-05/0.09692, allocations: 12.22 kB / 408.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.73e-05/0.09701, allocations: 43.8 kB / 408.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.09717, allocations: 43.83 kB / 408.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.09719, allocations: 8 kB / 408.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002786/0.09748, allocations: 199.8 kB / 408.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.248e-05/0.09755, allocations: 31.84 kB / 408.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.714e-05/0.09762, allocations: 47.73 kB / 408.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.09799, allocations: 259.7 kB / 408.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.098, allocations: 0 / 408.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09801, allocations: 0 / 408.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.09802, allocations: 0 / 408.9 MB, free: 13.27 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.0006407/0.09866, allocations: 486.2 kB / 409.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.09871, allocations: 15.88 kB / 409.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.544e-05/0.09875, allocations: 42.75 kB / 409.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.444e-05/0.0988, allocations: 8.844 kB / 409.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.099, allocations: 216 kB / 409.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.09902, allocations: 4.375 kB / 409.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.09904, allocations: 3.938 kB / 409.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002068/0.09926, allocations: 99.38 kB / 409.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.09928, allocations: 7.938 kB / 409.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.09929, allocations: 0 / 409.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.09931, allocations: 3.984 kB / 409.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.09945, allocations: 63.91 kB / 409.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003971/0.09985, allocations: 333.6 kB / 410.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.1001, allocations: 109.3 kB / 410.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.1002, allocations: 65.81 kB / 410.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.1002, allocations: 0 / 410.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.1005, allocations: 146.7 kB / 410.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.1005, allocations: 0 / 410.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004671/0.101, allocations: 247.2 kB / 410.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.1011, allocations: 110.8 kB / 410.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.1012, allocations: 159.4 kB / 411 MB, free: 10.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.1012, allocations: 29.64 kB / 411 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.577e-05/0.1013, allocations: 100 kB / 411.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.1013, allocations: 27.64 kB / 411.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/0.1014, allocations: 25.72 kB / 411.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1015, allocations: 326.8 kB / 411.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.607e-05/0.1016, allocations: 39.98 kB / 411.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.388e-05/0.1017, allocations: 61.69 kB / 411.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001877/0.1019, allocations: 157 kB / 411.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1019, allocations: 0 / 411.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003076/0.1022, allocations: 207.1 kB / 411.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.802e-05/0.1022, allocations: 45.69 kB / 412 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.1022, allocations: 7.938 kB / 412 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1023, allocations: 0 / 412 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.406e-05/0.1023, allocations: 12 kB / 412 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.1023, allocations: 0 / 412 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.1025, allocations: 11.92 kB / 412 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.1025, allocations: 4 kB / 412 MB, free: 9.836 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.0001222/0.1026, allocations: 171.5 kB / 412.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.1027, allocations: 15.81 kB / 412.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.635e-05/0.1027, allocations: 12.72 kB / 412.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1027, allocations: 4 kB / 412.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1027, allocations: 0 / 412.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1027, allocations: 4.266 kB / 412.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/0.1029, allocations: 217.6 kB / 412.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1029, allocations: 3.938 kB / 412.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.206e-05/0.103, allocations: 8 kB / 412.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.103, allocations: 0 / 412.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.103, allocations: 11.92 kB / 412.4 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.103, allocations: 0 / 412.4 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.103, allocations: 11.98 kB / 412.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004195/0.1034, allocations: 263.3 kB / 412.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.1035, allocations: 93 kB / 412.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/0.1035, allocations: 4 kB / 412.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.821e-05/0.1036, allocations: 4 kB / 412.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.349e-05/0.1037, allocations: 19.86 kB / 412.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.1037, allocations: 8 kB / 412.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.778e-05/0.1038, allocations: 125.1 kB / 413 MB, free: 8.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1038, allocations: 0 / 413 MB, free: 8.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003236/0.1041, allocations: 75.98 kB / 413 MB, free: 8.695 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.001313/0.1054, allocations: 1.117 MB / 414.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002984/0.1057, allocations: 211.4 kB / 414.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1058, allocations: 0 / 414.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.1059, allocations: 143.3 kB / 414.5 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.0002238/0.1061, allocations: 27.92 kB / 414.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.1082, allocations: 1.948 MB / 416.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.1085, allocations: 0.7039 MB / 417.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.007e-05/0.1085, allocations: 16.42 kB / 417.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.413e-05/0.1086, allocations: 35.41 kB / 417.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1086, allocations: 0 / 417.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8018/0.9104, allocations: 4.307 MB / 421.5 MB, free: 188 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002585/0.9107, allocations: 256 kB / 421.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.542/4.453, allocations: 4.062 kB / 421.8 MB, free: 15.92 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTestInnerOuter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTestInnerOuter.fmu > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1)