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.00118/0.001181, allocations: 95.81 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 208.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002892/0.0002895, allocations: 8 kB / 306.6 MB, free: 1.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1245, allocations: 51.49 MB / 358.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00232/0.1269, allocations: 1.55 MB / 359.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1286, allocations: 1.123 MB / 360.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.546e-05/0.1287, allocations: 4 kB / 360.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.1299, allocations: 0.7016 MB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.324e-05/0.13, allocations: 43.91 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.1304, allocations: 151.4 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.1307, allocations: 231.6 kB / 361.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.1309, allocations: 25.67 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.1311, allocations: 99.72 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.1312, allocations: 107.6 kB / 362.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.1312, allocations: 0 / 362.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.1314, allocations: 51.89 kB / 362.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.1316, allocations: 191.3 kB / 362.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.991e-05/0.1317, allocations: 121.3 kB / 362.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004579/0.1321, allocations: 459.2 kB / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1321, allocations: 0 / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1322, allocations: 0 / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1322, allocations: 4 kB / 362.9 MB, free: 9.094 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.002142/0.1343, allocations: 1.01 MB / 363.9 MB, free: 8.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1344, allocations: 8.031 kB / 363.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.1345, allocations: 90.86 kB / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007609/0.1353, allocations: 0.5826 MB / 364.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.1353, allocations: 3.938 kB / 364.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.1354, allocations: 4 kB / 364.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002905/0.1356, allocations: 121.5 kB / 364.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.1357, allocations: 0 / 364.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.1357, allocations: 4 kB / 364.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1357, allocations: 4 kB / 364.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.1361, allocations: 155.8 kB / 364.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006856/0.1368, allocations: 0.5294 MB / 365.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.137, allocations: 90.52 kB / 365.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.137, allocations: 4 kB / 365.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.137, allocations: 34.56 kB / 365.5 MB, free: 6.281 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.137, allocations: 0 / 365.5 MB, free: 6.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007347/0.1378, allocations: 336.5 kB / 365.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.1378, allocations: 55.41 kB / 365.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.139, allocations: 1.022 MB / 366.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.139, allocations: 25.7 kB / 366.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003209/0.1394, allocations: 392.4 kB / 367.3 MB, free: 4.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.1394, allocations: 7.906 kB / 367.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.035e-05/0.1394, allocations: 4 kB / 367.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1395, allocations: 310 kB / 367.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.1397, allocations: 71.95 kB / 367.7 MB, free: 4.027 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.1399, allocations: 90.52 kB / 367.8 MB, free: 3.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.1401, allocations: 79.94 kB / 367.9 MB, free: 3.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1401, allocations: 3.938 kB / 367.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005291/0.1406, allocations: 276.3 kB / 368.2 MB, free: 3.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1407, allocations: 8.094 kB / 368.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.1407, allocations: 0 / 368.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1407, allocations: 0 / 368.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.1409, allocations: 19.98 kB / 368.2 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1409, allocations: 0 / 368.2 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.141, allocations: 11.98 kB / 368.2 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.1411, allocations: 4 kB / 368.2 MB, free: 3.527 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.0003458/0.1414, allocations: 345.6 kB / 368.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.1416, allocations: 86.92 kB / 368.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006038/0.1422, allocations: 293.5 kB / 368.9 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.1422, allocations: 4 kB / 368.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1422, allocations: 0 / 368.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1422, allocations: 0 / 368.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000581/0.1428, allocations: 458.8 kB / 369.4 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1428, allocations: 0 / 369.4 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.173e-05/0.1429, allocations: 19.98 kB / 369.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1429, allocations: 3.953 kB / 369.4 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.1429, allocations: 0 / 369.4 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1429, allocations: 0 / 369.4 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1429, allocations: 4 kB / 369.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004603/0.1434, allocations: 318.9 kB / 369.7 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.1436, allocations: 152 kB / 369.8 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.576e-05/0.1436, allocations: 3.953 kB / 369.9 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.1438, allocations: 11.98 kB / 369.9 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.212e-05/0.1439, allocations: 11.92 kB / 369.9 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.1439, allocations: 0 / 369.9 MB, free: 1.746 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008315/0.1447, allocations: 0.7398 MB / 370.6 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1447, allocations: 4 kB / 370.6 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.145, allocations: 43.94 kB / 370.7 MB, free: 0.9492 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.0002124/0.1452, allocations: 107.2 kB / 370.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003851/0.1456, allocations: 135.9 kB / 370.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1456, allocations: 0 / 370.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.1458, allocations: 59.89 kB / 371 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004744/0.1463, allocations: 93.31 kB / 371 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1906/0.3369, allocations: 1.445 MB / 372.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006246/0.3375, allocations: 1.017 MB / 373.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007418/0.3383, allocations: 382.8 kB / 373.9 MB, free: 18.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.729e-05/0.3384, allocations: 30.56 kB / 373.9 MB, free: 18.8 MB / 302.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3384, allocations: 3.594 kB / 373.9 MB, free: 18.8 MB / 302.1 MB [CodegenCFunctions.tpl:7542:14-7542:14:writable] Error: Template error: non INDEX(_) (i.e., slice) subscripts probably should not reach here. Check indexedAssign template..