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.000844/0.0008443, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008933/0.0008935, allocations: 172.7 kB / 15.95 MB, free: 208 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.496/1.496, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/package.mo): time 0.1534/0.1534, allocations: 2.948 MB / 294 MB, free: 3.949 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000528/0.0005284, allocations: 8 kB / 356 MB, free: 3.648 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1176, allocations: 51.35 MB / 407.3 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002409/0.1201, allocations: 1.365 MB / 408.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.1224, allocations: 1.487 MB / 410.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.242e-05/0.1225, allocations: 0 / 410.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.1228, allocations: 35.84 kB / 410.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003336/0.1231, allocations: 95.66 kB / 410.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.1234, allocations: 59.88 kB / 410.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.1235, allocations: 75.75 kB / 410.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.422e-05/0.1236, allocations: 16.22 kB / 410.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.244e-05/0.1237, allocations: 31.86 kB / 410.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.1239, allocations: 39.83 kB / 410.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.1239, allocations: 4 kB / 410.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002847/0.1242, allocations: 171.8 kB / 410.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.186e-05/0.1242, allocations: 23.91 kB / 410.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.276e-05/0.1243, allocations: 41.64 kB / 410.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002507/0.1245, allocations: 167.9 kB / 410.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1246, allocations: 4 kB / 410.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1246, allocations: 4 kB / 410.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1246, allocations: 0 / 410.9 MB, free: 12.61 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.0005887/0.1252, allocations: 464.6 kB / 411.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1252, allocations: 8.031 kB / 411.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.481e-05/0.1253, allocations: 34.56 kB / 411.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.14e-05/0.1253, allocations: 11.81 kB / 411.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.1255, allocations: 216.8 kB / 411.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.1255, allocations: 4 kB / 411.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.1256, allocations: 4 kB / 411.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002193/0.1258, allocations: 95.38 kB / 411.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1258, allocations: 3.984 kB / 411.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.1258, allocations: 0 / 411.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1258, allocations: 4 kB / 411.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.126, allocations: 59.91 kB / 411.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003827/0.1264, allocations: 313.8 kB / 412.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.1266, allocations: 105.2 kB / 412.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.1267, allocations: 61.73 kB / 412.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.1267, allocations: 0 / 412.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002199/0.127, allocations: 142.7 kB / 412.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.127, allocations: 0 / 412.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004393/0.1274, allocations: 231.1 kB / 412.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.1275, allocations: 110.7 kB / 412.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.1276, allocations: 160 kB / 412.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.1277, allocations: 29.7 kB / 412.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.1277, allocations: 100.1 kB / 413 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.424e-05/0.1278, allocations: 35.48 kB / 413.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.1278, allocations: 3.938 kB / 413.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1279, allocations: 322.8 kB / 413.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.078e-05/0.128, allocations: 35.98 kB / 413.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.061e-05/0.1281, allocations: 53.92 kB / 413.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.1282, allocations: 69.69 kB / 413.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1282, allocations: 0 / 413.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002855/0.1285, allocations: 191.2 kB / 413.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.1285, allocations: 37.69 kB / 413.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1285, allocations: 0 / 413.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.1286, allocations: 0 / 413.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.114e-05/0.1286, allocations: 15.94 kB / 413.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.1287, allocations: 16 kB / 413.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.345e-05/0.1287, allocations: 11.91 kB / 413.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.1288, allocations: 8 kB / 413.8 MB, free: 9.402 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.0001104/0.1289, allocations: 159.5 kB / 414 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.335e-05/0.1289, allocations: 11.91 kB / 414 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.1289, allocations: 16.7 kB / 414 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1289, allocations: 0 / 414 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.129, allocations: 0 / 414 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.129, allocations: 11.95 kB / 414 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.1291, allocations: 201.5 kB / 414.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1291, allocations: 4 kB / 414.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.476e-05/0.1292, allocations: 15.98 kB / 414.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1292, allocations: 4 kB / 414.2 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.1292, allocations: 0 / 414.2 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1292, allocations: 4 kB / 414.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1292, allocations: 0 / 414.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003348/0.1296, allocations: 255.7 kB / 414.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.1296, allocations: 93 kB / 414.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.1297, allocations: 11.97 kB / 414.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-05/0.1298, allocations: 8 kB / 414.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/0.1298, allocations: 11.92 kB / 414.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.1298, allocations: 4 kB / 414.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.184e-05/0.1299, allocations: 131.2 kB / 414.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.13, allocations: 0 / 414.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.1303, allocations: 75.98 kB / 414.8 MB, free: 8.293 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.001341/0.1316, allocations: 1.106 MB / 415.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002979/0.1319, allocations: 187.3 kB / 416.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1319, allocations: 4 kB / 416.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.1321, allocations: 139.4 kB / 416.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.1323, allocations: 19.88 kB / 416.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.1336, allocations: 0.8243 MB / 417.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.1339, allocations: 0.7047 MB / 417.8 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.57e-05/0.134, allocations: 12.42 kB / 417.8 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.184e-05/0.134, allocations: 31.42 kB / 417.8 MB, free: 5.254 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.134, allocations: 0 / 417.8 MB, free: 5.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.1502, allocations: 3.839 MB / 421.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.1504, allocations: 228.4 kB / 421.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.049/2.199, allocations: 0 / 421.9 MB, free: 1.281 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: