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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002115/0.002115, allocations: 215 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.439/1.439, allocations: 230.6 MB / 256.8 MB, free: 7.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01441/0.01441, allocations: 3.271 MB / 316.5 MB, free: 15.79 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternData.Examples.XMLTestInnerOuter,fileNamePrefix="ExternData_ExternData_Examples_XMLTestInnerOuter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTestInnerOuter,fileNamePrefix="ExternData_ExternData_Examples_XMLTestInnerOuter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 66.88 kB / 440.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1139, allocations: 54.38 MB / 494.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003255/0.1172, allocations: 1.694 MB / 496.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.1199, allocations: 1.769 MB / 498.2 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.878e-05/0.1199, allocations: 0 / 498.2 MB, free: 2.25 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:238:3-267:14:writable] Warning: Pure function 'ExternData.XMLFile' contains a call to impure function 'ExternData.Types.ExternXMLFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.1203, allocations: 39.8 kB / 498.2 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003552/0.1206, allocations: 123.4 kB / 498.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.1208, allocations: 91.78 kB / 498.4 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000161/0.121, allocations: 95.78 kB / 498.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.198e-05/0.1211, allocations: 24.08 kB / 498.6 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.08e-05/0.1212, allocations: 35.86 kB / 498.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.1213, allocations: 47.83 kB / 498.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.1214, allocations: 8 kB / 498.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003214/0.1217, allocations: 211.7 kB / 498.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.132e-05/0.1217, allocations: 19.92 kB / 498.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.003e-05/0.1218, allocations: 47.73 kB / 498.9 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003995/0.1222, allocations: 263.2 kB / 499.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1222, allocations: 0 / 499.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1222, allocations: 0 / 499.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1222, allocations: 7.938 kB / 499.2 MB, free: 1.25 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.0006684/0.1229, allocations: 411 kB / 499.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.1229, allocations: 12.03 kB / 499.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.107e-05/0.1229, allocations: 192 / 499.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.34e-05/0.123, allocations: 38.75 kB / 499.6 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.473e-05/0.123, allocations: 8.891 kB / 499.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.1233, allocations: 158.3 kB / 499.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.1233, allocations: 12.12 kB / 499.8 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.1233, allocations: 0 / 499.8 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.1236, allocations: 103.3 kB / 499.9 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.1236, allocations: 4 kB / 499.9 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.1236, allocations: 0 / 499.9 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1236, allocations: 0 / 499.9 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001465/0.1237, allocations: 59.95 kB / 500 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.1242, allocations: 304.8 kB / 0.4886 GB, free: 36 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.1244, allocations: 93.12 kB / 0.4886 GB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.1245, allocations: 57.83 kB / 0.4887 GB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.1246, allocations: 11.94 kB / 0.4887 GB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.1248, allocations: 146.7 kB / 0.4888 GB, free: 15.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.1248, allocations: 0 / 0.4888 GB, free: 15.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005195/0.1253, allocations: 255.2 kB / 0.4891 GB, free: 15.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.388e-05/0.1254, allocations: 110.8 kB / 0.4892 GB, free: 15.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.1255, allocations: 176.6 kB / 0.4894 GB, free: 15.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.1256, allocations: 25.7 kB / 0.4894 GB, free: 15.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.383e-05/0.1256, allocations: 100.1 kB / 0.4895 GB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.1257, allocations: 23.81 kB / 0.4895 GB, free: 14.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/0.1257, allocations: 25.7 kB / 0.4895 GB, free: 14.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1259, allocations: 322.8 kB / 0.4898 GB, free: 14.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.367e-05/0.126, allocations: 39.98 kB / 0.4899 GB, free: 14.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.995e-05/0.1261, allocations: 61.69 kB / 0.4899 GB, free: 14.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.1263, allocations: 165 kB / 0.4901 GB, free: 14.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1263, allocations: 0 / 0.4901 GB, free: 14.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003448/0.1267, allocations: 203.5 kB / 0.4903 GB, free: 14.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.1267, allocations: 37.7 kB / 0.4903 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1267, allocations: 0 / 0.4903 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.1267, allocations: 0 / 0.4903 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.44e-05/0.1268, allocations: 16.03 kB / 0.4903 GB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1268, allocations: 4 kB / 0.4903 GB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.096e-05/0.1269, allocations: 19.81 kB / 0.4904 GB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.1269, allocations: 4 kB / 0.4904 GB, free: 14.02 MB / 366.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.0001513/0.127, allocations: 169.1 kB / 0.4905 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.1271, allocations: 11.94 kB / 0.4905 GB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.72e-05/0.1271, allocations: 16.66 kB / 0.4906 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1271, allocations: 4 kB / 0.4906 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1271, allocations: 0 / 0.4906 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1271, allocations: 7.938 kB / 0.4906 GB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.1273, allocations: 196.6 kB / 0.4908 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1273, allocations: 0 / 0.4908 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.406e-05/0.1274, allocations: 8 kB / 0.4908 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.1274, allocations: 0 / 0.4908 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.1274, allocations: 4 kB / 0.4908 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1274, allocations: 3.984 kB / 0.4908 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1274, allocations: 4 kB / 0.4908 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004208/0.1278, allocations: 263.5 kB / 0.491 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-05/0.1278, allocations: 23.88 kB / 0.491 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/0.1279, allocations: 0 / 0.491 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.01e-05/0.1279, allocations: 12 kB / 0.4911 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.128, allocations: 7.922 kB / 0.4911 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.128, allocations: 4 kB / 0.4911 GB, free: 13.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.1281, allocations: 127.2 kB / 0.4912 GB, free: 13.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1281, allocations: 4 kB / 0.4912 GB, free: 13.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003233/0.1284, allocations: 83.69 kB / 0.4913 GB, free: 13 MB / 366.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.00182/0.1302, allocations: 1.106 MB / 0.4924 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003272/0.1306, allocations: 171.3 kB / 0.4925 GB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1306, allocations: 0 / 0.4925 GB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.1307, allocations: 115.3 kB / 0.4926 GB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002279/0.131, allocations: 30.94 kB / 0.4927 GB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.1334, allocations: 1.94 MB / 0.4946 GB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.1338, allocations: 0.6968 MB / 0.4952 GB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.978e-05/0.1338, allocations: 16.42 kB / 0.4953 GB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.439e-05/0.1339, allocations: 35.41 kB / 0.4953 GB, free: 8.812 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1339, allocations: 0 / 0.4953 GB, free: 8.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02845/0.1624, allocations: 4.712 MB / 0.4999 GB, free: 4.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.14, allocations: 15.17 kB / 0.4999 GB, free: 4.117 MB / 366.1 MB " [Timeout remaining time 649] (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 os._exit(0), Time elapsed: 13.888844564906321] Failed to read output from testmodel.py, exit status != 0: 11.31172943499405 11.487342315 11.362398931 Calling exit ...