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.001371/0.001371, 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.001506/0.001506, allocations: 215.3 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.481/1.481, allocations: 230.6 MB / 256 MB, free: 7.992 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.01632/0.01632, allocations: 3.266 MB / 315.7 MB, free: 15.84 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.002036/0.002036, allocations: 63.91 kB / 439.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.09177, allocations: 54.37 MB / 493.9 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003114/0.09488, allocations: 1.714 MB / 495.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.09761, allocations: 1.753 MB / 497.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.555e-05/0.09766, allocations: 0 / 497.4 MB, free: 2.355 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.0003006/0.09796, allocations: 43.78 kB / 497.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003427/0.0983, allocations: 131.1 kB / 497.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.09855, allocations: 87.78 kB / 497.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000157/0.09871, allocations: 95.77 kB / 497.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.256e-05/0.09879, allocations: 12.22 kB / 497.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.09891, allocations: 43.8 kB / 497.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.09909, allocations: 39.83 kB / 497.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.09911, allocations: 12 kB / 497.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003529/0.09947, allocations: 211.8 kB / 498.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.131e-05/0.09954, allocations: 27.86 kB / 498.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.231e-05/0.09961, allocations: 43.73 kB / 498.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.1, allocations: 267.2 kB / 498.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1, allocations: 0 / 498.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1, allocations: 0 / 498.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1, allocations: 0 / 498.4 MB, free: 1.359 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.0006749/0.1007, allocations: 415 kB / 498.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1007, allocations: 12.03 kB / 498.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.409e-05/0.1008, allocations: 34.75 kB / 498.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.307e-05/0.1008, allocations: 12.83 kB / 498.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000281/0.1011, allocations: 158.3 kB / 499 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1011, allocations: 8.375 kB / 499 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.1011, allocations: 11.94 kB / 499 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.1014, allocations: 95.38 kB / 499.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1014, allocations: 0 / 499.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.1014, allocations: 4 kB / 499.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1014, allocations: 0 / 499.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.1015, allocations: 63.91 kB / 499.2 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000434/0.102, allocations: 300.7 kB / 499.5 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002623/0.1022, allocations: 101.1 kB / 499.6 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.1024, allocations: 57.83 kB / 499.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.1024, allocations: 3.938 kB / 499.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.1026, allocations: 142.9 kB / 499.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.263e-06/0.1026, allocations: 4 kB / 499.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.000512/0.1031, allocations: 255.1 kB / 0.4883 GB, free: 15.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.835e-05/0.1032, allocations: 110.8 kB / 0.4884 GB, free: 15.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.1034, allocations: 157.8 kB / 0.4886 GB, free: 15.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.1034, allocations: 29.7 kB / 0.4886 GB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.38e-05/0.1035, allocations: 100.1 kB / 0.4887 GB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.326e-05/0.1035, allocations: 23.81 kB / 0.4887 GB, free: 15.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.629e-05/0.1036, allocations: 33.7 kB / 0.4888 GB, free: 15.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1037, allocations: 322.8 kB / 0.4891 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.82e-05/0.1038, allocations: 43.98 kB / 0.4891 GB, free: 14.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.1039, allocations: 57.69 kB / 0.4892 GB, free: 14.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/0.1042, allocations: 169.2 kB / 0.4893 GB, free: 14.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1042, allocations: 0 / 0.4893 GB, free: 14.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003453/0.1045, allocations: 207.2 kB / 0.4895 GB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.796e-05/0.1046, allocations: 33.7 kB / 0.4896 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.1046, allocations: 0 / 0.4896 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.1046, allocations: 0 / 0.4896 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.843e-05/0.1046, allocations: 15.98 kB / 0.4896 GB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.1046, allocations: 0 / 0.4896 GB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.24e-05/0.1047, allocations: 19.83 kB / 0.4896 GB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.1047, allocations: 4 kB / 0.4896 GB, free: 14.12 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.0001446/0.1049, allocations: 161.8 kB / 0.4897 GB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.39e-05/0.1049, allocations: 19.94 kB / 0.4898 GB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.076e-05/0.1049, allocations: 16.66 kB / 0.4898 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1049, allocations: 0 / 0.4898 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.1049, allocations: 0 / 0.4898 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.105, allocations: 3.938 kB / 0.4898 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.1051, allocations: 200.5 kB / 0.49 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1051, allocations: 0 / 0.49 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.626e-05/0.1052, allocations: 8 kB / 0.49 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.1052, allocations: 4 kB / 0.49 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.1052, allocations: 4 kB / 0.49 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.009e-05/0.1052, allocations: 15.98 kB / 0.49 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1052, allocations: 0 / 0.49 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000407/0.1056, allocations: 255.5 kB / 0.4903 GB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.429e-05/0.1057, allocations: 19.88 kB / 0.4903 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.1057, allocations: 8 kB / 0.4903 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.047e-05/0.1058, allocations: 4 kB / 0.4903 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.53e-05/0.1058, allocations: 19.86 kB / 0.4903 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.1058, allocations: 4 kB / 0.4903 GB, free: 13.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001101/0.106, allocations: 126.2 kB / 0.4904 GB, free: 13.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.106, allocations: 0 / 0.4904 GB, free: 13.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.1063, allocations: 83.69 kB / 0.4905 GB, free: 13.11 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.001839/0.1081, allocations: 1.097 MB / 0.4916 GB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003403/0.1084, allocations: 179.2 kB / 0.4917 GB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1084, allocations: 0 / 0.4917 GB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.1086, allocations: 119.3 kB / 0.4919 GB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.1089, allocations: 29.34 kB / 0.4919 GB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.1115, allocations: 1.934 MB / 0.4938 GB, free: 9.699 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.1119, allocations: 0.7007 MB / 0.4945 GB, free: 8.973 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.181e-05/0.112, allocations: 20.42 kB / 0.4945 GB, free: 8.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.158e-05/0.1121, allocations: 39.41 kB / 0.4945 GB, free: 8.914 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1121, allocations: 0 / 0.4945 GB, free: 8.914 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03398/0.146, allocations: 4.677 MB / 0.4991 GB, free: 4.246 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.21, allocations: 6.172 kB / 0.4991 GB, free: 4.246 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.954512078082189] Failed to read output from testmodel.py, exit status != 0: 11.334142870036885 11.557176947 11.452100111 Calling exit ...