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.001432/0.001432, allocations: 109.2 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.001499/0.001499, allocations: 219.7 kB / 22.26 MB, free: 5.121 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.48/1.48, 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.01758/0.01758, allocations: 3.259 MB / 315.7 MB, free: 15.83 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.002071/0.002071, allocations: 64.14 kB / 439.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1146, allocations: 54.39 MB / 494 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.003404/0.118, allocations: 1.691 MB / 495.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002764/0.1207, allocations: 1.753 MB / 497.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.405e-05/0.1208, allocations: 0 / 497.4 MB, free: 2.352 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.0003604/0.1212, allocations: 43.77 kB / 497.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004037/0.1216, allocations: 119.5 kB / 497.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.1219, allocations: 87.78 kB / 497.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.122, allocations: 91.75 kB / 497.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1221, allocations: 4.234 kB / 497.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.418e-05/0.1222, allocations: 47.8 kB / 497.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.1225, allocations: 39.83 kB / 497.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.1225, allocations: 4 kB / 497.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003658/0.1228, allocations: 203.8 kB / 498 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.067e-05/0.1229, allocations: 31.8 kB / 498.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.863e-05/0.123, allocations: 51.72 kB / 498.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.1234, allocations: 235.3 kB / 498.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1234, allocations: 0 / 498.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1234, allocations: 0 / 498.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.1234, allocations: 0 / 498.3 MB, free: 1.406 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.0007452/0.1242, allocations: 411 kB / 498.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.1242, allocations: 12.03 kB / 498.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.307e-05/0.1243, allocations: 38.69 kB / 498.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.907e-05/0.1243, allocations: 12.89 kB / 498.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.1246, allocations: 158.3 kB / 499 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.1247, allocations: 4.375 kB / 499 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.1247, allocations: 7.938 kB / 499 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.1249, allocations: 91.38 kB / 499.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.1249, allocations: 0 / 499.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.125, allocations: 4 kB / 499.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.125, allocations: 3.938 kB / 499.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.1251, allocations: 55.97 kB / 499.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005024/0.1256, allocations: 284.8 kB / 499.4 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/0.1259, allocations: 89.12 kB / 499.5 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.126, allocations: 49.83 kB / 499.5 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.126, allocations: 8 kB / 499.5 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003123/0.1263, allocations: 142.7 kB / 499.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.1263, allocations: 0 / 499.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005896/0.1269, allocations: 239.2 kB / 499.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.977e-05/0.127, allocations: 110.8 kB / 0.4883 GB, free: 15.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.1271, allocations: 161.7 kB / 0.4885 GB, free: 15.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.1272, allocations: 25.7 kB / 0.4885 GB, free: 15.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.261e-05/0.1272, allocations: 100.1 kB / 0.4886 GB, free: 15.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.1273, allocations: 23.81 kB / 0.4886 GB, free: 15.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.379e-05/0.1273, allocations: 25.7 kB / 0.4886 GB, free: 15.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1275, allocations: 326.8 kB / 0.4889 GB, free: 14.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.548e-05/0.1276, allocations: 39.98 kB / 0.489 GB, free: 14.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.262e-05/0.1277, allocations: 53.69 kB / 0.489 GB, free: 14.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.1279, allocations: 153 kB / 0.4892 GB, free: 14.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1279, allocations: 0 / 0.4892 GB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003163/0.1282, allocations: 187.2 kB / 0.4893 GB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.641e-05/0.1283, allocations: 37.7 kB / 0.4894 GB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1283, allocations: 0 / 0.4894 GB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1283, allocations: 4 kB / 0.4894 GB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.552e-05/0.1284, allocations: 15.98 kB / 0.4894 GB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1284, allocations: 320 / 0.4894 GB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.729e-05/0.1285, allocations: 15.83 kB / 0.4894 GB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.1285, allocations: 4 kB / 0.4894 GB, free: 14.28 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.0001756/0.1286, allocations: 159.5 kB / 0.4896 GB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.994e-05/0.1287, allocations: 11.94 kB / 0.4896 GB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.386e-05/0.1287, allocations: 12.72 kB / 0.4896 GB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1287, allocations: 8 kB / 0.4896 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.1287, allocations: 7.875 kB / 0.4896 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1287, allocations: 3.938 kB / 0.4896 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.1289, allocations: 180.6 kB / 0.4898 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.1289, allocations: 4 kB / 0.4898 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.318e-05/0.129, allocations: 8 kB / 0.4898 GB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.129, allocations: 0 / 0.4898 GB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.129, allocations: 8 kB / 0.4898 GB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.129, allocations: 0 / 0.4898 GB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.129, allocations: 7.969 kB / 0.4898 GB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004132/0.1294, allocations: 251.6 kB / 0.4901 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.1294, allocations: 19.88 kB / 0.4901 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.1295, allocations: 8 kB / 0.4901 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.72e-05/0.1295, allocations: 7.938 kB / 0.4901 GB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.1296, allocations: 11.92 kB / 0.4901 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.1296, allocations: 4 kB / 0.4901 GB, free: 13.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001162/0.1297, allocations: 126.2 kB / 0.4902 GB, free: 13.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1297, allocations: 0 / 0.4902 GB, free: 13.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004592/0.1302, allocations: 87.69 kB / 0.4903 GB, free: 13.29 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.001874/0.132, allocations: 1.081 MB / 0.4914 GB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003332/0.1324, allocations: 159.3 kB / 0.4915 GB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1324, allocations: 0 / 0.4915 GB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.1325, allocations: 111.3 kB / 0.4916 GB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.1328, allocations: 27.72 kB / 0.4916 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002428/0.1352, allocations: 1.875 MB / 0.4935 GB, free: 9.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.1356, allocations: 0.7007 MB / 0.4942 GB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.238e-05/0.1356, allocations: 16.53 kB / 0.4942 GB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.586e-05/0.1357, allocations: 39.34 kB / 0.4942 GB, free: 9.199 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1357, allocations: 4 kB / 0.4942 GB, free: 9.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0364/0.1721, allocations: 4.516 MB / 0.4986 GB, free: 4.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.35, allocations: 7.609 kB / 0.4986 GB, free: 4.695 MB / 366.1 MB " [Timeout remaining time 649] (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.306233775001601] Failed to read output from testmodel.py, exit status != 0: 11.474263408003026 11.727979616 11.601818103 Calling exit ...