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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 175.7 kB / 17.03 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.182/1.182, allocations: 223.3 MB / 241 MB, free: 11.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007766/0.0007767, allocations: 95.41 kB / 292.2 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002196/0.0002196, allocations: 7.938 kB / 351.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.176, allocations: 50.4 MB / 402.2 MB, free: 32.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001379/0.1774, allocations: 1.568 MB / 403.8 MB, free: 31.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1785, allocations: 1.118 MB / 404.9 MB, free: 29.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.019e-05/0.1786, allocations: 3.938 kB / 404.9 MB, free: 29.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007051/0.1793, allocations: 486.6 kB / 405.4 MB, free: 29.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.1794, allocations: 185.9 kB / 405.5 MB, free: 29.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.1797, allocations: 139.6 kB / 405.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.1799, allocations: 191.1 kB / 405.9 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.718e-05/0.18, allocations: 21.69 kB / 405.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.1801, allocations: 107.6 kB / 406 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.1803, allocations: 179.5 kB / 406.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.1803, allocations: 8 kB / 406.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.1805, allocations: 59.97 kB / 406.2 MB, free: 28.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.1806, allocations: 263.3 kB / 406.5 MB, free: 28.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.838e-05/0.1806, allocations: 125.3 kB / 406.6 MB, free: 28.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003345/0.181, allocations: 0.6094 MB / 407.2 MB, free: 27.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.181, allocations: 7.984 kB / 407.2 MB, free: 27.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.181, allocations: 0 / 407.2 MB, free: 27.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.181, allocations: 4 kB / 407.2 MB, free: 27.54 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.001809/0.1828, allocations: 1.073 MB / 408.3 MB, free: 26.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.1829, allocations: 8.031 kB / 408.3 MB, free: 26.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.183, allocations: 94.81 kB / 408.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006674/0.1837, allocations: 0.696 MB / 409.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.1837, allocations: 7.938 kB / 409.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.1837, allocations: 4 kB / 409.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.184, allocations: 121.6 kB / 409.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.184, allocations: 0 / 409.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.184, allocations: 0 / 409.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.184, allocations: 4 kB / 409.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002985/0.1843, allocations: 159.8 kB / 409.4 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006846/0.185, allocations: 0.8065 MB / 410.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.1852, allocations: 94.45 kB / 410.3 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.1853, allocations: 84.83 kB / 410.4 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.1854, allocations: 0 / 410.4 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.275e-05/0.1854, allocations: 30.56 kB / 410.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.1854, allocations: 0 / 410.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0006457/0.186, allocations: 352.3 kB / 410.8 MB, free: 23.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.119e-05/0.1861, allocations: 63.33 kB / 410.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.1872, allocations: 1.401 MB / 412.2 MB, free: 22.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.1872, allocations: 33.7 kB / 412.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.1874, allocations: 384.4 kB / 412.6 MB, free: 21.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.1875, allocations: 7.844 kB / 412.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.298e-06/0.1875, allocations: 7.938 kB / 412.6 MB, free: 21.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.679e-05/0.1875, allocations: 306 kB / 412.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.1877, allocations: 71.94 kB / 413 MB, free: 21.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.1878, allocations: 94.52 kB / 413.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.188, allocations: 71.95 kB / 413.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.188, allocations: 7.984 kB / 413.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004498/0.1885, allocations: 272.4 kB / 413.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.1885, allocations: 8 kB / 413.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.1885, allocations: 0 / 413.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.1885, allocations: 3.953 kB / 413.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.1887, allocations: 24.06 kB / 413.5 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.1887, allocations: 4 kB / 413.5 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.1889, allocations: 8 kB / 413.5 MB, free: 21.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.1889, allocations: 11.92 kB / 413.5 MB, free: 21.02 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.0002221/0.1891, allocations: 333.7 kB / 413.8 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.1893, allocations: 82.97 kB / 413.9 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005017/0.1898, allocations: 289.3 kB / 414.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.1898, allocations: 4 kB / 414.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1898, allocations: 3.953 kB / 414.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1898, allocations: 336 / 414.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003423/0.1902, allocations: 0.5066 MB / 414.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1902, allocations: 0 / 414.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.916e-05/0.1902, allocations: 11.98 kB / 414.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1903, allocations: 7.984 kB / 414.7 MB, free: 19.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.1903, allocations: 11.98 kB / 414.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1903, allocations: 3.938 kB / 414.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1903, allocations: 3.938 kB / 414.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003805/0.1907, allocations: 326.8 kB / 415.1 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002059/0.1909, allocations: 231.9 kB / 415.3 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.981e-05/0.191, allocations: 4 kB / 415.3 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.1911, allocations: 11.98 kB / 415.3 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.1912, allocations: 4 kB / 415.3 MB, free: 19.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-06/0.1912, allocations: 0 / 415.3 MB, free: 19.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008743/0.1921, allocations: 1.021 MB / 416.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1921, allocations: 0 / 416.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000277/0.1924, allocations: 64 kB / 416.4 MB, free: 18.01 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.000122/0.1925, allocations: 111.2 kB / 416.5 MB, free: 17.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.1928, allocations: 139.8 kB / 416.6 MB, free: 17.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1928, allocations: 0 / 416.6 MB, free: 17.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.193, allocations: 59.95 kB / 416.7 MB, free: 17.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004742/0.1935, allocations: 100.3 kB / 416.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.1948, allocations: 1.529 MB / 418.3 MB, free: 16.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.1952, allocations: 0.9972 MB / 419.3 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.76e-05/0.1953, allocations: 39.42 kB / 419.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1953, allocations: 0 / 419.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of Templates: time 0.009055/0.2043, allocations: 8.948 MB / 428.3 MB, free: 6.043 MB / 298.7 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++ -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/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