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.001518/0.001518, allocations: 103 kB / 16.45 MB, free: 6.449 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.001475/0.001475, allocations: 208.9 kB / 19.42 MB, free: 3.641 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.469/1.469, allocations: 230.6 MB / 252.8 MB, free: 8.988 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.01656/0.01656, allocations: 3.263 MB / 312.1 MB, free: 0.9727 MB / 238.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.001946/0.001946, allocations: 59.91 kB / 434.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.09542, allocations: 54.35 MB / 488.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.003354/0.09877, allocations: 1.697 MB / 490.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002694/0.1015, allocations: 1.643 MB / 492.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.475e-05/0.1016, allocations: 3.938 kB / 492.1 MB, free: 4.918 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.0003976/0.102, allocations: 47.78 kB / 492.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003991/0.1024, allocations: 119.4 kB / 492.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.1026, allocations: 91.72 kB / 492.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.1028, allocations: 83.77 kB / 492.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.162e-05/0.1028, allocations: 8.219 kB / 492.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.989e-05/0.1029, allocations: 35.86 kB / 492.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.1031, allocations: 43.77 kB / 492.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.1031, allocations: 8 kB / 492.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003111/0.1034, allocations: 207.8 kB / 492.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.561e-05/0.1035, allocations: 23.92 kB / 492.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.1036, allocations: 35.78 kB / 492.8 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003674/0.104, allocations: 243.2 kB / 493 MB, free: 3.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.104, allocations: 3.984 kB / 493 MB, free: 3.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.104, allocations: 4 kB / 493 MB, free: 3.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.104, allocations: 0 / 493 MB, free: 3.977 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.0007365/0.1047, allocations: 480.2 kB / 493.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.1048, allocations: 12.03 kB / 493.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.204e-05/0.1048, allocations: 38.69 kB / 493.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.765e-05/0.1049, allocations: 12.89 kB / 493.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.1052, allocations: 216.1 kB / 493.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-06/0.1052, allocations: 384 / 493.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.1052, allocations: 7.938 kB / 493.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/0.1054, allocations: 99.31 kB / 493.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1055, allocations: 0 / 493.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.1055, allocations: 4 kB / 493.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1055, allocations: 0 / 493.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.1056, allocations: 59.89 kB / 493.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004655/0.1061, allocations: 313.7 kB / 494.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.1063, allocations: 93.22 kB / 494.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.1064, allocations: 45.75 kB / 494.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.1065, allocations: 4 kB / 494.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.1067, allocations: 134.8 kB / 494.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.1067, allocations: 4 kB / 494.5 MB, free: 2.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005125/0.1072, allocations: 235.3 kB / 494.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.1073, allocations: 110.8 kB / 494.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.1074, allocations: 164.1 kB / 495 MB, free: 1.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.1075, allocations: 29.7 kB / 495 MB, free: 1.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.315e-05/0.1075, allocations: 92.14 kB / 495.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.977e-05/0.1076, allocations: 35.67 kB / 495.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.296e-05/0.1076, allocations: 25.72 kB / 495.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1078, allocations: 326.8 kB / 495.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.877e-05/0.1079, allocations: 39.97 kB / 495.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.434e-05/0.108, allocations: 49.7 kB / 495.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.1082, allocations: 145.1 kB / 495.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1082, allocations: 0 / 495.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003304/0.1085, allocations: 191.5 kB / 495.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.028e-05/0.1086, allocations: 41.69 kB / 495.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1086, allocations: 48 / 495.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.1086, allocations: 3.984 kB / 496 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.724e-05/0.1086, allocations: 19.88 kB / 496 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1086, allocations: 0 / 496 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.106e-05/0.1087, allocations: 15.88 kB / 496 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.1087, allocations: 4 kB / 496 MB, free: 0.6602 MB / 350.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.000145/0.1089, allocations: 169.1 kB / 496.2 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.1089, allocations: 7.953 kB / 496.2 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.224e-05/0.109, allocations: 12.72 kB / 496.2 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.109, allocations: 4 kB / 496.2 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.109, allocations: 0 / 496.2 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.109, allocations: 7.922 kB / 496.2 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.1092, allocations: 209.5 kB / 496.4 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1092, allocations: 4 kB / 496.4 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-05/0.1092, allocations: 11.98 kB / 496.4 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1092, allocations: 4 kB / 496.4 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.1092, allocations: 4 kB / 496.4 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.1092, allocations: 7.938 kB / 496.4 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1092, allocations: 0 / 496.4 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004298/0.1097, allocations: 247.5 kB / 496.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.423e-05/0.1097, allocations: 93.05 kB / 496.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.1098, allocations: 8 kB / 496.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.244e-05/0.1099, allocations: 7.984 kB / 496.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.1099, allocations: 11.94 kB / 496.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.1099, allocations: 4 kB / 496.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.11, allocations: 126 kB / 496.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.11, allocations: 0 / 496.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003572/0.1104, allocations: 83.69 kB / 497 MB, free: 15.55 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.001844/0.1122, allocations: 1.081 MB / 498.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003419/0.1126, allocations: 167.3 kB / 498.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1126, allocations: 0 / 498.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001459/0.1127, allocations: 103.4 kB / 498.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.113, allocations: 23.8 kB / 498.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.1155, allocations: 1.873 MB / 0.4885 GB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.1158, allocations: 0.7079 MB / 0.4892 GB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.249e-05/0.1159, allocations: 24.41 kB / 0.4892 GB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.603e-05/0.1159, allocations: 31.42 kB / 0.4893 GB, free: 11.46 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1159, allocations: 0 / 0.4893 GB, free: 11.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02954/0.1455, allocations: 4.336 MB / 0.4935 GB, free: 7.098 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.252/8.397, allocations: 4.906 kB / 0.4935 GB, free: 7.094 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.990280159996473] Failed to read output from testmodel.py, exit status != 0: 8.477037727003335 8.496217644 8.389039231 Calling exit ...