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.001275/0.001275, allocations: 105.1 kB / 18.99 MB, free: 2.605 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.002178/0.002178, allocations: 217.4 kB / 22.3 MB, free: 5.305 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.54/1.54, allocations: 230.7 MB / 256.1 MB, free: 7.727 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.01516/0.01516, allocations: 3.279 MB / 315.8 MB, free: 15.66 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.002213/0.002213, allocations: 70.7 kB / 439.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1093, allocations: 54.38 MB / 494 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.003648/0.113, allocations: 1.67 MB / 495.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003133/0.1161, allocations: 1.683 MB / 497.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.912e-05/0.1162, allocations: 4 kB / 497.3 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.0004268/0.1166, allocations: 39.73 kB / 497.4 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005505/0.1172, allocations: 131.4 kB / 497.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.1175, allocations: 87.78 kB / 497.6 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000181/0.1177, allocations: 83.72 kB / 497.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.1178, allocations: 16.2 kB / 497.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.891e-05/0.1179, allocations: 35.86 kB / 497.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.1181, allocations: 35.78 kB / 497.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.1182, allocations: 4 kB / 497.8 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003781/0.1185, allocations: 191.8 kB / 498 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.1186, allocations: 19.92 kB / 498 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.166e-05/0.1187, allocations: 31.81 kB / 498 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004822/0.1192, allocations: 247.2 kB / 498.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1192, allocations: 0 / 498.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1192, allocations: 0 / 498.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1192, allocations: 0 / 498.3 MB, free: 1.176 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.0007849/0.12, allocations: 415 kB / 498.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.12, allocations: 8.031 kB / 498.7 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.596e-05/0.1201, allocations: 42.73 kB / 498.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.751e-05/0.1201, allocations: 8.891 kB / 498.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.1204, allocations: 154.4 kB / 498.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.1205, allocations: 384 / 498.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.706e-05/0.1205, allocations: 7.938 kB / 498.9 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.1207, allocations: 137 kB / 499 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1207, allocations: 3.938 kB / 499 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1208, allocations: 8 kB / 499 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.1208, allocations: 3.984 kB / 499 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.1209, allocations: 77.67 kB / 499.1 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004984/0.1214, allocations: 284.7 kB / 499.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.1217, allocations: 119 kB / 499.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.1219, allocations: 79.44 kB / 499.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.1219, allocations: 7.938 kB / 499.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.1222, allocations: 168.5 kB / 499.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.1222, allocations: 0 / 499.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006197/0.1228, allocations: 302.7 kB / 0.4883 GB, free: 15.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/0.1229, allocations: 102.8 kB / 0.4884 GB, free: 15.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.1231, allocations: 172.8 kB / 0.4886 GB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.1231, allocations: 29.7 kB / 0.4886 GB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.16e-05/0.1232, allocations: 100.1 kB / 0.4887 GB, free: 14.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.1232, allocations: 23.81 kB / 0.4887 GB, free: 14.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.751e-05/0.1233, allocations: 25.7 kB / 0.4888 GB, free: 14.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1234, allocations: 326.8 kB / 0.4891 GB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.1235, allocations: 65.69 kB / 0.4891 GB, free: 14.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.1237, allocations: 91.33 kB / 0.4892 GB, free: 14.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/0.1239, allocations: 153 kB / 0.4894 GB, free: 14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1239, allocations: 4 kB / 0.4894 GB, free: 13.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003644/0.1243, allocations: 225 kB / 0.4896 GB, free: 13.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.577e-05/0.1243, allocations: 37.69 kB / 0.4896 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.1243, allocations: 3.938 kB / 0.4896 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1243, allocations: 0 / 0.4896 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.348e-05/0.1244, allocations: 15.98 kB / 0.4896 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1244, allocations: 0 / 0.4896 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.691e-05/0.1245, allocations: 23.83 kB / 0.4897 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.1245, allocations: 4.25 kB / 0.4897 GB, free: 13.66 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.0001581/0.1247, allocations: 166.7 kB / 0.4898 GB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.539e-05/0.1247, allocations: 15.94 kB / 0.4898 GB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.206e-05/0.1247, allocations: 12.78 kB / 0.4898 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1247, allocations: 0 / 0.4898 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1248, allocations: 0 / 0.4898 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1248, allocations: 3.938 kB / 0.4899 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.1249, allocations: 168.7 kB / 0.49 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1249, allocations: 0 / 0.49 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.501e-05/0.125, allocations: 11.98 kB / 0.49 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.125, allocations: 0 / 0.49 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.125, allocations: 4 kB / 0.49 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.125, allocations: 4 kB / 0.49 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.125, allocations: 0 / 0.49 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004213/0.1254, allocations: 301.5 kB / 0.4903 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.32e-05/0.1255, allocations: 19.89 kB / 0.4903 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.1255, allocations: 11.97 kB / 0.4903 GB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.845e-05/0.1256, allocations: 8 kB / 0.4904 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.936e-05/0.1256, allocations: 11.86 kB / 0.4904 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.1256, allocations: 8 kB / 0.4904 GB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.1258, allocations: 123.2 kB / 0.4905 GB, free: 12.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1258, allocations: 0 / 0.4905 GB, free: 12.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.1261, allocations: 83.75 kB / 0.4906 GB, free: 12.64 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.00198/0.1281, allocations: 1.127 MB / 0.4917 GB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003698/0.1284, allocations: 218.8 kB / 0.4919 GB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1284, allocations: 0 / 0.4919 GB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.1286, allocations: 145 kB / 0.492 GB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.1288, allocations: 34.64 kB / 0.4921 GB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.1316, allocations: 2.066 MB / 0.4941 GB, free: 8.949 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.1317, allocations: 81.62 kB / 0.4941 GB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.27e-05/0.1318, allocations: 20.47 kB / 0.4942 GB, free: 8.832 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.93e-05/0.1319, allocations: 40.48 kB / 0.4942 GB, free: 8.793 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1319, allocations: 0 / 0.4942 GB, free: 8.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04266/0.1746, allocations: 5.1 MB / 0.4992 GB, free: 3.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.78, allocations: 3.938 kB / 0.4992 GB, free: 3.723 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.XMLTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.52809852399514] Failed to read output from testmodel.py, exit status != 0: 11.902208840998355 11.918959219 11.796533752 Calling exit ...