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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 107.4 kB / 16.45 MB, free: 6.035 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.001949/0.001949, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.445/1.445, 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.01367/0.01367, allocations: 2.979 MB / 305.7 MB, free: 6.809 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 63.91 kB / 425.4 MB, free: 22.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1113, allocations: 53.08 MB / 478.5 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.003192/0.1145, allocations: 1.677 MB / 480.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.1169, allocations: 1.627 MB / 481.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.731e-05/0.117, allocations: 0 / 481.8 MB, free: 13.58 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.0003162/0.1173, allocations: 31.8 kB / 481.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.1177, allocations: 127.4 kB / 481.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.1179, allocations: 83.72 kB / 482 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.1181, allocations: 87.75 kB / 482.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.1182, allocations: 12.22 kB / 482.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.32e-05/0.1182, allocations: 35.86 kB / 482.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.1184, allocations: 47.77 kB / 482.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.1185, allocations: 8 kB / 482.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003131/0.1188, allocations: 199.8 kB / 482.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.62e-05/0.1188, allocations: 19.92 kB / 482.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.1189, allocations: 43.72 kB / 482.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.1193, allocations: 243.2 kB / 482.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.1193, allocations: 4 kB / 482.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1193, allocations: 0 / 482.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1193, allocations: 3.938 kB / 482.7 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.0007462/0.12, allocations: 484.2 kB / 483.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1201, allocations: 11.89 kB / 483.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.806e-05/0.1202, allocations: 34.73 kB / 483.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.603e-05/0.1202, allocations: 12.89 kB / 483.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.1205, allocations: 216.2 kB / 483.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.773e-06/0.1205, allocations: 384 / 483.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.181e-05/0.1205, allocations: 15.88 kB / 483.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002155/0.1208, allocations: 99.31 kB / 483.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1208, allocations: 4 kB / 483.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.1208, allocations: 0 / 483.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1208, allocations: 0 / 483.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.1209, allocations: 51.97 kB / 483.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004688/0.1214, allocations: 317.6 kB / 483.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.1216, allocations: 89.28 kB / 484 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.1217, allocations: 49.67 kB / 484.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.1217, allocations: 8 kB / 484.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.122, allocations: 130.8 kB / 484.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.122, allocations: 0 / 484.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004925/0.1225, allocations: 231.4 kB / 484.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.912e-05/0.1225, allocations: 110.8 kB / 484.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.1227, allocations: 160.5 kB / 484.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.1227, allocations: 29.7 kB / 484.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.419e-05/0.1228, allocations: 96.14 kB / 484.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.776e-05/0.1228, allocations: 35.73 kB / 484.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.928e-05/0.1229, allocations: 21.72 kB / 484.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.123, allocations: 326.8 kB / 485.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.278e-05/0.1231, allocations: 31.98 kB / 485.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.242e-05/0.1232, allocations: 61.56 kB / 485.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.1234, allocations: 152.9 kB / 485.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1234, allocations: 4 kB / 485.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003139/0.1237, allocations: 191.6 kB / 485.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.871e-05/0.1238, allocations: 37.69 kB / 485.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1238, allocations: 4 kB / 485.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1238, allocations: 0 / 485.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.023e-05/0.1239, allocations: 8 kB / 485.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.1239, allocations: 3.938 kB / 485.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.309e-05/0.124, allocations: 19.88 kB / 485.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.124, allocations: 7.984 kB / 485.7 MB, free: 9.328 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 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,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.0001422/0.1241, allocations: 159.5 kB / 485.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.152e-05/0.1241, allocations: 11.95 kB / 485.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.377e-05/0.1242, allocations: 12.72 kB / 485.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1242, allocations: 0 / 485.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1242, allocations: 0 / 485.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1242, allocations: 3.938 kB / 485.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002056/0.1244, allocations: 217.5 kB / 486.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1244, allocations: 0 / 486.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.066e-05/0.1244, allocations: 8 kB / 486.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1245, allocations: 4 kB / 486.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.1245, allocations: 7.984 kB / 486.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1245, allocations: 0 / 486.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1245, allocations: 0 / 486.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004123/0.1249, allocations: 255.4 kB / 486.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.112e-05/0.125, allocations: 93.05 kB / 486.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.274e-05/0.125, allocations: 8 kB / 486.5 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.527e-05/0.1251, allocations: 8 kB / 486.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.616e-05/0.1251, allocations: 11.92 kB / 486.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.1251, allocations: 4 kB / 486.5 MB, free: 8.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001156/0.1252, allocations: 119.2 kB / 486.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1252, allocations: 0 / 486.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.1256, allocations: 87.69 kB / 486.7 MB, free: 8.223 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 (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.001898/0.1275, allocations: 1.104 MB / 487.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003302/0.1278, allocations: 163.3 kB / 488 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1278, allocations: 4 kB / 488 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.1279, allocations: 103.4 kB / 488.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.1282, allocations: 23.17 kB / 488.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.1306, allocations: 1.873 MB / 490 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.1309, allocations: 0.7039 MB / 490.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.572e-05/0.131, allocations: 16.42 kB / 490.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.773e-05/0.131, allocations: 35.41 kB / 490.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.131, allocations: 0 / 490.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03025/0.1613, allocations: 4.371 MB / 495.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/8.412, allocations: 10.48 kB / 495.1 MB, free: 15.71 MB / 366.1 MB " [Timeout remaining time 652] (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/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.94683794490993] Failed to read output from testmodel.py, exit status != 0: 8.490525115281343 8.50561779 8.383447937 Calling exit ...