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.000857/0.000857, allocations: 95.19 kB / 16.3 MB, free: 6.457 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.0008613/0.0008614, allocations: 185.5 kB / 17.2 MB, free: 6.34 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.543/1.543, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003337, allocations: 8.312 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1238, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002337/0.1261, allocations: 1.54 MB / 352.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.1279, allocations: 1.099 MB / 353.9 MB, free: 8.996 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.1281, allocations: 4 kB / 353.9 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.1296, allocations: 0.7054 MB / 354.6 MB, free: 8.285 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.1298, allocations: 43.91 kB / 354.6 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.1302, allocations: 155.4 kB / 354.8 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003482/0.1306, allocations: 231.6 kB / 355 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.1307, allocations: 13.69 kB / 355 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.1308, allocations: 103.7 kB / 355.1 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001593/0.131, allocations: 115.6 kB / 355.2 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.131, allocations: 0 / 355.2 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.1312, allocations: 43.97 kB / 355.3 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.1313, allocations: 183.3 kB / 355.4 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.845e-05/0.1314, allocations: 129.3 kB / 355.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004288/0.1319, allocations: 454.9 kB / 356 MB, free: 6.832 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1319, allocations: 7.938 kB / 356 MB, free: 6.824 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1319, allocations: 0 / 356 MB, free: 6.824 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.1319, allocations: 0 / 356 MB, free: 6.824 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.002059/0.134, allocations: 1.003 MB / 357 MB, free: 5.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.134, allocations: 8.031 kB / 357 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.175e-05/0.1341, allocations: 34.56 kB / 357.1 MB, free: 5.719 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.1342, allocations: 94.81 kB / 357.2 MB, free: 5.625 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007778/0.135, allocations: 0.5826 MB / 357.7 MB, free: 4.988 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.135, allocations: 4 kB / 357.7 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.1351, allocations: 0 / 357.7 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002927/0.1353, allocations: 133.5 kB / 357.9 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.1354, allocations: 0 / 357.9 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.1354, allocations: 0 / 357.9 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1354, allocations: 7.891 kB / 357.9 MB, free: 4.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003358/0.1357, allocations: 159.9 kB / 358 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006773/0.1364, allocations: 0.5256 MB / 358.6 MB, free: 4.109 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/0.1366, allocations: 86.53 kB / 358.7 MB, free: 4.016 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.1367, allocations: 0 / 358.7 MB, free: 4.016 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1367, allocations: 46.58 kB / 358.7 MB, free: 3.961 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 7.92e-07/0.1367, allocations: 0 / 358.7 MB, free: 3.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008172/0.1375, allocations: 340.3 kB / 359 MB, free: 3.621 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.1376, allocations: 55.41 kB / 359.1 MB, free: 3.555 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/0.1389, allocations: 1.018 MB / 360.1 MB, free: 2.516 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.1389, allocations: 25.7 kB / 360.1 MB, free: 2.484 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003951/0.1393, allocations: 392.4 kB / 360.5 MB, free: 2.098 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.1394, allocations: 11.91 kB / 360.5 MB, free: 2.086 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-06/0.1394, allocations: 0 / 360.5 MB, free: 2.086 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002702/0.1397, allocations: 306 kB / 360.8 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.1399, allocations: 75.94 kB / 360.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.1402, allocations: 90.45 kB / 361 MB, free: 1.609 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.1404, allocations: 79.95 kB / 361.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1404, allocations: 0 / 361.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005538/0.1409, allocations: 276.4 kB / 361.3 MB, free: 1.254 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.141, allocations: 8.094 kB / 361.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.141, allocations: 0 / 361.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.141, allocations: 7.953 kB / 361.3 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.1412, allocations: 15.98 kB / 361.4 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.1412, allocations: 0 / 361.4 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.1414, allocations: 15.92 kB / 361.4 MB, free: 1.207 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.1414, allocations: 8 kB / 361.4 MB, free: 1.199 MB / 286.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.0004125/0.1418, allocations: 337.7 kB / 361.7 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.1419, allocations: 82.97 kB / 361.8 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006076/0.1426, allocations: 297.5 kB / 362.1 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.1426, allocations: 3.984 kB / 362.1 MB, free: 484 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1426, allocations: 3.953 kB / 362.1 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1426, allocations: 0 / 362.1 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004729/0.1431, allocations: 458.9 kB / 362.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1431, allocations: 3.938 kB / 362.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.118e-05/0.1432, allocations: 15.94 kB / 362.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1432, allocations: 0 / 362.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.1432, allocations: 7.984 kB / 362.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1432, allocations: 0 / 362.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1432, allocations: 0 / 362.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00047/0.1437, allocations: 330.8 kB / 362.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.1438, allocations: 148 kB / 363 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.54e-05/0.1439, allocations: 4 kB / 363 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1441, allocations: 15.98 kB / 363.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.1441, allocations: 7.984 kB / 363.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.1441, allocations: 0 / 363.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009188/0.1451, allocations: 0.7398 MB / 363.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1451, allocations: 4 kB / 363.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003564/0.1454, allocations: 44 kB / 363.9 MB, free: 14.62 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.000927/0.1464, allocations: 0.8676 MB / 364.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004261/0.1468, allocations: 135.9 kB / 364.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1468, allocations: 0 / 364.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.147, allocations: 59.95 kB / 364.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.1475, allocations: 86.59 kB / 365 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006856/0.1543, allocations: 4.839 MB / 369.8 MB, free: 8.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006598/0.155, allocations: 1.02 MB / 370.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005932/0.1556, allocations: 386.9 kB / 371.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.1559, allocations: 243.3 kB / 371.5 MB, free: 6.785 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1559, allocations: 0 / 371.5 MB, free: 6.785 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..