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: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 108.2 kB / 17.16 MB, free: 6.324 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.002658/0.002658, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.301/2.301, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 47.39 kB / 300.6 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1661, allocations: 49.44 MB / 350 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.006299/0.1724, allocations: 1.951 MB / 352 MB, free: 2.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003338/0.1758, allocations: 1.211 MB / 353.2 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.176, allocations: 0 / 353.2 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001717/0.1778, allocations: 0.5066 MB / 353.7 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003622/0.1783, allocations: 187.5 kB / 353.9 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006972/0.179, allocations: 171.5 kB / 354.1 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005488/0.1795, allocations: 223.1 kB / 354.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.1797, allocations: 25.67 kB / 354.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003068/0.18, allocations: 115.6 kB / 354.4 MB, free: 484 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004505/0.1805, allocations: 207.5 kB / 354.6 MB, free: 276 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.253e-05/0.1806, allocations: 8 kB / 354.6 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002726/0.1809, allocations: 63.89 kB / 354.7 MB, free: 204 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003597/0.1812, allocations: 259.3 kB / 354.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000411/0.1817, allocations: 273.9 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.1827, allocations: 0.6198 MB / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.1828, allocations: 0 / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1828, allocations: 0 / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1828, allocations: 0 / 355.8 MB, free: 15.05 MB / 302.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.004829/0.1876, allocations: 1.177 MB / 357 MB, free: 13.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.118e-05/0.1877, allocations: 8.031 kB / 357 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003438/0.1881, allocations: 91.89 kB / 357.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.1898, allocations: 0.7508 MB / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.1899, allocations: 384 / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.1899, allocations: 384 / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005292/0.1905, allocations: 125.8 kB / 358 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1905, allocations: 0 / 358 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.1905, allocations: 0 / 358 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.1906, allocations: 4 kB / 358 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007042/0.1913, allocations: 143.9 kB / 358.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.1935, allocations: 0.8142 MB / 358.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004254/0.1939, allocations: 86.47 kB / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003662/0.1943, allocations: 80.89 kB / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.1943, allocations: 0 / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.459e-05/0.1944, allocations: 30.56 kB / 359.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 2.364e-06/0.1944, allocations: 3.938 kB / 359.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.001528/0.196, allocations: 320.5 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.1961, allocations: 59.39 kB / 359.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003215/0.1993, allocations: 1.401 MB / 360.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.1994, allocations: 25.7 kB / 360.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005549/0.1999, allocations: 388.4 kB / 361.3 MB, free: 9.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.37e-05/0.2, allocations: 11.81 kB / 361.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.2001, allocations: 25.64 kB / 361.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.2003, allocations: 306 kB / 361.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000337/0.2007, allocations: 75.94 kB / 361.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003364/0.2011, allocations: 86.69 kB / 361.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007868/0.2019, allocations: 154.4 kB / 362 MB, free: 8.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2019, allocations: 4 kB / 362 MB, free: 8.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.001194/0.2031, allocations: 268.4 kB / 362.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.2031, allocations: 7.938 kB / 362.2 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.2032, allocations: 4 kB / 362.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.2032, allocations: 0 / 362.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003525/0.2036, allocations: 11.98 kB / 362.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.234e-05/0.2036, allocations: 4 kB / 362.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000485/0.2041, allocations: 16.08 kB / 362.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.2042, allocations: 4 kB / 362.3 MB, free: 8.344 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000692/0.2049, allocations: 337.6 kB / 362.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003545/0.2053, allocations: 90.86 kB / 362.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/0.2066, allocations: 277.3 kB / 363 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.2066, allocations: 4 kB / 363 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.2066, allocations: 0 / 363 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2067, allocations: 0 / 363 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.2079, allocations: 0.522 MB / 363.5 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.2079, allocations: 0 / 363.5 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.2081, allocations: 11.98 kB / 363.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.2081, allocations: 4 kB / 363.5 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.2081, allocations: 4 kB / 363.5 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.2082, allocations: 4 kB / 363.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2082, allocations: 0 / 363.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.2092, allocations: 310.9 kB / 363.8 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005856/0.2098, allocations: 224.1 kB / 364 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.21, allocations: 15.92 kB / 364.1 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000403/0.2104, allocations: 4 kB / 364.1 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.439e-05/0.2105, allocations: 7.969 kB / 364.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.2106, allocations: 7.938 kB / 364.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002562/0.2131, allocations: 1.013 MB / 365.1 MB, free: 5.418 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2132, allocations: 0 / 365.1 MB, free: 5.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007285/0.2139, allocations: 64 kB / 365.1 MB, free: 5.355 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003358/0.2143, allocations: 115.2 kB / 365.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007919/0.2151, allocations: 127.9 kB / 365.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.2151, allocations: 0 / 365.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000345/0.2154, allocations: 47.91 kB / 365.4 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.2167, allocations: 108.3 kB / 365.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.221, allocations: 1.579 MB / 367.1 MB, free: 3.336 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/0.2223, allocations: 0.9972 MB / 368.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.2226, allocations: 39.44 kB / 368.2 MB, free: 2.277 MB / 302.1 MB Notification: Performance of SimCode: time 2.394e-06/0.2226, allocations: 4 kB / 368.2 MB, free: 2.273 MB / 302.1 MB Notification: Performance of Templates: time 0.2744/0.497, allocations: 9.015 MB / 377.2 MB, free: 23.27 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile clang++ -std=c++14 -fopenmp=libomp -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp In file included from OMCppModelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp:28: ./OMCppModelica_4.0.0_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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o] Error 1