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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, allocations: 94.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.001451, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.3 MB / 245.9 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002567/0.0002567, allocations: 4 kB / 306.7 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1297, allocations: 51.49 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002277/0.132, allocations: 1.543 MB / 359.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.1337, allocations: 1.134 MB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.069e-05/0.1338, allocations: 0 / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.135, allocations: 0.7093 MB / 361.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.143e-05/0.1351, allocations: 39.91 kB / 361.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003543/0.1355, allocations: 146.8 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003178/0.1358, allocations: 243.5 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.1359, allocations: 17.67 kB / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.1361, allocations: 99.67 kB / 362.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.1363, allocations: 107.7 kB / 362.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.239e-05/0.1363, allocations: 0 / 362.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.1364, allocations: 51.91 kB / 362.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001556/0.1366, allocations: 187.4 kB / 362.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.051e-05/0.1367, allocations: 129.3 kB / 362.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004364/0.1371, allocations: 451.2 kB / 363 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1372, allocations: 0 / 363 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1372, allocations: 0 / 363 MB, free: 9.125 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1372, allocations: 4 kB / 363 MB, free: 9.121 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.002243/0.1394, allocations: 0.9988 MB / 364 MB, free: 8.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.1395, allocations: 8.031 kB / 364 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.953e-05/0.1395, allocations: 38.56 kB / 364.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.1397, allocations: 90.86 kB / 364.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007895/0.1405, allocations: 0.5826 MB / 364.7 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.1405, allocations: 7.938 kB / 364.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.1406, allocations: 3.953 kB / 364.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.1409, allocations: 125.5 kB / 364.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1409, allocations: 0 / 364.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.1409, allocations: 4 kB / 364.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.1409, allocations: 0 / 364.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.1413, allocations: 151.9 kB / 365 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007788/0.1421, allocations: 0.5371 MB / 365.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/0.1423, allocations: 90.53 kB / 365.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.1424, allocations: 7.922 kB / 365.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.1424, allocations: 34.64 kB / 365.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.1424, allocations: 0 / 365.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008555/0.1433, allocations: 336.5 kB / 366 MB, free: 5.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.1433, allocations: 51.41 kB / 366.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001446/0.1448, allocations: 1.022 MB / 367.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.1448, allocations: 29.7 kB / 367.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003892/0.1452, allocations: 388.4 kB / 367.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.1453, allocations: 15.8 kB / 367.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.1453, allocations: 0 / 367.5 MB, free: 4.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.1455, allocations: 306 kB / 367.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.1457, allocations: 71.95 kB / 367.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.1459, allocations: 94.45 kB / 368 MB, free: 3.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.1461, allocations: 75.94 kB / 368.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1461, allocations: 3.953 kB / 368.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005948/0.1467, allocations: 276.5 kB / 368.3 MB, free: 3.555 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.1468, allocations: 6.812 kB / 368.3 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.1468, allocations: 4 kB / 368.3 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.1468, allocations: 0 / 368.3 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.147, allocations: 24.06 kB / 368.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.147, allocations: 0 / 368.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.1472, allocations: 12 kB / 368.4 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.1472, allocations: 11.92 kB / 368.4 MB, free: 3.5 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.0004771/0.1477, allocations: 333.7 kB / 368.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.1478, allocations: 82.92 kB / 368.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006506/0.1485, allocations: 293.5 kB / 369.1 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1485, allocations: 48 / 369.1 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/0.1485, allocations: 7.984 kB / 369.1 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1485, allocations: 0 / 369.1 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005439/0.1491, allocations: 458.8 kB / 369.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.1491, allocations: 0 / 369.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.161e-05/0.1492, allocations: 15.94 kB / 369.5 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.1492, allocations: 0 / 369.5 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.1492, allocations: 7.938 kB / 369.6 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1492, allocations: 4 kB / 369.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1492, allocations: 0 / 369.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005305/0.1498, allocations: 322.9 kB / 369.9 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.1499, allocations: 155.9 kB / 370 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.15, allocations: 11.95 kB / 370 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.1502, allocations: 8 kB / 370 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.1502, allocations: 3.984 kB / 370.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.1503, allocations: 4 kB / 370.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000957/0.1512, allocations: 0.7359 MB / 370.8 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1512, allocations: 0 / 370.8 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.1515, allocations: 44 kB / 370.8 MB, free: 0.9336 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.0009281/0.1525, allocations: 0.8715 MB / 371.7 MB, free: 36 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.2215/0.3739, allocations: 125.5 kB / 371.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.374, allocations: 1.469 kB / 371.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.3742, allocations: 58.22 kB / 371.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000752/0.375, allocations: 89.98 kB / 372 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009338/0.3844, allocations: 4.831 MB / 376.8 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007016/0.3851, allocations: 1.019 MB / 377.8 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008687/0.386, allocations: 381.4 kB / 378.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.3863, allocations: 238.2 kB / 378.4 MB, free: 17.56 MB / 302.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3863, allocations: 0 / 378.4 MB, free: 17.56 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..