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.001336/0.001336, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001778/0.001778, allocations: 211 kB / 22.24 MB, free: 4.855 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.458/1.458, allocations: 230.6 MB / 256 MB, free: 7.797 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.02096/0.02096, allocations: 3.275 MB / 315.7 MB, free: 15.63 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="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: 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.002033/0.002033, allocations: 67.89 kB / 439.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.1005, allocations: 54.39 MB / 493.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003117/0.1036, allocations: 1.685 MB / 495.6 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002689/0.1063, allocations: 1.695 MB / 497.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.245e-05/0.1064, allocations: 4 kB / 497.3 MB, free: 2.098 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.0003107/0.1067, allocations: 39.8 kB / 497.3 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003664/0.1071, allocations: 127.4 kB / 497.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.1073, allocations: 87.8 kB / 497.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001499/0.1074, allocations: 91.77 kB / 497.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.782e-05/0.1075, allocations: 16.2 kB / 497.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.02e-05/0.1076, allocations: 43.8 kB / 497.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.1078, allocations: 39.83 kB / 497.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.1078, allocations: 8 kB / 497.7 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002871/0.1081, allocations: 183.8 kB / 497.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.493e-05/0.1081, allocations: 23.92 kB / 497.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.1082, allocations: 39.8 kB / 497.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003971/0.1086, allocations: 267.2 kB / 498.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1086, allocations: 0 / 498.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1086, allocations: 0 / 498.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1086, allocations: 0 / 498.2 MB, free: 1.145 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.0006857/0.1093, allocations: 411 kB / 498.6 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1093, allocations: 8.031 kB / 498.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.202e-05/0.1094, allocations: 42.73 kB / 498.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.379e-05/0.1094, allocations: 8.891 kB / 498.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003007/0.1097, allocations: 154.3 kB / 498.8 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.1097, allocations: 4.375 kB / 498.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.429e-05/0.1098, allocations: 15.92 kB / 498.8 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.11, allocations: 137 kB / 499 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.11, allocations: 0 / 499 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1101, allocations: 3.938 kB / 499 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1101, allocations: 0 / 499 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.1102, allocations: 93.61 kB / 499.1 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004959/0.1107, allocations: 296.8 kB / 499.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.111, allocations: 126.9 kB / 499.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.1112, allocations: 83.45 kB / 499.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.1112, allocations: 7.984 kB / 499.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.1115, allocations: 172.5 kB / 499.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.1115, allocations: 0 / 499.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006122/0.1121, allocations: 326.7 kB / 0.4883 GB, free: 15.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.1e-05/0.1122, allocations: 114.7 kB / 0.4884 GB, free: 14.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.1124, allocations: 172.7 kB / 0.4886 GB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1124, allocations: 29.7 kB / 0.4886 GB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.186e-05/0.1125, allocations: 96.14 kB / 0.4887 GB, free: 14.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.1125, allocations: 27.8 kB / 0.4888 GB, free: 14.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.087e-05/0.1126, allocations: 21.72 kB / 0.4888 GB, free: 14.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1127, allocations: 326.8 kB / 0.4891 GB, free: 14.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.1128, allocations: 73.67 kB / 0.4892 GB, free: 14.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.113, allocations: 99.33 kB / 0.4893 GB, free: 14.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.1132, allocations: 165.1 kB / 0.4894 GB, free: 13.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1132, allocations: 0 / 0.4894 GB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003951/0.1136, allocations: 240.9 kB / 0.4896 GB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.722e-05/0.1136, allocations: 41.69 kB / 0.4897 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1136, allocations: 0 / 0.4897 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1136, allocations: 7.875 kB / 0.4897 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.974e-05/0.1137, allocations: 16 kB / 0.4897 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1137, allocations: 0 / 0.4897 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.993e-05/0.1138, allocations: 19.81 kB / 0.4897 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.1138, allocations: 12 kB / 0.4897 GB, free: 13.51 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.0001503/0.114, allocations: 159.5 kB / 0.4899 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.114, allocations: 12.28 kB / 0.4899 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/0.114, allocations: 16.7 kB / 0.4899 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.114, allocations: 3.984 kB / 0.4899 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.114, allocations: 0 / 0.4899 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.114, allocations: 3.938 kB / 0.4899 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.1142, allocations: 176.7 kB / 0.4901 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1142, allocations: 0 / 0.4901 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.678e-05/0.1143, allocations: 19.92 kB / 0.4901 GB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.1143, allocations: 4 kB / 0.4901 GB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.1143, allocations: 4 kB / 0.4901 GB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1143, allocations: 3.938 kB / 0.4901 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1143, allocations: 0 / 0.4901 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004533/0.1148, allocations: 297.2 kB / 0.4904 GB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.61e-05/0.1148, allocations: 23.81 kB / 0.4904 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.1148, allocations: 8 kB / 0.4904 GB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.556e-05/0.1149, allocations: 4 kB / 0.4904 GB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.1149, allocations: 15.92 kB / 0.4905 GB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.115, allocations: 4 kB / 0.4905 GB, free: 12.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001258/0.1151, allocations: 123.2 kB / 0.4906 GB, free: 12.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1151, allocations: 0 / 0.4906 GB, free: 12.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003612/0.1155, allocations: 83.75 kB / 0.4907 GB, free: 12.47 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.002279/0.1177, allocations: 1.142 MB / 0.4918 GB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004391/0.1182, allocations: 246.7 kB / 0.492 GB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1182, allocations: 0 / 0.492 GB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.1184, allocations: 153.3 kB / 0.4921 GB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.1186, allocations: 25.58 kB / 0.4922 GB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002985/0.1216, allocations: 2.133 MB / 0.4943 GB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.444e-05/0.1217, allocations: 89.48 kB / 0.4943 GB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.848e-05/0.1218, allocations: 20.42 kB / 0.4944 GB, free: 8.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.125e-05/0.1219, allocations: 31.42 kB / 0.4944 GB, free: 8.523 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1219, allocations: 0 / 0.4944 GB, free: 8.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03371/0.1556, allocations: 5.153 MB / 0.4994 GB, free: 3.406 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.21, allocations: 4 kB / 0.4994 GB, free: 3.402 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 sys.exit(0), Time elapsed: 13.75411255005747] Failed to read output from testmodel.py, exit status != 0: 11.321935767773539 11.338480722 11.226741945 Calling exit ...