Running command: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadModel(Modelica): time 2.284/2.284, allocations: 224.7 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.581e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 50.42 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002774/0.1151, allocations: 1.53 MB / 346.5 MB, free: 7.383 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002305/0.1174, allocations: 1.013 MB / 347.5 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.1177, allocations: 4 kB / 347.5 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001649/0.1193, allocations: 0.6664 MB / 348.2 MB, free: 5.691 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.1195, allocations: 35.86 kB / 348.2 MB, free: 5.656 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005523/0.1201, allocations: 127.6 kB / 348.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003523/0.1204, allocations: 143.7 kB / 348.5 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.97e-05/0.1205, allocations: 4 kB / 348.5 MB, free: 5.387 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.1208, allocations: 87.83 kB / 348.6 MB, free: 5.301 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.121, allocations: 91.81 kB / 348.7 MB, free: 5.211 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.1212, allocations: 51.91 kB / 348.7 MB, free: 5.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-05/0.1213, allocations: 7.984 kB / 348.7 MB, free: 5.152 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002355/0.1215, allocations: 183.4 kB / 348.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.083e-05/0.1216, allocations: 24 kB / 348.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006638/0.1223, allocations: 451.2 kB / 349.4 MB, free: 4.508 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.1223, allocations: 3.938 kB / 349.4 MB, free: 4.504 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1223, allocations: 0 / 349.4 MB, free: 4.504 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.1224, allocations: 0 / 349.4 MB, free: 4.504 MB / 282.7 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.002921/0.1253, allocations: 0.8636 MB / 350.2 MB, free: 3.594 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.1254, allocations: 8.031 kB / 350.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.1256, allocations: 94.81 kB / 350.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.1268, allocations: 0.5787 MB / 350.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.1268, allocations: 0 / 350.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.046e-05/0.1268, allocations: 4 kB / 350.9 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.1273, allocations: 121.6 kB / 351 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.1274, allocations: 0 / 351 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.1274, allocations: 4 kB / 351 MB, free: 2.727 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1274, allocations: 0 / 351 MB, free: 2.727 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006435/0.1281, allocations: 159.8 kB / 351.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009802/0.1291, allocations: 0.5333 MB / 351.7 MB, free: 1.988 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/0.1294, allocations: 86.53 kB / 351.8 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.1295, allocations: 0 / 351.8 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.1295, allocations: 30.66 kB / 351.9 MB, free: 1.855 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 1.824e-06/0.1295, allocations: 4 kB / 351.9 MB, free: 1.852 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.001316/0.1308, allocations: 352.3 kB / 352.2 MB, free: 1.5 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.1309, allocations: 51.41 kB / 352.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/0.1326, allocations: 0.9001 MB / 353.1 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.1327, allocations: 29.64 kB / 353.2 MB, free: 496 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004213/0.1331, allocations: 358.5 kB / 353.5 MB, free: 136 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.084e-05/0.1332, allocations: 23.72 kB / 353.6 MB, free: 112 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.565e-05/0.1332, allocations: 0 / 353.6 MB, free: 112 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1334, allocations: 314.8 kB / 353.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.1337, allocations: 75.94 kB / 353.9 MB, free: 15.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.1341, allocations: 86.53 kB / 354 MB, free: 15.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003285/0.1344, allocations: 79.94 kB / 354.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.1344, allocations: 0 / 354.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008442/0.1353, allocations: 197.4 kB / 354.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1353, allocations: 4 kB / 354.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1353, allocations: 8.094 kB / 354.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.1354, allocations: 0 / 354.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003084/0.1357, allocations: 15.98 kB / 354.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.1357, allocations: 7.953 kB / 354.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000345/0.1361, allocations: 11.98 kB / 354.3 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.1361, allocations: 0 / 354.3 MB, free: 15.3 MB / 298.7 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 () * 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.0006275/0.1367, allocations: 337.7 kB / 354.7 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.137, allocations: 86.95 kB / 354.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.1381, allocations: 289.3 kB / 355 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.1381, allocations: 0 / 355 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1381, allocations: 0 / 355 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.1381, allocations: 8.281 kB / 355 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007326/0.1389, allocations: 454.8 kB / 355.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.1389, allocations: 0 / 355.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.1391, allocations: 15.98 kB / 355.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.1391, allocations: 4 kB / 355.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.1391, allocations: 0 / 355.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1391, allocations: 0 / 355.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.1391, allocations: 7.984 kB / 355.5 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008329/0.14, allocations: 326.9 kB / 355.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.1402, allocations: 156 kB / 356 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.112e-05/0.1403, allocations: 0 / 356 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000294/0.1406, allocations: 11.98 kB / 356 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.412e-05/0.1407, allocations: 7.938 kB / 356 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.1407, allocations: 0 / 356 MB, free: 13.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00146/0.1422, allocations: 0.7437 MB / 356.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1422, allocations: 0 / 356.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004287/0.1427, allocations: 43.98 kB / 356.8 MB, free: 12.73 MB / 298.7 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 () * 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.0002468/0.1429, allocations: 115.2 kB / 356.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006916/0.1436, allocations: 135.9 kB / 357 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.1437, allocations: 0 / 357 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002997/0.144, allocations: 63.89 kB / 357.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007292/0.1447, allocations: 92.33 kB / 357.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003269/0.148, allocations: 1.513 MB / 358.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009438/0.149, allocations: 1.008 MB / 359.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.1492, allocations: 31.42 kB / 359.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of SimCode: time 1.253e-06/0.1492, allocations: 0 / 359.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of Templates: time 0.02011/0.1693, allocations: 7.334 MB / 367.1 MB, free: 2.395 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceFunctions.cpp:82:34: error: use of undeclared identifier 'WHOLEDIM' tmp46 = sum_array(v_(WHOLEDIM).re_); ^ ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceFunctions.cpp:83:34: error: use of undeclared identifier 'WHOLEDIM' tmp47 = sum_array(v_(WHOLEDIM).im_); ^ 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o] Error 1