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.001584/0.001584, allocations: 105.2 kB / 19.72 MB, free: 2.234 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.001396/0.001396, allocations: 213.8 kB / 23.04 MB, free: 5.07 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.43/1.43, allocations: 230.6 MB / 256.8 MB, free: 8 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.01542/0.01542, allocations: 3.27 MB / 316.5 MB, free: 15.91 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",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.001896/0.001896, allocations: 70.7 kB / 440.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09962/0.1015, allocations: 54.38 MB / 494.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.00302/0.1045, allocations: 1.694 MB / 496.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002596/0.1071, allocations: 1.753 MB / 498.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.938e-05/0.1072, allocations: 0 / 498.2 MB, free: 2.586 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.0002963/0.1075, allocations: 39.8 kB / 498.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003399/0.1078, allocations: 127.4 kB / 498.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.1081, allocations: 87.42 kB / 498.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.1082, allocations: 83.77 kB / 498.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.773e-05/0.1083, allocations: 12.22 kB / 498.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.595e-05/0.1084, allocations: 43.78 kB / 498.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.1086, allocations: 39.83 kB / 498.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.1086, allocations: 8 kB / 498.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003096/0.1089, allocations: 203.8 kB / 498.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.727e-05/0.1089, allocations: 19.92 kB / 498.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.595e-05/0.109, allocations: 47.72 kB / 498.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.1094, allocations: 247.2 kB / 499.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1094, allocations: 0 / 499.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1094, allocations: 0 / 499.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1094, allocations: 3.938 kB / 499.1 MB, free: 1.641 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.0006584/0.11, allocations: 407 kB / 499.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1101, allocations: 8.031 kB / 499.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.657e-05/0.1101, allocations: 4.188 kB / 499.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.086e-05/0.1101, allocations: 42.73 kB / 499.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.862e-05/0.1102, allocations: 12.83 kB / 499.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.1105, allocations: 150.3 kB / 499.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.1105, allocations: 8.125 kB / 499.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.1105, allocations: 4 kB / 499.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.1107, allocations: 91.38 kB / 499.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1107, allocations: 4 kB / 499.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.1107, allocations: 4 kB / 499.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1107, allocations: 0 / 499.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.1109, allocations: 59.89 kB / 499.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003989/0.1113, allocations: 288.8 kB / 0.4885 GB, free: 464 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002447/0.1115, allocations: 97.2 kB / 0.4886 GB, free: 348 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.605e-05/0.1116, allocations: 41.75 kB / 0.4886 GB, free: 300 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.1116, allocations: 0 / 0.4886 GB, free: 300 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002147/0.1118, allocations: 142.7 kB / 0.4887 GB, free: 132 kB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.092e-06/0.1118, allocations: 7.938 kB / 0.4887 GB, free: 124 kB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004956/0.1123, allocations: 235.3 kB / 0.489 GB, free: 15.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.1124, allocations: 106.8 kB / 0.4891 GB, free: 15.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.1126, allocations: 164 kB / 0.4892 GB, free: 15.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1126, allocations: 29.7 kB / 0.4893 GB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.1126, allocations: 96.12 kB / 0.4893 GB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.181e-05/0.1127, allocations: 31.73 kB / 0.4894 GB, free: 15.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.775e-05/0.1127, allocations: 21.72 kB / 0.4894 GB, free: 15.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1129, allocations: 326.8 kB / 0.4897 GB, free: 15.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.462e-05/0.113, allocations: 35.98 kB / 0.4897 GB, free: 15.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.157e-05/0.113, allocations: 53.69 kB / 0.4898 GB, free: 14.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.1133, allocations: 149 kB / 0.4899 GB, free: 14.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1133, allocations: 0 / 0.4899 GB, free: 14.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000319/0.1136, allocations: 195.2 kB / 0.4901 GB, free: 14.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.1136, allocations: 44.66 kB / 0.4902 GB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1136, allocations: 320 / 0.4902 GB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.1136, allocations: 0 / 0.4902 GB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.104e-05/0.1137, allocations: 8 kB / 0.4902 GB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1137, allocations: 4 kB / 0.4902 GB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.801e-05/0.1138, allocations: 19.81 kB / 0.4902 GB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.1138, allocations: 7.984 kB / 0.4902 GB, free: 14.52 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.0001651/0.114, allocations: 159.5 kB / 0.4904 GB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.114, allocations: 15.95 kB / 0.4904 GB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.79e-05/0.114, allocations: 12.72 kB / 0.4904 GB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.114, allocations: 0 / 0.4904 GB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.114, allocations: 4 kB / 0.4904 GB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.114, allocations: 7.922 kB / 0.4904 GB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.1142, allocations: 188.5 kB / 0.4906 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1142, allocations: 0 / 0.4906 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.373e-05/0.1143, allocations: 11.98 kB / 0.4906 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1143, allocations: 4 kB / 0.4906 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.1143, allocations: 4 kB / 0.4906 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1143, allocations: 8 kB / 0.4906 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1143, allocations: 0 / 0.4906 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003762/0.1147, allocations: 243.5 kB / 0.4908 GB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.955e-05/0.1147, allocations: 15.94 kB / 0.4908 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.1147, allocations: 4 kB / 0.4908 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.665e-05/0.1148, allocations: 7.984 kB / 0.4909 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.595e-05/0.1148, allocations: 20.2 kB / 0.4909 GB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1148, allocations: 4 kB / 0.4909 GB, free: 13.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001009/0.1149, allocations: 119.2 kB / 0.491 GB, free: 13.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1149, allocations: 0 / 0.491 GB, free: 13.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003437/0.1153, allocations: 83.62 kB / 0.4911 GB, free: 13.53 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.001772/0.1171, allocations: 1.085 MB / 0.4921 GB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003098/0.1174, allocations: 159.3 kB / 0.4923 GB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1174, allocations: 0 / 0.4923 GB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.1175, allocations: 115.2 kB / 0.4924 GB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.1178, allocations: 19.8 kB / 0.4924 GB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.1201, allocations: 1.878 MB / 0.4942 GB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.1204, allocations: 0.7007 MB / 0.4949 GB, free: 9.492 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.425e-05/0.1205, allocations: 16.42 kB / 0.4949 GB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.257e-05/0.1206, allocations: 35.42 kB / 0.495 GB, free: 9.441 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1206, allocations: 0 / 0.495 GB, free: 9.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.148, allocations: 4.552 MB / 0.4994 GB, free: 4.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.11, allocations: 14.22 kB / 0.4994 GB, free: 4.91 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 os._exit(0), Time elapsed: 13.885960677987896] Failed to read output from testmodel.py, exit status != 0: 11.282021807972342 11.490970528 11.377994984 Calling exit ...