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.0009457/0.0009457, allocations: 198.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.6 MB / 244.4 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007087/0.0007087, allocations: 96.91 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002002/0.0002002, allocations: 4 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2069, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001655/0.2086, allocations: 1.574 MB / 409.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.2097, allocations: 1.144 MB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.249e-05/0.2098, allocations: 7.938 kB / 410.2 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007375/0.2105, allocations: 490.3 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001587/0.2107, allocations: 183.5 kB / 410.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002882/0.211, allocations: 131.6 kB / 411 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.2112, allocations: 199 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.648e-05/0.2113, allocations: 19.56 kB / 411.2 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.2115, allocations: 115.6 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.2116, allocations: 183.5 kB / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.2117, allocations: 8 kB / 411.5 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.2118, allocations: 55.97 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.2119, allocations: 263.3 kB / 411.8 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.296e-05/0.212, allocations: 125.3 kB / 412 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003556/0.2124, allocations: 0.6089 MB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2124, allocations: 0 / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2124, allocations: 0 / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.2124, allocations: 0 / 412.6 MB, free: 22.75 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.001924/0.2143, allocations: 1.089 MB / 413.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.2144, allocations: 8.031 kB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.2145, allocations: 86.88 kB / 413.7 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000736/0.2153, allocations: 0.6999 MB / 414.4 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.2153, allocations: 7.875 kB / 414.5 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/0.2153, allocations: 0 / 414.5 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002432/0.2156, allocations: 133.5 kB / 414.6 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.2156, allocations: 0 / 414.6 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.2156, allocations: 4 kB / 414.6 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2156, allocations: 0 / 414.6 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003136/0.2159, allocations: 155.9 kB / 414.7 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007214/0.2167, allocations: 0.8104 MB / 415.5 MB, free: 19.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.2169, allocations: 94.45 kB / 415.6 MB, free: 19.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.217, allocations: 76.89 kB / 415.7 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.217, allocations: 4 kB / 415.7 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.259e-05/0.2171, allocations: 34.56 kB / 415.8 MB, free: 19.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.2171, allocations: 0 / 415.8 MB, free: 19.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0006797/0.2178, allocations: 340.4 kB / 416.1 MB, free: 19.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.252e-05/0.2178, allocations: 55.34 kB / 416.1 MB, free: 18.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.219, allocations: 1.413 MB / 417.6 MB, free: 17.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.219, allocations: 25.7 kB / 417.6 MB, free: 17.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.2192, allocations: 380.4 kB / 417.9 MB, free: 17.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.2192, allocations: 15.83 kB / 418 MB, free: 17.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-06/0.2193, allocations: 0 / 418 MB, free: 17.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.723e-05/0.2193, allocations: 310 kB / 418.3 MB, free: 16.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.2195, allocations: 75.94 kB / 418.3 MB, free: 16.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.2196, allocations: 86.53 kB / 418.4 MB, free: 16.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.2198, allocations: 75.94 kB / 418.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2198, allocations: 0 / 418.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004711/0.2203, allocations: 284.4 kB / 418.8 MB, free: 16.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.2203, allocations: 4 kB / 418.8 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2203, allocations: 4 kB / 418.8 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.2203, allocations: 0 / 418.8 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.2205, allocations: 15.98 kB / 418.8 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.2205, allocations: 0 / 418.8 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001911/0.2207, allocations: 23.95 kB / 418.8 MB, free: 16.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.2207, allocations: 4 kB / 418.8 MB, free: 16.23 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.0002417/0.221, allocations: 337.7 kB / 419.2 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.2211, allocations: 102.8 kB / 419.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005227/0.2217, allocations: 281.6 kB / 419.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2217, allocations: 0 / 419.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2217, allocations: 4 kB / 419.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.2217, allocations: 0 / 419.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003684/0.2221, allocations: 0.5144 MB / 420.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.2221, allocations: 0 / 420.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.303e-05/0.2222, allocations: 11.98 kB / 420.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.2222, allocations: 7.953 kB / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.2222, allocations: 0 / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2222, allocations: 7.938 kB / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2222, allocations: 0 / 420.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004303/0.2226, allocations: 330.8 kB / 420.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/0.2229, allocations: 223.9 kB / 420.6 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.924e-05/0.2229, allocations: 7.938 kB / 420.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.2231, allocations: 8 kB / 420.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.762e-05/0.2232, allocations: 7.984 kB / 420.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.2232, allocations: 8 kB / 420.7 MB, free: 14.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009048/0.2241, allocations: 1.013 MB / 421.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2241, allocations: 0 / 421.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000292/0.2244, allocations: 64 kB / 421.7 MB, free: 13.21 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.0001605/0.2246, allocations: 103.2 kB / 421.8 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.2249, allocations: 135.8 kB / 422 MB, free: 12.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.225, allocations: 0 / 422 MB, free: 12.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.2251, allocations: 64.14 kB / 422 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.2256, allocations: 99.05 kB / 422.1 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.2271, allocations: 1.529 MB / 423.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.2275, allocations: 1.001 MB / 424.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.2277, allocations: 47.36 kB / 424.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2277, allocations: 0 / 424.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of Templates: time 0.009992/0.2377, allocations: 8.935 MB / 433.6 MB, free: 1.254 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++ -Winvalid-pch -O0 -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/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: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