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.3-master/package.mo", uses=false) Using package ExternData with version 3.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-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.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.0008983/0.0008983, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009702/0.0009703, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/package.mo): time 0.153/0.153, allocations: 2.957 MB / 293.9 MB, free: 3.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002931, allocations: 8 kB / 355.8 MB, free: 3.633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09385/0.09416, allocations: 51.35 MB / 407.2 MB, free: 240 kB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.001799/0.09601, allocations: 1.365 MB / 408.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.09788, allocations: 1.487 MB / 410 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.289e-05/0.09794, allocations: 0 / 410 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.09817, allocations: 35.84 kB / 410.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002527/0.09843, allocations: 95.64 kB / 410.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.09864, allocations: 63.73 kB / 410.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.475e-05/0.09875, allocations: 47.94 kB / 410.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.951e-05/0.09885, allocations: 16.22 kB / 410.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.532e-05/0.09895, allocations: 35.84 kB / 410.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.09914, allocations: 35.83 kB / 410.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.09919, allocations: 7.938 kB / 410.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000263/0.09946, allocations: 159.7 kB / 410.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.92e-05/0.09952, allocations: 11.98 kB / 410.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.853e-05/0.09957, allocations: 45.62 kB / 410.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.09984, allocations: 163.9 kB / 410.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.09985, allocations: 0 / 410.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09985, allocations: 4 kB / 410.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.09986, allocations: 0 / 410.8 MB, free: 12.65 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.0006431/0.1005, allocations: 468.6 kB / 411.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1006, allocations: 8.031 kB / 411.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.994e-05/0.1006, allocations: 38.56 kB / 411.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.1007, allocations: 11.81 kB / 411.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.1009, allocations: 216.8 kB / 411.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.1009, allocations: 0 / 411.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.101, allocations: 8 kB / 411.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.1012, allocations: 95.38 kB / 411.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1012, allocations: 0 / 411.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.1012, allocations: 0 / 411.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.1013, allocations: 4 kB / 411.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001465/0.1014, allocations: 59.89 kB / 411.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004567/0.1019, allocations: 317.7 kB / 412 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.1021, allocations: 101.2 kB / 412 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.1022, allocations: 7.938 kB / 412.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.1025, allocations: 138.8 kB / 412.2 MB, free: 11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 3.627e-06/0.1025, allocations: 0 / 412.2 MB, free: 11 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005177/0.103, allocations: 324.3 kB / 412.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.405e-05/0.1031, allocations: 110.8 kB / 412.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.1033, allocations: 157.8 kB / 412.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.1033, allocations: 29.7 kB / 412.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.682e-05/0.1034, allocations: 96.12 kB / 412.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.419e-05/0.1034, allocations: 27.56 kB / 412.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.885e-06/0.1034, allocations: 4 kB / 412.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1036, allocations: 322.8 kB / 413.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.065e-05/0.1037, allocations: 39.98 kB / 413.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.219e-05/0.1038, allocations: 53.92 kB / 413.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.704e-05/0.1039, allocations: 65.69 kB / 413.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1039, allocations: 3.938 kB / 413.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003157/0.1042, allocations: 195.2 kB / 413.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.741e-05/0.1043, allocations: 37.7 kB / 413.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1043, allocations: 0 / 413.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.1043, allocations: 0 / 413.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.436e-05/0.1044, allocations: 15.98 kB / 413.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.1044, allocations: 11.95 kB / 413.7 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.573e-05/0.1045, allocations: 11.91 kB / 413.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.1045, allocations: 4 kB / 413.7 MB, free: 9.406 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 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001376/0.1046, allocations: 168 kB / 413.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-05/0.1047, allocations: 15.89 kB / 413.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.1047, allocations: 16.66 kB / 413.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1048, allocations: 0 / 413.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1048, allocations: 0 / 413.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.1048, allocations: 7.953 kB / 413.9 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.105, allocations: 209.5 kB / 414.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.105, allocations: 0 / 414.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.154e-05/0.1051, allocations: 8 kB / 414.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1051, allocations: 8 kB / 414.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1051, allocations: 4 kB / 414.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1051, allocations: 4 kB / 414.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1051, allocations: 3.984 kB / 414.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003832/0.1055, allocations: 257.3 kB / 414.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.904e-05/0.1056, allocations: 97 kB / 414.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/0.1057, allocations: 4 kB / 414.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.94e-05/0.1057, allocations: 8 kB / 414.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/0.1058, allocations: 11.94 kB / 414.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.1058, allocations: 4 kB / 414.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.945e-05/0.1059, allocations: 123.2 kB / 414.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.983e-06/0.1059, allocations: 0 / 414.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003145/0.1062, allocations: 75.92 kB / 414.7 MB, free: 8.289 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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002376/0.1086, allocations: 1.198 MB / 415.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003261/0.109, allocations: 187.3 kB / 416.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.109, allocations: 0 / 416.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.1092, allocations: 139.3 kB / 416.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.1094, allocations: 27.48 kB / 416.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.1109, allocations: 0.9557 MB / 417.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.1113, allocations: 0.7082 MB / 417.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.405e-05/0.1114, allocations: 16.42 kB / 417.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.428e-05/0.1115, allocations: 31.61 kB / 417.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1115, allocations: 0 / 417.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01657/0.1281, allocations: 3.826 MB / 421.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/0.1283, allocations: 220.9 kB / 422 MB, free: 1.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/1.954, allocations: 0 / 422 MB, free: 1.043 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1) Environment - environmentSimulation: