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.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.00177/0.00177, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002187/0.002187, allocations: 215 kB / 22.25 MB, free: 5.125 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.536/1.536, allocations: 230.6 MB / 256 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.02218/0.02218, allocations: 3.267 MB / 315.7 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.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: 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.001972/0.001972, allocations: 71.84 kB / 439.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09632/0.0983, allocations: 54.37 MB / 493.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002953/0.1012, allocations: 1.719 MB / 495.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.1038, allocations: 1.738 MB / 497.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.502e-05/0.1038, allocations: 3.938 kB / 497.4 MB, free: 2.277 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.0002809/0.1041, allocations: 43.72 kB / 497.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003228/0.1044, allocations: 119.5 kB / 497.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.1047, allocations: 95.72 kB / 497.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.1048, allocations: 83.77 kB / 497.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.951e-05/0.1049, allocations: 12.22 kB / 497.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.99e-05/0.105, allocations: 43.78 kB / 497.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/0.1051, allocations: 39.84 kB / 497.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.1052, allocations: 4 kB / 497.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003026/0.1055, allocations: 207.8 kB / 498 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.205e-05/0.1055, allocations: 19.92 kB / 498.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.147e-05/0.1056, allocations: 47.73 kB / 498.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003659/0.1059, allocations: 247.2 kB / 498.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1059, allocations: 0 / 498.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1059, allocations: 0 / 498.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.106, allocations: 0 / 498.3 MB, free: 1.328 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.0006128/0.1066, allocations: 407 kB / 498.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.1066, allocations: 8.031 kB / 498.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.167e-05/0.1066, allocations: 42.73 kB / 498.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.1067, allocations: 8.891 kB / 498.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.1069, allocations: 154.3 kB / 498.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.1069, allocations: 4.375 kB / 498.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.107, allocations: 7.938 kB / 499 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002374/0.1072, allocations: 95.36 kB / 499 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.1072, allocations: 0 / 499 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.1072, allocations: 4 kB / 499.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.1072, allocations: 0 / 499.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.1074, allocations: 63.89 kB / 499.1 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004063/0.1078, allocations: 284.8 kB / 499.4 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.108, allocations: 85.22 kB / 499.5 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.1081, allocations: 53.8 kB / 499.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.1082, allocations: 0 / 499.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002181/0.1084, allocations: 142.7 kB / 499.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.032e-06/0.1084, allocations: 0 / 499.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004825/0.1089, allocations: 231.1 kB / 499.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.74e-05/0.1089, allocations: 114.8 kB / 0.4883 GB, free: 15.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.1091, allocations: 172.6 kB / 0.4885 GB, free: 15.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.1091, allocations: 29.7 kB / 0.4885 GB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.1092, allocations: 92.14 kB / 0.4886 GB, free: 15.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.1092, allocations: 31.94 kB / 0.4886 GB, free: 15.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/0.1093, allocations: 21.72 kB / 0.4886 GB, free: 15.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1094, allocations: 326.8 kB / 0.4889 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.224e-05/0.1095, allocations: 47.91 kB / 0.489 GB, free: 14.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.992e-05/0.1096, allocations: 45.7 kB / 0.489 GB, free: 14.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.1098, allocations: 145.1 kB / 0.4892 GB, free: 14.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1098, allocations: 4 kB / 0.4892 GB, free: 14.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003248/0.1102, allocations: 187.5 kB / 0.4893 GB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.345e-05/0.1102, allocations: 41.69 kB / 0.4894 GB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.1102, allocations: 48 / 0.4894 GB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.1102, allocations: 7.984 kB / 0.4894 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.309e-05/0.1103, allocations: 11.94 kB / 0.4894 GB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.1103, allocations: 4 kB / 0.4894 GB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.125e-05/0.1104, allocations: 19.81 kB / 0.4894 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.1104, allocations: 4 kB / 0.4894 GB, free: 14.2 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 (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.0001373/0.1105, allocations: 155.5 kB / 0.4896 GB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/0.1106, allocations: 11.95 kB / 0.4896 GB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.1106, allocations: 12.72 kB / 0.4896 GB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1106, allocations: 4 kB / 0.4896 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1106, allocations: 3.984 kB / 0.4896 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.1106, allocations: 11.88 kB / 0.4896 GB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.1108, allocations: 172.6 kB / 0.4898 GB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1108, allocations: 0 / 0.4898 GB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.763e-05/0.1108, allocations: 11.98 kB / 0.4898 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1109, allocations: 4 kB / 0.4898 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.1109, allocations: 4 kB / 0.4898 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.782e-06/0.1109, allocations: 7.938 kB / 0.4898 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1109, allocations: 0 / 0.4898 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003947/0.1113, allocations: 251.6 kB / 0.49 GB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.1113, allocations: 23.88 kB / 0.4901 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.1113, allocations: 3.938 kB / 0.4901 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.117e-05/0.1114, allocations: 11.98 kB / 0.4901 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.29e-05/0.1114, allocations: 3.938 kB / 0.4901 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.1115, allocations: 11.98 kB / 0.4901 GB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000108/0.1116, allocations: 127.2 kB / 0.4902 GB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1116, allocations: 0 / 0.4902 GB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.1119, allocations: 79.69 kB / 0.4903 GB, free: 13.22 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,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.00187/0.1138, allocations: 1.08 MB / 0.4914 GB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003198/0.1141, allocations: 167.3 kB / 0.4915 GB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1141, allocations: 0 / 0.4915 GB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.1142, allocations: 103.4 kB / 0.4916 GB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.1145, allocations: 34.23 kB / 0.4916 GB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.1169, allocations: 1.875 MB / 0.4935 GB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.1173, allocations: 0.7007 MB / 0.4942 GB, free: 9.184 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.088e-05/0.1173, allocations: 16.42 kB / 0.4942 GB, free: 9.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.762e-05/0.1174, allocations: 31.53 kB / 0.4942 GB, free: 9.137 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1174, allocations: 7.938 kB / 0.4942 GB, free: 9.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03342/0.1508, allocations: 4.528 MB / 0.4986 GB, free: 4.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.18, allocations: 7.859 kB / 0.4986 GB, free: 4.613 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.96264290693216] Failed to read output from testmodel.py, exit status != 0: 11.298982778098434 11.490794548 11.381504849 Calling exit ...