Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.CSVTest.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.001671/0.001671, allocations: 107.4 kB / 16.45 MB, free: 6.453 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.001922/0.001922, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.471/1.471, allocations: 230.6 MB / 252.8 MB, free: 8.973 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.01943/0.01943, allocations: 3.28 MB / 312.1 MB, free: 0.9961 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.CSVTest,fileNamePrefix="ExternData_ExternData_Examples_CSVTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.CSVTest,fileNamePrefix="ExternData_ExternData_Examples_CSVTest",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.002017/0.002017, allocations: 63.89 kB / 434.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1041, allocations: 54.34 MB / 488.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.003114/0.1072, allocations: 1.535 MB / 490.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.1093, allocations: 1.304 MB / 491.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.531e-05/0.1093, allocations: 0 / 491.6 MB, free: 5.469 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:35:3-59:14:writable] Warning: Pure function 'ExternData.CSVFile' contains a call to impure function 'ExternData.Types.ExternCSVFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0004317/0.1098, allocations: 55.77 kB / 491.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.1099, allocations: 27.8 kB / 491.6 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.1102, allocations: 79.83 kB / 491.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000149/0.1103, allocations: 63.78 kB / 491.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.048e-05/0.1104, allocations: 4 kB / 491.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.578e-05/0.1105, allocations: 27.86 kB / 491.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005105/0.111, allocations: 27.84 kB / 491.8 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.111, allocations: 4 kB / 491.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002196/0.1112, allocations: 103.8 kB / 491.9 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.707e-05/0.1113, allocations: 16 kB / 492 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.747e-05/0.1113, allocations: 35.78 kB / 492 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002776/0.1116, allocations: 131.6 kB / 492.1 MB, free: 4.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1116, allocations: 4 kB / 492.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1116, allocations: 0 / 492.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1116, allocations: 3.938 kB / 492.1 MB, free: 4.895 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007432/0.1124, allocations: 432.6 kB / 492.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.1124, allocations: 8.031 kB / 492.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.428e-05/0.1125, allocations: 38.69 kB / 492.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.1125, allocations: 12.89 kB / 492.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.1128, allocations: 200.2 kB / 492.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.1128, allocations: 4.375 kB / 492.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.1128, allocations: 4.375 kB / 492.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.113, allocations: 65.8 kB / 492.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.113, allocations: 3.984 kB / 492.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.113, allocations: 0 / 492.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.113, allocations: 0 / 492.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.479e-05/0.1131, allocations: 35.92 kB / 492.9 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002516/0.1133, allocations: 185.6 kB / 493.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.507e-05/0.1134, allocations: 38.56 kB / 493.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.421e-05/0.1135, allocations: 32.86 kB / 493.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.1135, allocations: 4.031 kB / 493.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001796/0.1137, allocations: 109 kB / 493.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.1137, allocations: 0 / 493.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.000403/0.1141, allocations: 195.3 kB / 493.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.252e-05/0.1142, allocations: 89.09 kB / 493.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.1144, allocations: 148.2 kB / 493.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.1144, allocations: 33.64 kB / 493.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.851e-05/0.1145, allocations: 96.12 kB / 493.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.447e-05/0.1145, allocations: 19.8 kB / 493.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.771e-05/0.1145, allocations: 21.72 kB / 493.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1147, allocations: 322.8 kB / 494.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.475e-05/0.1147, allocations: 31.98 kB / 494.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.095e-05/0.1148, allocations: 27.98 kB / 494.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.1149, allocations: 120.3 kB / 494.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1149, allocations: 3.938 kB / 494.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002404/0.1152, allocations: 159.3 kB / 494.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/0.1152, allocations: 41.69 kB / 494.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.1152, allocations: 0 / 494.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.1152, allocations: 0 / 494.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.08e-05/0.1153, allocations: 7.938 kB / 494.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.1153, allocations: 0 / 494.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.891e-05/0.1154, allocations: 8 kB / 494.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.1154, allocations: 7.984 kB / 494.6 MB, free: 2.156 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 3 * 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.000151/0.1155, allocations: 151.5 kB / 494.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/0.1156, allocations: 19.84 kB / 494.7 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.561e-05/0.1156, allocations: 8.719 kB / 494.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.1156, allocations: 0 / 494.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1156, allocations: 4 kB / 494.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1156, allocations: 0 / 494.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.1158, allocations: 197.5 kB / 494.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1158, allocations: 4 kB / 495 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.015e-05/0.1158, allocations: 0 / 495 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1158, allocations: 4 kB / 495 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.1158, allocations: 0 / 495 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1158, allocations: 0 / 495 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1158, allocations: 0 / 495 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003226/0.1162, allocations: 230.5 kB / 495.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.28e-05/0.1162, allocations: 89.05 kB / 495.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.1163, allocations: 12 kB / 495.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.567e-05/0.1163, allocations: 8 kB / 495.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.1164, allocations: 3.984 kB / 495.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.1164, allocations: 4 kB / 495.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001129/0.1165, allocations: 122.7 kB / 495.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1165, allocations: 0 / 495.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1167, allocations: 35.94 kB / 495.5 MB, free: 1.172 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 2 * 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.001785/0.1185, allocations: 0.8728 MB / 496.3 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002474/0.1188, allocations: 139.3 kB / 496.5 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1188, allocations: 0 / 496.5 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.1189, allocations: 95.38 kB / 496.6 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.1191, allocations: 12 kB / 496.6 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.1212, allocations: 1.695 MB / 498.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.1215, allocations: 0.6885 MB / 498.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.337e-05/0.1216, allocations: 11.98 kB / 499 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.66e-05/0.1216, allocations: 23.44 kB / 499 MB, free: 13.5 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1216, allocations: 192 / 499 MB, free: 13.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02955/0.1512, allocations: 3.015 MB / 0.4902 GB, free: 10.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.234/8.385, allocations: 3.688 kB / 0.4902 GB, free: 10.56 MB / 366.1 MB " [Timeout remaining time 652] (rm -f ExternData_ExternData.Examples.CSVTest.pipe ; mkfifo ExternData_ExternData.Examples.CSVTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.CSVTest.pipe >> ../files/ExternData_ExternData.Examples.CSVTest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.CSVTest_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_CSVTest.fmu > ExternData_ExternData.Examples.CSVTest.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.037040049995994] Failed to read output from testmodel.py, exit status != 0: 8.455386397996335 8.471502792999999 8.356762901 Calling exit ...