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.001289/0.001289, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001551/0.001551, allocations: 220.1 kB / 23.03 MB, free: 4.918 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.487/1.487, allocations: 230.6 MB / 256.8 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.02797/0.02797, allocations: 3.273 MB / 316.5 MB, free: 15.62 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.00193/0.00193, allocations: 66.7 kB / 440.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09498/0.09691, allocations: 54.38 MB / 494.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003204/0.1001, allocations: 1.671 MB / 496.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.1027, allocations: 1.695 MB / 498 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.58e-05/0.1028, allocations: 4 kB / 498 MB, free: 2.086 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.0003078/0.1031, allocations: 39.78 kB / 498.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004065/0.1035, allocations: 123.4 kB / 498.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.1038, allocations: 95.16 kB / 498.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.104, allocations: 99.77 kB / 498.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.343e-05/0.104, allocations: 8.219 kB / 498.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.994e-05/0.1041, allocations: 51.78 kB / 498.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.1043, allocations: 31.84 kB / 498.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.1043, allocations: 8 kB / 498.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003229/0.1046, allocations: 195.8 kB / 498.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.745e-05/0.1047, allocations: 23.91 kB / 498.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.712e-05/0.1047, allocations: 39.8 kB / 498.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004428/0.1052, allocations: 267.2 kB / 499 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1052, allocations: 0 / 499 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1052, allocations: 4 kB / 499 MB, free: 1.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.1052, allocations: 0 / 499 MB, free: 1.117 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.0006604/0.1059, allocations: 411 kB / 499.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.1059, allocations: 12.03 kB / 499.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.19e-05/0.1059, allocations: 192 / 499.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.757e-05/0.1059, allocations: 42.73 kB / 499.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.987e-05/0.106, allocations: 12.89 kB / 499.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.1063, allocations: 150.3 kB / 499.6 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.1063, allocations: 12.12 kB / 499.6 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.1063, allocations: 4 kB / 499.6 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.1065, allocations: 137 kB / 499.8 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1066, allocations: 0 / 499.8 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.1066, allocations: 8 kB / 499.8 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1066, allocations: 0 / 499.8 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.1067, allocations: 93.61 kB / 499.9 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004349/0.1072, allocations: 288.8 kB / 0.4884 GB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.1075, allocations: 130.9 kB / 0.4885 GB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.1076, allocations: 87.45 kB / 0.4886 GB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.1077, allocations: 4 kB / 0.4886 GB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002694/0.1079, allocations: 180.4 kB / 0.4888 GB, free: 15.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.1079, allocations: 3.938 kB / 0.4888 GB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005864/0.1085, allocations: 318.6 kB / 0.4891 GB, free: 15.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.1086, allocations: 118.7 kB / 0.4892 GB, free: 14.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000176/0.1088, allocations: 168.7 kB / 0.4894 GB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.1088, allocations: 29.7 kB / 0.4894 GB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.1089, allocations: 92.14 kB / 0.4895 GB, free: 14.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/0.1089, allocations: 35.94 kB / 0.4895 GB, free: 14.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.525e-05/0.109, allocations: 25.72 kB / 0.4896 GB, free: 14.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.1091, allocations: 318.8 kB / 0.4899 GB, free: 14.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.1093, allocations: 81.67 kB / 0.4899 GB, free: 14.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.1094, allocations: 91.33 kB / 0.49 GB, free: 14.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002324/0.1096, allocations: 169 kB / 0.4902 GB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1096, allocations: 0 / 0.4902 GB, free: 13.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003886/0.11, allocations: 249.2 kB / 0.4904 GB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.094e-05/0.1101, allocations: 37.69 kB / 0.4905 GB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.1101, allocations: 4 kB / 0.4905 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.1101, allocations: 48 / 0.4905 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.172e-05/0.1102, allocations: 15.98 kB / 0.4905 GB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.1102, allocations: 0 / 0.4905 GB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.55e-05/0.1103, allocations: 23.81 kB / 0.4905 GB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.1103, allocations: 4 kB / 0.4905 GB, free: 13.48 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.000156/0.1104, allocations: 159.5 kB / 0.4907 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.7e-05/0.1105, allocations: 7.953 kB / 0.4907 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.1105, allocations: 12.72 kB / 0.4907 GB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1105, allocations: 11.98 kB / 0.4907 GB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1105, allocations: 0 / 0.4907 GB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1105, allocations: 3.938 kB / 0.4907 GB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.1107, allocations: 176.6 kB / 0.4909 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1107, allocations: 0 / 0.4909 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.3e-05/0.1108, allocations: 19.92 kB / 0.4909 GB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1108, allocations: 0 / 0.4909 GB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.1108, allocations: 4 kB / 0.4909 GB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1108, allocations: 0 / 0.4909 GB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1108, allocations: 4 kB / 0.4909 GB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004599/0.1113, allocations: 309.1 kB / 0.4912 GB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.1113, allocations: 15.89 kB / 0.4912 GB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.857e-05/0.1113, allocations: 7.984 kB / 0.4912 GB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.923e-05/0.1114, allocations: 12 kB / 0.4912 GB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.1115, allocations: 7.922 kB / 0.4912 GB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.1115, allocations: 4 kB / 0.4912 GB, free: 12.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001161/0.1116, allocations: 123.2 kB / 0.4913 GB, free: 12.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1116, allocations: 0 / 0.4913 GB, free: 12.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.1119, allocations: 83.69 kB / 0.4914 GB, free: 12.44 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.001948/0.1139, allocations: 1.155 MB / 0.4926 GB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003659/0.1143, allocations: 238.7 kB / 0.4928 GB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1143, allocations: 0 / 0.4928 GB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.1144, allocations: 153.1 kB / 0.4929 GB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.1147, allocations: 23.42 kB / 0.4929 GB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.1173, allocations: 2.135 MB / 0.495 GB, free: 8.648 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.246e-05/0.1174, allocations: 81.5 kB / 0.4951 GB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.387e-05/0.1175, allocations: 24.34 kB / 0.4951 GB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.086e-05/0.1175, allocations: 31.42 kB / 0.4952 GB, free: 8.492 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1175, allocations: 0 / 0.4952 GB, free: 8.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02829/0.1458, allocations: 4.826 MB / 0.4999 GB, free: 3.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.19, allocations: 9.453 kB / 0.4999 GB, free: 3.703 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.852868010988459] Failed to read output from testmodel.py, exit status != 0: 11.370003718999214 11.399937467 11.289384546 Calling exit ...