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.0009209/0.0009209, allocations: 99.55 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.001213/0.001213, allocations: 192.7 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.421/1.421, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002519/0.000252, allocations: 7.984 kB / 306.8 MB, free: 1.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1205, allocations: 51.48 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001976/0.1225, allocations: 1.585 MB / 359.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.124, allocations: 1.142 MB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.292e-05/0.1241, allocations: 0 / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008761/0.125, allocations: 478.7 kB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.1252, allocations: 195.5 kB / 361.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.1255, allocations: 135.6 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.1258, allocations: 183.2 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.231e-05/0.1259, allocations: 25.66 kB / 362 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001943/0.1261, allocations: 111.6 kB / 362.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.1263, allocations: 179.5 kB / 362.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/0.1264, allocations: 4 kB / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.1265, allocations: 59.97 kB / 362.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001966/0.1267, allocations: 263.3 kB / 362.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.806e-05/0.1268, allocations: 129.3 kB / 362.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005039/0.1273, allocations: 0.6043 MB / 363.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1273, allocations: 0 / 363.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1273, allocations: 0 / 363.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1273, allocations: 0 / 363.4 MB, free: 8.664 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.002068/0.1294, allocations: 1.089 MB / 364.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1295, allocations: 11.97 kB / 364.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.98e-05/0.1295, allocations: 30.56 kB / 364.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.1297, allocations: 94.84 kB / 364.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008871/0.1306, allocations: 0.6921 MB / 365.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.1306, allocations: 4 kB / 365.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.1306, allocations: 3.953 kB / 365.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.1309, allocations: 125.6 kB / 365.4 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.1309, allocations: 0 / 365.4 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.1309, allocations: 0 / 365.4 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.1309, allocations: 4 kB / 365.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.1313, allocations: 155.9 kB / 365.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000941/0.1322, allocations: 0.818 MB / 366.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.1324, allocations: 90.52 kB / 366.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.1326, allocations: 88.83 kB / 366.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.1326, allocations: 0 / 366.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.1326, allocations: 34.56 kB / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.1327, allocations: 0 / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007268/0.1334, allocations: 340.4 kB / 366.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.1334, allocations: 59.39 kB / 367 MB, free: 4.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.135, allocations: 1.405 MB / 368.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.135, allocations: 25.7 kB / 368.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003101/0.1353, allocations: 388.4 kB / 368.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.1354, allocations: 15.8 kB / 368.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.228e-06/0.1354, allocations: 0 / 368.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1355, allocations: 314 kB / 369.1 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.1357, allocations: 67.94 kB / 369.2 MB, free: 2.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.1358, allocations: 94.52 kB / 369.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.136, allocations: 71.95 kB / 369.3 MB, free: 2.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.136, allocations: 3.953 kB / 369.3 MB, free: 2.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005211/0.1366, allocations: 276.5 kB / 369.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1366, allocations: 11.94 kB / 369.6 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1366, allocations: 3.984 kB / 369.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1366, allocations: 0 / 369.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.1368, allocations: 15.98 kB / 369.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.1368, allocations: 8.094 kB / 369.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.137, allocations: 11.98 kB / 369.7 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.137, allocations: 0 / 369.7 MB, free: 2.094 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.000334/0.1374, allocations: 338.8 kB / 370 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.1375, allocations: 90.91 kB / 370.1 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006168/0.1381, allocations: 285.5 kB / 370.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1382, allocations: 0 / 370.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1382, allocations: 4 kB / 370.4 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1382, allocations: 4 kB / 370.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005252/0.1387, allocations: 0.5104 MB / 370.9 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1387, allocations: 0 / 370.9 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.566e-05/0.1388, allocations: 15.94 kB / 370.9 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1388, allocations: 0 / 370.9 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.1388, allocations: 7.984 kB / 370.9 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1388, allocations: 0 / 370.9 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1388, allocations: 0 / 370.9 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004594/0.1393, allocations: 322.9 kB / 371.2 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002562/0.1396, allocations: 223.9 kB / 371.4 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.013e-05/0.1397, allocations: 11.94 kB / 371.4 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.1398, allocations: 16 kB / 371.5 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.1399, allocations: 3.984 kB / 371.5 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.1399, allocations: 11.81 kB / 371.5 MB, free: 176 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.243/0.3829, allocations: 1.013 MB / 372.5 MB, free: 19.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.052e-06/0.383, allocations: 0 / 372.5 MB, free: 19.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006434/0.3836, allocations: 63.98 kB / 372.6 MB, free: 19.12 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.0009657/0.3846, allocations: 0.8653 MB / 373.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004174/0.385, allocations: 138.4 kB / 373.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.385, allocations: 0 / 373.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.3852, allocations: 59.28 kB / 373.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006457/0.3859, allocations: 95.86 kB / 373.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.3969, allocations: 5.769 MB / 379.5 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000662/0.3976, allocations: 1 MB / 380.5 MB, free: 16.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00098/0.3986, allocations: 477.1 kB / 380.9 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003263/0.399, allocations: 245.7 kB / 381.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of SimCode: time 1.933e-06/0.399, allocations: 0 / 381.2 MB, free: 15.95 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..