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.001271/0.001271, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001058/0.001058, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8985/0.8985, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.01588/0.01588, allocations: 2.248 MB / 261.4 MB, free: 11 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 385.3 MB, free: 11.22 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/2.049e-05, allocations: 2.281 kB / 385.3 MB, free: 11.22 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.001968/0.001988, allocations: 1.52 MB / 386.8 MB, free: 9.684 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.00321, allocations: 1.367 MB / 388.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.003262, allocations: 4 kB / 388.2 MB, free: 8.305 MB / 314.7 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.0003151/0.003577, allocations: 47.77 kB / 388.2 MB, free: 8.258 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.832e-05/0.003665, allocations: 39.72 kB / 388.3 MB, free: 8.219 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001919/0.003857, allocations: 82.92 kB / 388.4 MB, free: 8.141 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.959e-05/0.003957, allocations: 59.83 kB / 388.4 MB, free: 8.082 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.544e-05/0.003992, allocations: 4 kB / 388.4 MB, free: 8.078 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.932e-05/0.004061, allocations: 35.91 kB / 388.4 MB, free: 8.043 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.004179, allocations: 23.91 kB / 388.5 MB, free: 8.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.004193, allocations: 8 kB / 388.5 MB, free: 8.012 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.004314, allocations: 95.84 kB / 388.6 MB, free: 7.918 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.578e-05/0.00437, allocations: 15.94 kB / 388.6 MB, free: 7.902 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.016e-05/0.00441, allocations: 19.92 kB / 388.6 MB, free: 7.883 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.00461, allocations: 159.5 kB / 388.8 MB, free: 7.727 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.004612, allocations: 0 / 388.8 MB, free: 7.727 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.004613, allocations: 0 / 388.8 MB, free: 7.727 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.004618, allocations: 0 / 388.8 MB, free: 7.727 MB / 314.7 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.0004282/0.005046, allocations: 363.5 kB / 389.1 MB, free: 7.336 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.005085, allocations: 8.031 kB / 389.1 MB, free: 7.328 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.831e-05/0.005113, allocations: 30.75 kB / 389.2 MB, free: 7.289 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.489e-05/0.005148, allocations: 16.89 kB / 389.2 MB, free: 7.273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.005337, allocations: 141.6 kB / 389.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.005346, allocations: 8.312 kB / 389.3 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.005356, allocations: 384 / 389.3 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.005498, allocations: 99.92 kB / 389.4 MB, free: 6.992 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.005505, allocations: 192 / 389.4 MB, free: 6.992 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.005515, allocations: 4.125 kB / 389.4 MB, free: 6.988 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.00552, allocations: 0 / 389.4 MB, free: 6.988 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.435e-05/0.005584, allocations: 57.69 kB / 389.5 MB, free: 6.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/0.005725, allocations: 144.7 kB / 389.6 MB, free: 6.742 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.06e-05/0.005796, allocations: 80.27 kB / 389.7 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.543e-05/0.005851, allocations: 66.53 kB / 389.8 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.00586, allocations: 0 / 389.8 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000143/0.006003, allocations: 138.8 kB / 389.9 MB, free: 6.414 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.173e-06/0.006004, allocations: 4 kB / 389.9 MB, free: 6.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002938/0.006298, allocations: 262.8 kB / 390.2 MB, free: 6.129 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.006339, allocations: 85.05 kB / 390.2 MB, free: 6.027 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.00645, allocations: 153.8 kB / 390.4 MB, free: 5.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.006463, allocations: 25.7 kB / 390.4 MB, free: 5.836 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.014e-05/0.006503, allocations: 92.14 kB / 390.5 MB, free: 5.742 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.164e-05/0.006534, allocations: 23.84 kB / 390.5 MB, free: 5.719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.006568, allocations: 21.7 kB / 390.6 MB, free: 5.691 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.153e-05/0.00665, allocations: 322.8 kB / 390.9 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.718e-05/0.006697, allocations: 57.69 kB / 390.9 MB, free: 5.305 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.153e-05/0.006739, allocations: 69.61 kB / 391 MB, free: 5.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.148e-05/0.00683, allocations: 124.2 kB / 391.1 MB, free: 5.094 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.006832, allocations: 0 / 391.1 MB, free: 5.094 MB / 314.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001567/0.006988, allocations: 205 kB / 391.3 MB, free: 4.875 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.007017, allocations: 41.08 kB / 391.4 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.007021, allocations: 240 / 391.4 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.007032, allocations: 0 / 391.4 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.981e-05/0.007091, allocations: 15.92 kB / 391.4 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.007096, allocations: 3.984 kB / 391.4 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.377e-05/0.00715, allocations: 7.953 kB / 391.4 MB, free: 4.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/0.007158, allocations: 4 kB / 391.4 MB, free: 4.801 MB / 314.7 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 8.618e-05/0.007244, allocations: 155.5 kB / 391.5 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.00726, allocations: 11.95 kB / 391.5 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.863e-05/0.007279, allocations: 8.719 kB / 391.6 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.007281, allocations: 4 kB / 391.6 MB, free: 4.609 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.007285, allocations: 3.984 kB / 391.6 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.007288, allocations: 0 / 391.6 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.525e-05/0.007384, allocations: 160.7 kB / 391.7 MB, free: 4.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.007385, allocations: 0 / 391.7 MB, free: 4.406 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.713e-05/0.007402, allocations: 8 kB / 391.7 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.007404, allocations: 0 / 391.7 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.007413, allocations: 7.938 kB / 391.7 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.007414, allocations: 0 / 391.7 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.007415, allocations: 0 / 391.7 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.007607, allocations: 244.4 kB / 392 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.801e-05/0.007625, allocations: 15.97 kB / 392 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.007647, allocations: 15.88 kB / 392 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.739e-05/0.007684, allocations: 4 kB / 392 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/0.007711, allocations: 8 kB / 392 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.007723, allocations: 3.984 kB / 392 MB, free: 4.074 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.859e-05/0.007782, allocations: 119.3 kB / 392.1 MB, free: 3.957 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007782, allocations: 0 / 392.1 MB, free: 3.957 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001742/0.007956, allocations: 39.92 kB / 392.2 MB, free: 3.918 MB / 314.7 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.0007471/0.008703, allocations: 0.9167 MB / 393.1 MB, free: 2.996 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001961/0.008899, allocations: 202.8 kB / 393.3 MB, free: 2.773 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.008901, allocations: 0 / 393.3 MB, free: 2.773 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.287e-05/0.008973, allocations: 133 kB / 393.4 MB, free: 2.625 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000158/0.009131, allocations: 8 kB / 393.4 MB, free: 2.617 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.0105, allocations: 1.89 MB / 395.3 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.543e-05/0.01055, allocations: 79.36 kB / 395.4 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.472e-05/0.0106, allocations: 23.66 kB / 395.4 MB, free: 496 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.713e-05/0.01065, allocations: 32.48 kB / 395.5 MB, free: 464 kB / 314.7 MB Notification: Performance of SimCode: time 3.71e-07/0.01065, allocations: 4 kB / 395.5 MB, free: 460 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01805/0.0287, allocations: 3.758 MB / 399.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.076/7.105, allocations: 0 / 399.2 MB, free: 12.8 MB / 330.7 MB " [Timeout remaining time 653] (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: 9.03091941960156] Failed to read output from testmodel.py, exit status != 0: 7.188548478297889 7.33824871 7.194984588 Calling exit ...