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.008523/0.008522, allocations: 96.69 kB / 15.73 MB, free: 6 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.001704/0.001704, allocations: 185.7 kB / 16.67 MB, free: 5.93 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.48/1.48, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1818/0.1818, allocations: 2.935 MB / 293.5 MB, free: 3.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 63.89 kB / 405.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3005, allocations: 50.34 MB / 456.1 MB, free: 27.96 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.002692/0.3033, allocations: 1.502 MB / 457.6 MB, free: 26.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.3049, allocations: 1.27 MB / 458.9 MB, free: 26.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.598e-05/0.305, allocations: 0 / 458.9 MB, free: 26.03 MB / 366.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.0003534/0.3053, allocations: 45.69 kB / 458.9 MB, free: 26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.3055, allocations: 40.83 kB / 459 MB, free: 25.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.3058, allocations: 81.97 kB / 459 MB, free: 25.94 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.3059, allocations: 59.52 kB / 459.1 MB, free: 25.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.019e-05/0.3059, allocations: 11.27 kB / 459.1 MB, free: 25.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.265e-05/0.306, allocations: 27.83 kB / 459.1 MB, free: 25.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003277/0.3063, allocations: 28.27 kB / 459.2 MB, free: 25.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.3064, allocations: 3.031 kB / 459.2 MB, free: 25.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.3065, allocations: 100.4 kB / 459.3 MB, free: 25.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.42e-05/0.3066, allocations: 21.44 kB / 459.3 MB, free: 25.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.063e-05/0.3066, allocations: 36.77 kB / 459.3 MB, free: 25.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.3068, allocations: 141.2 kB / 459.5 MB, free: 25.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3069, allocations: 0 / 459.5 MB, free: 25.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3069, allocations: 0 / 459.5 MB, free: 25.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.3069, allocations: 0 / 459.5 MB, free: 25.78 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.0004272/0.3073, allocations: 433.2 kB / 459.9 MB, free: 25.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.3073, allocations: 10.45 kB / 459.9 MB, free: 25.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.893e-05/0.3074, allocations: 33.72 kB / 459.9 MB, free: 25.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.621e-05/0.3074, allocations: 11.95 kB / 459.9 MB, free: 25.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.3077, allocations: 208.3 kB / 460.1 MB, free: 25.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.3077, allocations: 3.656 kB / 460.1 MB, free: 25.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.3077, allocations: 384 / 460.1 MB, free: 25.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.3078, allocations: 69.67 kB / 460.2 MB, free: 25.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3079, allocations: 3.938 kB / 460.2 MB, free: 25.03 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.3079, allocations: 0 / 460.2 MB, free: 25.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3079, allocations: 0 / 460.2 MB, free: 25.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.861e-05/0.3079, allocations: 30.88 kB / 460.3 MB, free: 25.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001346/0.3081, allocations: 183 kB / 460.4 MB, free: 24.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.6e-05/0.3082, allocations: 48.11 kB / 460.5 MB, free: 24.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.312e-05/0.3082, allocations: 41.78 kB / 460.5 MB, free: 24.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.66e-06/0.3082, allocations: 0 / 460.5 MB, free: 24.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/0.3084, allocations: 113.4 kB / 460.6 MB, free: 24.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.3084, allocations: 0 / 460.6 MB, free: 24.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002877/0.3087, allocations: 196.3 kB / 460.8 MB, free: 24.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.3087, allocations: 83.75 kB / 460.9 MB, free: 24.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3088, allocations: 156.4 kB / 461.1 MB, free: 24.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.3088, allocations: 25.7 kB / 461.1 MB, free: 24.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.811e-05/0.3089, allocations: 91.33 kB / 461.2 MB, free: 24.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.3089, allocations: 22.45 kB / 461.2 MB, free: 24.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.589e-05/0.3089, allocations: 20.03 kB / 461.2 MB, free: 24.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.471e-05/0.309, allocations: 321.6 kB / 461.5 MB, free: 23.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.228e-05/0.309, allocations: 26.5 kB / 461.6 MB, free: 23.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.544e-05/0.3091, allocations: 33.53 kB / 461.6 MB, free: 23.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.028e-05/0.3092, allocations: 122.2 kB / 461.7 MB, free: 23.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3092, allocations: 4 kB / 461.7 MB, free: 23.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001682/0.3094, allocations: 171.6 kB / 461.9 MB, free: 23.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.3094, allocations: 38.09 kB / 461.9 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3094, allocations: 0 / 461.9 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3094, allocations: 3.938 kB / 461.9 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.86e-05/0.3095, allocations: 3 kB / 461.9 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.3095, allocations: 240 / 461.9 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.555e-05/0.3096, allocations: 13.89 kB / 461.9 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.3096, allocations: 3 kB / 461.9 MB, free: 23.61 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 7.776e-05/0.3097, allocations: 159.4 kB / 462.1 MB, free: 23.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.3097, allocations: 13.89 kB / 462.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.023e-05/0.3097, allocations: 7.719 kB / 462.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.3097, allocations: 0 / 462.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.3098, allocations: 0 / 462.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.3098, allocations: 144 / 462.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.546e-05/0.3099, allocations: 199.7 kB / 462.3 MB, free: 23.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3099, allocations: 4 kB / 462.3 MB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.03e-05/0.3099, allocations: 3.094 kB / 462.3 MB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.3099, allocations: 0 / 462.3 MB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.3099, allocations: 6.844 kB / 462.3 MB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3099, allocations: 0 / 462.3 MB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3099, allocations: 3.984 kB / 462.3 MB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.3101, allocations: 218.8 kB / 462.5 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.281e-05/0.3102, allocations: 91.61 kB / 462.6 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.3102, allocations: 7.281 kB / 462.6 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.265e-05/0.3103, allocations: 3.219 kB / 462.6 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.846e-05/0.3103, allocations: 6.547 kB / 462.6 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.3103, allocations: 7.188 kB / 462.7 MB, free: 22.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.804e-05/0.3104, allocations: 115 kB / 462.8 MB, free: 22.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3104, allocations: 3.938 kB / 462.8 MB, free: 22.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.3107, allocations: 44.88 kB / 462.8 MB, free: 22.88 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.001057/0.3117, allocations: 0.8794 MB / 463.7 MB, free: 22.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002034/0.3119, allocations: 162.4 kB / 463.8 MB, free: 22.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3119, allocations: 0 / 463.8 MB, free: 22.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.64e-05/0.312, allocations: 122 kB / 464 MB, free: 21.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.3122, allocations: 14.41 kB / 464 MB, free: 21.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.3137, allocations: 1.702 MB / 465.7 MB, free: 20.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.3138, allocations: 0.6905 MB / 466.4 MB, free: 19.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.807e-05/0.3139, allocations: 13.59 kB / 466.4 MB, free: 19.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.34e-05/0.3139, allocations: 21.94 kB / 466.4 MB, free: 19.92 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3139, allocations: 0 / 466.4 MB, free: 19.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01855/0.3325, allocations: 2.989 MB / 469.4 MB, free: 19.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/8.118, allocations: 7.016 kB / 469.4 MB, free: 19.34 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)