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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 109.9 kB / 16.45 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 196.6 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01353/0.01353, allocations: 2.985 MB / 305.7 MB, free: 6.785 MB / 238.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 67.89 kB / 425.4 MB, free: 21.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1078, allocations: 53.08 MB / 478.5 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.004691/0.1125, allocations: 1.685 MB / 480.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004036/0.1166, allocations: 1.623 MB / 481.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.226e-05/0.1166, allocations: 3.938 kB / 481.8 MB, free: 13.43 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0004087/0.117, allocations: 31.8 kB / 481.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005547/0.1176, allocations: 131.4 kB / 482 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.118, allocations: 87.8 kB / 482 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.1182, allocations: 95.75 kB / 482.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.1183, allocations: 16.22 kB / 482.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.1184, allocations: 39.8 kB / 482.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.1187, allocations: 43.83 kB / 482.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.1187, allocations: 8 kB / 482.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005584/0.1193, allocations: 199.8 kB / 482.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.63e-05/0.1194, allocations: 27.86 kB / 482.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.1195, allocations: 55.66 kB / 482.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005949/0.1201, allocations: 255.2 kB / 482.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1201, allocations: 4 kB / 482.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1201, allocations: 0 / 482.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1201, allocations: 0 / 482.8 MB, free: 12.45 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.001006/0.1211, allocations: 488.1 kB / 483.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.105e-05/0.1212, allocations: 15.89 kB / 483.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.594e-05/0.1212, allocations: 34.75 kB / 483.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.423e-05/0.1213, allocations: 8.891 kB / 483.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004729/0.1217, allocations: 220.1 kB / 483.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.1218, allocations: 12.38 kB / 483.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.1218, allocations: 7.938 kB / 483.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.1221, allocations: 103.3 kB / 483.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1221, allocations: 0 / 483.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.1221, allocations: 0 / 483.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1222, allocations: 0 / 483.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002209/0.1224, allocations: 67.89 kB / 483.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000677/0.1231, allocations: 333.7 kB / 484 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.1234, allocations: 93.22 kB / 484.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.1236, allocations: 49.75 kB / 484.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.1236, allocations: 12 kB / 484.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003639/0.124, allocations: 142.7 kB / 484.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.124, allocations: 0 / 484.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007759/0.1248, allocations: 247.4 kB / 484.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.1249, allocations: 106.8 kB / 484.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.1251, allocations: 172.9 kB / 484.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.1252, allocations: 25.7 kB / 484.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.641e-05/0.1252, allocations: 100.1 kB / 485 MB, free: 9.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/0.1253, allocations: 27.75 kB / 485 MB, free: 9.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.888e-05/0.1254, allocations: 25.7 kB / 485 MB, free: 9.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.1256, allocations: 326.8 kB / 485.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.1257, allocations: 39.98 kB / 485.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.1259, allocations: 61.69 kB / 485.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/0.1263, allocations: 169.1 kB / 485.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1263, allocations: 0 / 485.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005441/0.1268, allocations: 203.2 kB / 485.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.274e-05/0.1269, allocations: 41.69 kB / 485.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1269, allocations: 4 kB / 485.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1269, allocations: 0 / 485.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.859e-05/0.127, allocations: 12 kB / 485.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.127, allocations: 4.297 kB / 485.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.1272, allocations: 15.89 kB / 485.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.1272, allocations: 4 kB / 485.9 MB, free: 9.02 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.0001985/0.1274, allocations: 167.1 kB / 486 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.245e-05/0.1274, allocations: 11.95 kB / 486 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.58e-05/0.1275, allocations: 16.7 kB / 486.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1275, allocations: 0 / 486.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.1275, allocations: 4 kB / 486.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.1275, allocations: 7.938 kB / 486.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002996/0.1278, allocations: 225.5 kB / 486.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1278, allocations: 0 / 486.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.873e-05/0.1279, allocations: 15.92 kB / 486.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1279, allocations: 0 / 486.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.1279, allocations: 4 kB / 486.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.1279, allocations: 4 kB / 486.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.1279, allocations: 3.984 kB / 486.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005841/0.1285, allocations: 267.5 kB / 486.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.1286, allocations: 93.05 kB / 486.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/0.1286, allocations: 4 kB / 486.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.932e-05/0.1287, allocations: 7.984 kB / 486.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.283e-05/0.1288, allocations: 11.94 kB / 486.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.1288, allocations: 4 kB / 486.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.129, allocations: 119.2 kB / 486.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.129, allocations: 11.94 kB / 486.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005147/0.1295, allocations: 87.67 kB / 486.9 MB, free: 7.863 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.002213/0.1317, allocations: 1.106 MB / 488 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003822/0.1321, allocations: 175.3 kB / 488.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1321, allocations: 0 / 488.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.1323, allocations: 111.4 kB / 488.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.1325, allocations: 26.94 kB / 488.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/0.1351, allocations: 1.929 MB / 490.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.1355, allocations: 0.7117 MB / 491 MB, free: 3.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.381e-05/0.1356, allocations: 16.42 kB / 491 MB, free: 3.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.428e-05/0.1357, allocations: 35.42 kB / 491 MB, free: 3.684 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1357, allocations: 0 / 491 MB, free: 3.684 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03133/0.167, allocations: 4.531 MB / 495.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.16/8.327, allocations: 11.39 kB / 495.6 MB, free: 15.11 MB / 366.1 MB " [Timeout remaining time 652] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTestInnerOuter.fmu > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.880592511035502] Failed to read output from testmodel.py, exit status != 0: 8.406567005906254 8.422467981 8.299173299 Calling exit ...