Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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) 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.00177/0.00177, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.528/1.528, allocations: 223.2 MB / 241.2 MB, free: 5.168 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004066/0.0004067, allocations: 3.969 kB / 300.9 MB, free: 5.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1596, allocations: 50.43 MB / 351.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002886/0.1626, allocations: 1.571 MB / 352.9 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.1644, allocations: 1.118 MB / 354 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.1646, allocations: 3.938 kB / 354 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.1657, allocations: 482.7 kB / 354.5 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.166, allocations: 187.5 kB / 354.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003741/0.1663, allocations: 131.6 kB / 354.8 MB, free: 7.859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002889/0.1667, allocations: 195.1 kB / 355 MB, free: 7.668 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.874e-05/0.1668, allocations: 17.69 kB / 355 MB, free: 7.648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002543/0.167, allocations: 111.6 kB / 355.1 MB, free: 7.539 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002843/0.1673, allocations: 183.5 kB / 355.3 MB, free: 7.359 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.1673, allocations: 8 kB / 355.3 MB, free: 7.352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.1675, allocations: 51.97 kB / 355.4 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002281/0.1677, allocations: 267.3 kB / 355.6 MB, free: 7.039 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.1678, allocations: 121.3 kB / 355.7 MB, free: 6.914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006367/0.1685, allocations: 0.6118 MB / 356.4 MB, free: 6.301 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1685, allocations: 0 / 356.4 MB, free: 6.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1685, allocations: 4 kB / 356.4 MB, free: 6.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1685, allocations: 0 / 356.4 MB, free: 6.297 MB / 286.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.002337/0.1709, allocations: 1.085 MB / 357.4 MB, free: 5.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1709, allocations: 8.031 kB / 357.5 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.21e-05/0.171, allocations: 30.56 kB / 357.5 MB, free: 5.113 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002513/0.1712, allocations: 90.83 kB / 357.6 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009619/0.1722, allocations: 0.7038 MB / 358.3 MB, free: 4.266 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.1722, allocations: 11.94 kB / 358.3 MB, free: 4.254 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.1722, allocations: 0 / 358.3 MB, free: 4.254 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003901/0.1726, allocations: 117.6 kB / 358.4 MB, free: 4.133 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.1726, allocations: 0 / 358.4 MB, free: 4.133 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.1727, allocations: 4 kB / 358.4 MB, free: 4.129 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1727, allocations: 7.953 kB / 358.4 MB, free: 4.121 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003405/0.173, allocations: 151.9 kB / 358.6 MB, free: 3.973 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.1744, allocations: 0.8142 MB / 359.4 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/0.1746, allocations: 106.4 kB / 359.5 MB, free: 2.996 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.1748, allocations: 76.89 kB / 359.6 MB, free: 2.918 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.1748, allocations: 0 / 359.6 MB, free: 2.918 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.1749, allocations: 34.56 kB / 359.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.1749, allocations: 0 / 359.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008878/0.1758, allocations: 344.4 kB / 359.9 MB, free: 2.527 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.1758, allocations: 51.41 kB / 360 MB, free: 2.465 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001727/0.1775, allocations: 1.413 MB / 361.4 MB, free: 1.031 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.1776, allocations: 29.7 kB / 361.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003259/0.1779, allocations: 384.4 kB / 361.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.1779, allocations: 11.81 kB / 361.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.178, allocations: 0 / 361.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1781, allocations: 306 kB / 362.1 MB, free: 308 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.1782, allocations: 75.94 kB / 362.2 MB, free: 232 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.1784, allocations: 90.52 kB / 362.3 MB, free: 132 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.1786, allocations: 75.89 kB / 362.3 MB, free: 56 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1786, allocations: 0 / 362.3 MB, free: 56 kB / 286.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005587/0.1792, allocations: 276.5 kB / 362.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.1792, allocations: 8 kB / 362.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1792, allocations: 0 / 362.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1792, allocations: 3.953 kB / 362.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.1794, allocations: 20.08 kB / 362.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.1794, allocations: 7.938 kB / 362.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.1796, allocations: 19.92 kB / 362.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.1796, allocations: 3.984 kB / 362.7 MB, free: 15.71 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.0003454/0.18, allocations: 337.7 kB / 363 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.1802, allocations: 86.95 kB / 363.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006025/0.1808, allocations: 289.6 kB / 363.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.1808, allocations: 11.94 kB / 363.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.83e-06/0.1808, allocations: 0 / 363.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.1808, allocations: 0 / 363.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005819/0.1814, allocations: 0.5065 MB / 363.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1814, allocations: 0 / 363.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.24e-05/0.1815, allocations: 19.92 kB / 363.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1815, allocations: 7.938 kB / 363.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.1816, allocations: 0 / 363.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.1816, allocations: 7.984 kB / 363.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1816, allocations: 3.953 kB / 363.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004642/0.182, allocations: 314.9 kB / 364.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002809/0.1823, allocations: 231.9 kB / 364.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.525e-05/0.1824, allocations: 0 / 364.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.1826, allocations: 12 kB / 364.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.884e-05/0.1827, allocations: 7.984 kB / 364.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.1827, allocations: 3.953 kB / 364.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001337/0.184, allocations: 1.017 MB / 365.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.184, allocations: 0 / 365.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.1844, allocations: 64 kB / 365.6 MB, free: 12.71 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.0008824/0.1853, allocations: 0.8715 MB / 366.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003596/0.1856, allocations: 135.8 kB / 366.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1856, allocations: 4.125 kB / 366.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.1858, allocations: 63.95 kB / 366.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.1864, allocations: 94.61 kB / 366.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009472/0.1959, allocations: 5.769 MB / 372.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006839/0.1966, allocations: 1.005 MB / 373.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006733/0.1973, allocations: 470.3 kB / 374 MB, free: 4.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.1976, allocations: 251.4 kB / 374.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1976, allocations: 0 / 374.2 MB, free: 3.855 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..