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/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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: translateModel(ExternData.Examples.CSVTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.CSVTest") translateModel(ExternData.Examples.CSVTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.CSVTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00736/0.00736, allocations: 105.8 kB / 15.74 MB, free: 6.039 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.001317/0.001317, allocations: 192.3 kB / 16.67 MB, free: 5.973 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.415/1.415, 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.4/package.mo): time 0.165/0.165, allocations: 2.938 MB / 293.5 MB, free: 3.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 67.89 kB / 406.3 MB, free: 164 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2909, allocations: 50.33 MB / 456.6 MB, free: 28.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.002855/0.2938, allocations: 1.513 MB / 458.1 MB, free: 27.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.2953, allocations: 1.278 MB / 459.4 MB, free: 26.3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.519e-05/0.2954, allocations: 7.312 kB / 459.4 MB, free: 26.3 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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.0003491/0.2957, allocations: 41.53 kB / 459.4 MB, free: 26.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.714e-05/0.2958, allocations: 33.55 kB / 459.5 MB, free: 26.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.2961, allocations: 75.45 kB / 459.5 MB, free: 26.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2962, allocations: 66.33 kB / 459.6 MB, free: 26.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.65e-05/0.2962, allocations: 10.42 kB / 459.6 MB, free: 26.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.687e-05/0.2963, allocations: 35.31 kB / 459.6 MB, free: 26.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.2966, allocations: 24.66 kB / 459.7 MB, free: 26.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.2966, allocations: 3.125 kB / 459.7 MB, free: 26.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.2968, allocations: 101 kB / 459.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.722e-05/0.2969, allocations: 17.8 kB / 459.8 MB, free: 26.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.496e-05/0.2969, allocations: 28.44 kB / 459.8 MB, free: 26.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.2972, allocations: 127.4 kB / 459.9 MB, free: 26.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2972, allocations: 0 / 459.9 MB, free: 26.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2972, allocations: 0 / 459.9 MB, free: 26.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.2972, allocations: 4 kB / 459.9 MB, free: 26.06 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.0005486/0.2978, allocations: 401.6 kB / 460.3 MB, free: 25.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.2978, allocations: 13.3 kB / 460.3 MB, free: 25.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.391e-05/0.2979, allocations: 7.844 kB / 460.4 MB, free: 25.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.2982, allocations: 193.3 kB / 460.5 MB, free: 25.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.2982, allocations: 384 / 460.5 MB, free: 25.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.2982, allocations: 3.5 kB / 460.5 MB, free: 25.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000167/0.2984, allocations: 68.02 kB / 460.6 MB, free: 25.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.2984, allocations: 4 kB / 460.6 MB, free: 25.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.2984, allocations: 3.984 kB / 460.6 MB, free: 25.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2985, allocations: 0 / 460.6 MB, free: 25.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.86e-05/0.2985, allocations: 31.89 kB / 460.7 MB, free: 25.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001545/0.2987, allocations: 169.1 kB / 460.8 MB, free: 25.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.641e-05/0.2988, allocations: 51.81 kB / 460.9 MB, free: 25.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.82e-05/0.2988, allocations: 41.23 kB / 460.9 MB, free: 25.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.2989, allocations: 4 kB / 460.9 MB, free: 25.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001365/0.299, allocations: 115.5 kB / 461 MB, free: 25.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.299, allocations: 0 / 461 MB, free: 25.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003205/0.2993, allocations: 189.7 kB / 461.2 MB, free: 24.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.2994, allocations: 84.08 kB / 461.3 MB, free: 24.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.57e-05/0.2995, allocations: 134 kB / 461.4 MB, free: 24.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.2995, allocations: 25.7 kB / 461.4 MB, free: 24.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/0.2996, allocations: 90.59 kB / 461.5 MB, free: 24.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.925e-05/0.2996, allocations: 26.97 kB / 461.6 MB, free: 24.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.2996, allocations: 16.03 kB / 461.6 MB, free: 24.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.816e-05/0.2997, allocations: 321.6 kB / 461.9 MB, free: 24.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.531e-05/0.2998, allocations: 27.33 kB / 461.9 MB, free: 24.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.44e-05/0.2998, allocations: 27.41 kB / 461.9 MB, free: 24.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.695e-05/0.2999, allocations: 121 kB / 462.1 MB, free: 24.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2999, allocations: 4 kB / 462.1 MB, free: 24.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001709/0.3001, allocations: 161.3 kB / 462.2 MB, free: 24.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.3001, allocations: 43.62 kB / 462.3 MB, free: 23.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3001, allocations: 3.938 kB / 462.3 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.3002, allocations: 3.25 kB / 462.3 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.932e-05/0.3002, allocations: 3.281 kB / 462.3 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3002, allocations: 0 / 462.3 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.291e-05/0.3003, allocations: 10.55 kB / 462.3 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.3003, allocations: 3.281 kB / 462.3 MB, free: 23.98 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.941e-05/0.3004, allocations: 153.8 kB / 462.4 MB, free: 23.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.3005, allocations: 14.16 kB / 462.5 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.603e-05/0.3005, allocations: 15.41 kB / 462.5 MB, free: 23.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3005, allocations: 0 / 462.5 MB, free: 23.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3005, allocations: 0 / 462.5 MB, free: 23.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3005, allocations: 0 / 462.5 MB, free: 23.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.3006, allocations: 182.3 kB / 462.6 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3006, allocations: 3.328 kB / 462.7 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.05e-05/0.3007, allocations: 7.188 kB / 462.7 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.3007, allocations: 96 / 462.7 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.3007, allocations: 7.125 kB / 462.7 MB, free: 23.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3007, allocations: 0 / 462.7 MB, free: 23.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3007, allocations: 0 / 462.7 MB, free: 23.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.301, allocations: 213.7 kB / 462.9 MB, free: 23.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.668e-05/0.301, allocations: 84.42 kB / 463 MB, free: 23.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.301, allocations: 7.281 kB / 463 MB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.291e-05/0.3011, allocations: 3.344 kB / 463 MB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.412e-05/0.3011, allocations: 7.406 kB / 463 MB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.3011, allocations: 3.25 kB / 463 MB, free: 23.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.64e-05/0.3012, allocations: 103 kB / 463.1 MB, free: 23.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3012, allocations: 4 kB / 463.1 MB, free: 23.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002442/0.3014, allocations: 47.38 kB / 463.1 MB, free: 23.26 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.0007815/0.3022, allocations: 230.5 kB / 463.4 MB, free: 23.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.3025, allocations: 161.9 kB / 463.5 MB, free: 23.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3025, allocations: 0 / 463.5 MB, free: 23.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.761e-05/0.3026, allocations: 124.7 kB / 463.6 MB, free: 22.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.3028, allocations: 18.12 kB / 463.7 MB, free: 22.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000385/0.3032, allocations: 198.6 kB / 463.8 MB, free: 22.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/0.3034, allocations: 0.6948 MB / 464.5 MB, free: 22.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.319e-05/0.3034, allocations: 2.969 kB / 464.5 MB, free: 22.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.126e-05/0.3034, allocations: 10.41 kB / 464.6 MB, free: 22.05 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3034, allocations: 0 / 464.6 MB, free: 22.05 MB / 366.1 MB Notification: Performance of Templates: time 0.003993/0.3074, allocations: 1.488 MB / 466 MB, free: 21.9 MB / 366.1 MB make -j1 -f ExternData_ExternData.Examples.CSVTest.makefile (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 & ./ExternData_ExternData.Examples.CSVTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.CSVTest.pipe 2>&1)