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.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.001142/0.001142, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 194.4 kB / 16.53 MB, free: 6.391 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1371/0.1371, allocations: 2.946 MB / 293.3 MB, free: 3.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 67.91 kB / 354.8 MB, free: 3.625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09123/0.09253, allocations: 50.35 MB / 405.1 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.002694/0.09526, allocations: 1.49 MB / 406.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.09694, allocations: 1.268 MB / 407.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.716e-05/0.097, allocations: 0 / 407.9 MB, free: 14.45 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.0002973/0.09731, allocations: 55.7 kB / 407.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.954e-05/0.0974, allocations: 31.84 kB / 408 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.09766, allocations: 75.8 kB / 408 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.09778, allocations: 71.77 kB / 408.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.086e-05/0.09782, allocations: 7.984 kB / 408.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.804e-05/0.09789, allocations: 23.92 kB / 408.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005366/0.09843, allocations: 30.84 kB / 408.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.749e-05/0.09846, allocations: 4 kB / 408.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.09863, allocations: 103.9 kB / 408.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.483e-05/0.0987, allocations: 19.92 kB / 408.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.617e-05/0.09876, allocations: 31.8 kB / 408.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.09897, allocations: 143.9 kB / 408.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.09899, allocations: 4 kB / 408.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.09899, allocations: 0 / 408.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.099, allocations: 0 / 408.5 MB, free: 13.86 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.0005052/0.09951, allocations: 428.8 kB / 408.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.09955, allocations: 11.89 kB / 408.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.321e-05/0.09959, allocations: 38.75 kB / 408.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.043e-05/0.09964, allocations: 16.83 kB / 408.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.09984, allocations: 196.1 kB / 409.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-06/0.09986, allocations: 4.375 kB / 409.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.09988, allocations: 4.375 kB / 409.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.1, allocations: 65.73 kB / 409.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.1, allocations: 0 / 409.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.1, allocations: 7.984 kB / 409.2 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.1001, allocations: 0 / 409.2 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.437e-05/0.1001, allocations: 27.98 kB / 409.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001764/0.1003, allocations: 181.6 kB / 409.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.133e-05/0.1004, allocations: 54.56 kB / 409.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.03e-05/0.1005, allocations: 40.89 kB / 409.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.023e-06/0.1005, allocations: 0 / 409.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001756/0.1007, allocations: 117 kB / 409.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.1007, allocations: 0 / 409.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003838/0.1011, allocations: 195.4 kB / 409.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.1011, allocations: 85.11 kB / 409.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.1013, allocations: 152.1 kB / 410.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.1013, allocations: 29.7 kB / 410.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.028e-05/0.1014, allocations: 92.12 kB / 410.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.1014, allocations: 15.75 kB / 410.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.1014, allocations: 25.7 kB / 410.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1016, allocations: 322.8 kB / 410.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.837e-05/0.1016, allocations: 31.98 kB / 410.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.053e-05/0.1017, allocations: 27.98 kB / 410.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.1018, allocations: 124.2 kB / 410.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1018, allocations: 0 / 410.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002034/0.102, allocations: 167.1 kB / 410.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.97e-05/0.102, allocations: 37.7 kB / 410.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1021, allocations: 0 / 410.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.1021, allocations: 0 / 410.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.842e-05/0.1021, allocations: 7.984 kB / 410.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.1021, allocations: 0 / 410.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.343e-05/0.1022, allocations: 15.91 kB / 410.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.1022, allocations: 0 / 410.9 MB, free: 11.11 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.0001135/0.1023, allocations: 151.5 kB / 411.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.1024, allocations: 15.84 kB / 411.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.286e-05/0.1024, allocations: 8.719 kB / 411.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1024, allocations: 4 kB / 411.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1024, allocations: 0 / 411.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.1024, allocations: 3.984 kB / 411.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.1026, allocations: 189.6 kB / 411.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1026, allocations: 4 kB / 411.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.031e-05/0.1026, allocations: 4 kB / 411.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.1026, allocations: 0 / 411.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.1026, allocations: 3.938 kB / 411.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1026, allocations: 7.984 kB / 411.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1026, allocations: 4 kB / 411.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.103, allocations: 214.6 kB / 411.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.927e-05/0.103, allocations: 88.95 kB / 411.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.1031, allocations: 15.98 kB / 411.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.248e-05/0.1031, allocations: 4 kB / 411.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.1032, allocations: 0 / 411.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.1032, allocations: 4 kB / 411.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.123e-05/0.1033, allocations: 121.4 kB / 411.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.422e-06/0.1033, allocations: 3.938 kB / 411.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002439/0.1035, allocations: 43.94 kB / 411.8 MB, free: 10.13 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.001116/0.1047, allocations: 0.8672 MB / 412.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.1049, allocations: 167.3 kB / 412.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1049, allocations: 0 / 412.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.105, allocations: 123.3 kB / 413 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001849/0.1052, allocations: 16 kB / 413 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.1071, allocations: 1.681 MB / 414.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.1073, allocations: 0.6924 MB / 415.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.909e-05/0.1074, allocations: 8.094 kB / 415.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.1074, allocations: 31.3 kB / 415.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1074, allocations: 4 kB / 415.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.1276, allocations: 2.938 MB / 418.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.429/7.557, allocations: 11.25 kB / 418.3 MB, free: 3.531 MB / 350.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)