Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007979/0.0007979, allocations: 99.48 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002127/0.0002127, allocations: 8 kB / 356.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2026, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00163/0.2043, allocations: 1.58 MB / 409.6 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2055, allocations: 1.15 MB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.336e-05/0.2056, allocations: 0.5312 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008202/0.2064, allocations: 488.3 kB / 411.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.2066, allocations: 184.5 kB / 411.4 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.2069, allocations: 143.1 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002108/0.2071, allocations: 199.2 kB / 411.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.353e-05/0.2072, allocations: 33.61 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.2074, allocations: 111.6 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.2076, allocations: 183.5 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.543e-05/0.2076, allocations: 11.94 kB / 412.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.2078, allocations: 51.97 kB / 412.1 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.2079, allocations: 271.3 kB / 412.4 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.2081, allocations: 271.9 kB / 412.7 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.2084, allocations: 0.6089 MB / 413.3 MB, free: 22.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.2084, allocations: 3.938 kB / 413.3 MB, free: 22.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2084, allocations: 4 kB / 413.3 MB, free: 22.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.2085, allocations: 0 / 413.3 MB, free: 22.44 MB / 298.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.001988/0.2105, allocations: 1.073 MB / 414.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.2105, allocations: 8.031 kB / 414.4 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.2106, allocations: 87.81 kB / 414.5 MB, free: 21.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007214/0.2114, allocations: 0.7509 MB / 415.2 MB, free: 20.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.2114, allocations: 384 / 415.2 MB, free: 20.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.2114, allocations: 384 / 415.2 MB, free: 20.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.2117, allocations: 129.9 kB / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.2117, allocations: 0 / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.2117, allocations: 0 / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2117, allocations: 0 / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003162/0.212, allocations: 159.8 kB / 415.5 MB, free: 20.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007787/0.2128, allocations: 0.8142 MB / 416.3 MB, free: 19.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.213, allocations: 90.52 kB / 416.4 MB, free: 19.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.2132, allocations: 80.89 kB / 416.5 MB, free: 19.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.2132, allocations: 4 kB / 416.5 MB, free: 19.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.494e-05/0.2133, allocations: 30.56 kB / 416.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.553e-06/0.2133, allocations: 3.938 kB / 416.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0007052/0.214, allocations: 340.4 kB / 416.8 MB, free: 18.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/0.214, allocations: 51.41 kB / 416.9 MB, free: 18.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.2153, allocations: 1.413 MB / 418.3 MB, free: 17.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.2153, allocations: 25.7 kB / 418.3 MB, free: 17.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.2155, allocations: 384.4 kB / 418.7 MB, free: 16.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.2156, allocations: 15.75 kB / 418.7 MB, free: 16.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.205e-05/0.2156, allocations: 0 / 418.7 MB, free: 16.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.629e-05/0.2156, allocations: 314 kB / 419 MB, free: 16.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.2158, allocations: 75.94 kB / 419.1 MB, free: 16.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.216, allocations: 90.52 kB / 419.2 MB, free: 16.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.2163, allocations: 174.3 kB / 419.4 MB, free: 16.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2163, allocations: 0 / 419.4 MB, free: 16.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005031/0.2168, allocations: 272.5 kB / 419.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.2169, allocations: 4 kB / 419.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2169, allocations: 4 kB / 419.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.2169, allocations: 0 / 419.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.2171, allocations: 24.08 kB / 419.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.2171, allocations: 0 / 419.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.2174, allocations: 11.98 kB / 419.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.2174, allocations: 4 kB / 419.7 MB, free: 15.79 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 () * 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.0002686/0.2177, allocations: 349.5 kB / 420 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.2178, allocations: 86.86 kB / 420.1 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005645/0.2184, allocations: 289.6 kB / 420.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.2184, allocations: 0 / 420.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2184, allocations: 4 kB / 420.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2184, allocations: 0 / 420.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000394/0.2188, allocations: 0.5143 MB / 420.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2188, allocations: 0 / 420.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.346e-05/0.2189, allocations: 11.98 kB / 420.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2189, allocations: 0 / 420.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.219, allocations: 4 kB / 420.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.219, allocations: 0 / 420.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.219, allocations: 4 kB / 420.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004017/0.2194, allocations: 334.8 kB / 421.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002246/0.2196, allocations: 219.9 kB / 421.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/0.2197, allocations: 4 kB / 421.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.2199, allocations: 15.98 kB / 421.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.2199, allocations: 3.984 kB / 421.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.22, allocations: 4 kB / 421.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009893/0.2209, allocations: 1.017 MB / 422.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.221, allocations: 0 / 422.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003683/0.2213, allocations: 63.94 kB / 422.6 MB, free: 12.78 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 () * 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.0001716/0.2215, allocations: 111.2 kB / 422.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003641/0.2219, allocations: 139.8 kB / 422.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2219, allocations: 0 / 422.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.2221, allocations: 59.95 kB / 422.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005765/0.2226, allocations: 107.9 kB / 423 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.2242, allocations: 1.525 MB / 424.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.2246, allocations: 1.001 MB / 425.5 MB, free: 9.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.2247, allocations: 39.44 kB / 425.5 MB, free: 9.73 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2247, allocations: 0 / 425.5 MB, free: 9.73 MB / 298.7 MB Notification: Performance of Templates: time 0.012/0.2367, allocations: 8.914 MB / 434.5 MB, free: 0.8359 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/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:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceFunctions.cpp:64:66: error: use of undeclared identifier 'WHOLEDIM' Complex__omcQ_27constructor_27_fromReal(sum_array(v_(WHOLEDIM).re_), sum_array(v_(WHOLEDIM).im_),tmp34); ^ ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceFunctions.cpp:64:103: error: use of undeclared identifier 'WHOLEDIM' Complex__omcQ_27constructor_27_fromReal(sum_array(v_(WHOLEDIM).re_), sum_array(v_(WHOLEDIM).im_),tmp34); ^ 2 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o] Error 1