Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008467/0.0008465, allocations: 91.89 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 194.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 227.7 MB / 246.4 MB, free: 9.723 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000252/0.0002521, allocations: 4 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.114, allocations: 51.52 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002204/0.1162, allocations: 1.581 MB / 360.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.1181, allocations: 1.138 MB / 361.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.1183, allocations: 0 / 361.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.1194, allocations: 494.6 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.1197, allocations: 175.5 kB / 362 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.1201, allocations: 143.6 kB / 362.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003921/0.1205, allocations: 186.8 kB / 362.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.1207, allocations: 25.66 kB / 362.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/0.121, allocations: 111.6 kB / 362.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003078/0.1213, allocations: 179.5 kB / 362.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.1214, allocations: 8 kB / 362.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.1216, allocations: 59.91 kB / 362.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000263/0.1219, allocations: 271.3 kB / 363 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.122, allocations: 117.3 kB / 363.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006673/0.1227, allocations: 0.6121 MB / 363.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1227, allocations: 0 / 363.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1227, allocations: 0 / 363.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.778e-05/0.1227, allocations: 0 / 363.7 MB, free: 8.332 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002507/0.1253, allocations: 1.081 MB / 364.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.1253, allocations: 8.031 kB / 364.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.1256, allocations: 90.86 kB / 364.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.1267, allocations: 0.696 MB / 365.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.1267, allocations: 4 kB / 365.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.1267, allocations: 0 / 365.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.127, allocations: 133.5 kB / 365.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.1271, allocations: 0 / 365.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.1271, allocations: 0 / 365.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.1271, allocations: 0 / 365.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.1274, allocations: 163.8 kB / 365.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.1285, allocations: 0.8064 MB / 366.7 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002195/0.1287, allocations: 94.47 kB / 366.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.1289, allocations: 76.91 kB / 366.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.1289, allocations: 4 kB / 366.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.129, allocations: 34.55 kB / 366.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.129, allocations: 3.938 kB / 366.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007671/0.1297, allocations: 336.5 kB / 367.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.1298, allocations: 55.34 kB / 367.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.1314, allocations: 1.405 MB / 368.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.1314, allocations: 29.64 kB / 368.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.1318, allocations: 392.4 kB / 369.1 MB, free: 2.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.579e-05/0.1318, allocations: 7.812 kB / 369.1 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.1318, allocations: 4 kB / 369.1 MB, free: 2.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1319, allocations: 310 kB / 369.4 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.1321, allocations: 71.94 kB / 369.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.1323, allocations: 94.52 kB / 369.5 MB, free: 2.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.1325, allocations: 75.89 kB / 369.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1325, allocations: 0 / 369.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005204/0.133, allocations: 276.4 kB / 369.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.133, allocations: 10.81 kB / 369.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.133, allocations: 3.984 kB / 369.9 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1331, allocations: 0 / 369.9 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.1332, allocations: 19.98 kB / 369.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1333, allocations: 4 kB / 369.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.1334, allocations: 16.08 kB / 369.9 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.1335, allocations: 0 / 369.9 MB, free: 1.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003329/0.1338, allocations: 337.7 kB / 370.3 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.134, allocations: 90.91 kB / 370.4 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005926/0.1346, allocations: 285.5 kB / 370.6 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1346, allocations: 0 / 370.6 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.1346, allocations: 4 kB / 370.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1346, allocations: 4 kB / 370.6 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005154/0.1351, allocations: 0.5182 MB / 371.2 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1351, allocations: 0 / 371.2 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.1352, allocations: 11.98 kB / 371.2 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1352, allocations: 0 / 371.2 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.1352, allocations: 11.94 kB / 371.2 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1352, allocations: 0 / 371.2 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1352, allocations: 0 / 371.2 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004525/0.1357, allocations: 326.9 kB / 371.5 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2179/0.3536, allocations: 216 kB / 371.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000213/0.3539, allocations: 2.016 kB / 371.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/0.3542, allocations: 15.56 kB / 371.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.342e-05/0.3543, allocations: 5.172 kB / 371.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.3543, allocations: 2.453 kB / 371.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002279/0.3566, allocations: 1.021 MB / 372.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3566, allocations: 0 / 372.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006499/0.3573, allocations: 69.11 kB / 372.8 MB, free: 19.21 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002416/0.3575, allocations: 106.5 kB / 372.9 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004619/0.358, allocations: 138.7 kB / 373.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.358, allocations: 0.9688 kB / 373.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.3582, allocations: 56.88 kB / 373.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.3588, allocations: 99.62 kB / 373.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.3616, allocations: 1.466 MB / 374.7 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000917/0.3625, allocations: 0.9977 MB / 375.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0009124/0.3634, allocations: 471.9 kB / 376.2 MB, free: 17.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.3636, allocations: 39.08 kB / 376.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3636, allocations: 0 / 376.2 MB, free: 17.84 MB / 302.1 MB [CodegenCFunctions.tpl:7578:14-7578:14:writable] Error: Template error: non INDEX(_) (i.e., slice) subscripts probably should not reach here. Check indexedAssign template..