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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007613/0.007613, allocations: 99.34 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001622/0.001622, allocations: 195.2 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.1597/0.1597, allocations: 2.933 MB / 293.5 MB, free: 3.273 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 63.89 kB / 405.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2984, allocations: 50.34 MB / 456.1 MB, free: 27.95 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.002367/0.3008, allocations: 1.501 MB / 457.6 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.3022, allocations: 1.281 MB / 458.9 MB, free: 26.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.069e-05/0.3023, allocations: 0 / 458.9 MB, free: 26.01 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo:53:3-77:14:writable] Warning: Pure function 'ExternData.CSVFile' contains a call to impure function 'ExternData.Types.ExternCSVFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003302/0.3026, allocations: 46.38 kB / 458.9 MB, free: 25.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.118e-05/0.3027, allocations: 25.33 kB / 459 MB, free: 25.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002339/0.3029, allocations: 86.31 kB / 459 MB, free: 25.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.3031, allocations: 67.86 kB / 459.1 MB, free: 25.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.608e-05/0.3031, allocations: 3.469 kB / 459.1 MB, free: 25.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.401e-05/0.3032, allocations: 36.61 kB / 459.1 MB, free: 25.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001718/0.3049, allocations: 25.56 kB / 459.2 MB, free: 25.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.3049, allocations: 3.312 kB / 459.2 MB, free: 25.87 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002011/0.3051, allocations: 100.7 kB / 459.3 MB, free: 25.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.717e-05/0.3052, allocations: 21.58 kB / 459.3 MB, free: 25.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.884e-05/0.3053, allocations: 28.53 kB / 459.3 MB, free: 25.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.3055, allocations: 138.5 kB / 459.5 MB, free: 25.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3056, allocations: 4 kB / 459.5 MB, free: 25.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3056, allocations: 0 / 459.5 MB, free: 25.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.3056, allocations: 0 / 459.5 MB, free: 25.77 MB / 366.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.0004426/0.306, allocations: 432.2 kB / 459.9 MB, free: 25.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.3061, allocations: 13.02 kB / 459.9 MB, free: 25.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.861e-05/0.3061, allocations: 38.27 kB / 459.9 MB, free: 25.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.3061, allocations: 15.2 kB / 459.9 MB, free: 25.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.3064, allocations: 201.4 kB / 460.1 MB, free: 25.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.3064, allocations: 384 / 460.1 MB, free: 25.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.3064, allocations: 3.312 kB / 460.1 MB, free: 25.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.3066, allocations: 63.77 kB / 460.2 MB, free: 25.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3066, allocations: 7.188 kB / 460.2 MB, free: 25.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.3066, allocations: 0 / 460.2 MB, free: 25.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3066, allocations: 3.438 kB / 460.2 MB, free: 25.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.135e-05/0.3067, allocations: 27.34 kB / 460.2 MB, free: 25.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.3068, allocations: 180.1 kB / 460.4 MB, free: 24.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.902e-05/0.3069, allocations: 55.97 kB / 460.5 MB, free: 24.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.422e-05/0.307, allocations: 39.55 kB / 460.5 MB, free: 24.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.307, allocations: 0 / 460.5 MB, free: 24.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000139/0.3071, allocations: 117.4 kB / 460.6 MB, free: 24.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.3071, allocations: 0 / 460.6 MB, free: 24.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003045/0.3074, allocations: 190.9 kB / 460.8 MB, free: 24.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.3075, allocations: 83.78 kB / 460.9 MB, free: 24.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.3076, allocations: 153 kB / 461.1 MB, free: 24.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.3076, allocations: 28.83 kB / 461.1 MB, free: 24.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.783e-05/0.3077, allocations: 95.2 kB / 461.2 MB, free: 24.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.868e-05/0.3077, allocations: 18.78 kB / 461.2 MB, free: 24.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.901e-05/0.3077, allocations: 25.78 kB / 461.2 MB, free: 24.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.846e-05/0.3078, allocations: 318.3 kB / 461.5 MB, free: 23.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.741e-05/0.3078, allocations: 29.14 kB / 461.6 MB, free: 23.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.66e-05/0.3079, allocations: 30.59 kB / 461.6 MB, free: 23.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.45e-05/0.308, allocations: 129.6 kB / 461.7 MB, free: 23.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.308, allocations: 0 / 461.7 MB, free: 23.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001721/0.3082, allocations: 160.7 kB / 461.9 MB, free: 23.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.3082, allocations: 42.58 kB / 461.9 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.3082, allocations: 4 kB / 461.9 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.3082, allocations: 3.938 kB / 461.9 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.229e-05/0.3083, allocations: 3.156 kB / 461.9 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.3083, allocations: 3.938 kB / 461.9 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.302e-05/0.3084, allocations: 9.672 kB / 461.9 MB, free: 23.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.3084, allocations: 3.344 kB / 461.9 MB, free: 23.6 MB / 366.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 9.221e-05/0.3085, allocations: 157.2 kB / 462.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.3085, allocations: 11.25 kB / 462.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.718e-05/0.3086, allocations: 20.11 kB / 462.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3086, allocations: 0 / 462.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.3086, allocations: 3.625 kB / 462.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3086, allocations: 0 / 462.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.3087, allocations: 196.3 kB / 462.3 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3087, allocations: 0 / 462.3 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.014e-05/0.3087, allocations: 2.969 kB / 462.3 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3088, allocations: 0 / 462.3 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3088, allocations: 2.812 kB / 462.3 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.3088, allocations: 0 / 462.3 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3088, allocations: 0 / 462.3 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.3091, allocations: 223.2 kB / 462.5 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.3091, allocations: 87.61 kB / 462.6 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.806e-05/0.3091, allocations: 3.312 kB / 462.6 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.07e-05/0.3092, allocations: 11.09 kB / 462.6 MB, free: 22.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.163e-05/0.3092, allocations: 6.547 kB / 462.6 MB, free: 22.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.3093, allocations: 3.156 kB / 462.6 MB, free: 22.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.284e-05/0.3093, allocations: 117.9 kB / 462.8 MB, free: 22.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3093, allocations: 0 / 462.8 MB, free: 22.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002604/0.3096, allocations: 46.94 kB / 462.8 MB, free: 22.87 MB / 366.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.001439/0.311, allocations: 0.8774 MB / 463.7 MB, free: 22.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.3113, allocations: 167.9 kB / 463.9 MB, free: 22.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3113, allocations: 0 / 463.9 MB, free: 22.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.825e-05/0.3114, allocations: 119 kB / 464 MB, free: 21.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.3116, allocations: 10.38 kB / 464 MB, free: 21.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.3131, allocations: 1.699 MB / 465.7 MB, free: 20.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.3133, allocations: 0.6908 MB / 466.4 MB, free: 19.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.083e-05/0.3133, allocations: 12.23 kB / 466.4 MB, free: 19.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.097e-05/0.3134, allocations: 26.02 kB / 466.4 MB, free: 19.9 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3134, allocations: 4 kB / 466.4 MB, free: 19.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0262/0.3396, allocations: 2.988 MB / 469.4 MB, free: 19.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.013/8.353, allocations: 2.812 kB / 469.4 MB, free: 19.32 MB / 366.1 MB (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)