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.001202/0.001202, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 226.5 MB / 245.4 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008227/0.0008226, allocations: 99.27 kB / 297.4 MB, free: 6.859 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002232/0.0002233, allocations: 8 kB / 357.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1916, allocations: 51.28 MB / 408.6 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08406/0.2757, allocations: 79.18 MB / 487.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001696/0.2759, allocations: 71.97 kB / 487.9 MB, free: 12.34 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. Notification: Performance of FrontEnd - DAE generated: time 0.02847/0.3044, allocations: 13.59 MB / 0.4897 GB, free: 14.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3044, allocations: 0 / 0.4897 GB, free: 14.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.717e-05/0.3044, allocations: 8 kB / 0.4897 GB, free: 14.64 MB / 378.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.00133/0.3058, allocations: 1.035 MB / 0.4908 GB, free: 13.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.3058, allocations: 8.031 kB / 0.4908 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.045e-05/0.3059, allocations: 79.91 kB / 0.4908 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008993/0.3068, allocations: 0.7508 MB / 0.4916 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.3068, allocations: 4.375 kB / 0.4916 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.3069, allocations: 384 / 0.4916 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.3071, allocations: 88.73 kB / 0.4917 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3071, allocations: 4.125 kB / 0.4917 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.3071, allocations: 3.938 kB / 0.4917 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.3071, allocations: 0 / 0.4917 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.3073, allocations: 51.95 kB / 0.4917 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.3084, allocations: 0.9574 MB / 0.4927 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/0.3085, allocations: 42.53 kB / 0.4927 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.3086, allocations: 32.91 kB / 0.4927 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.3086, allocations: 0 / 0.4927 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.3087, allocations: 38.56 kB / 0.4928 GB, free: 11.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3087, allocations: 0 / 0.4928 GB, free: 11.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0004685/0.3091, allocations: 176.6 kB / 0.4929 GB, free: 11.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.3092, allocations: 55.39 kB / 0.493 GB, free: 11.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0015/0.3107, allocations: 1.413 MB / 0.4944 GB, free: 9.664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.3107, allocations: 25.7 kB / 0.4944 GB, free: 9.633 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002891/0.311, allocations: 388.4 kB / 0.4948 GB, free: 9.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.584e-06/0.311, allocations: 4 kB / 0.4948 GB, free: 9.246 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-06/0.311, allocations: 0 / 0.4948 GB, free: 9.246 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.899e-05/0.3111, allocations: 314 kB / 0.4951 GB, free: 8.934 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.904e-05/0.3112, allocations: 20.02 kB / 0.4951 GB, free: 8.914 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.552e-05/0.3113, allocations: 33.7 kB / 0.4951 GB, free: 8.875 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.3115, allocations: 65.61 kB / 0.4952 GB, free: 8.805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3115, allocations: 0 / 0.4952 GB, free: 8.805 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002956/0.3118, allocations: 164.5 kB / 0.4953 GB, free: 8.637 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.3119, allocations: 4 kB / 0.4953 GB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3119, allocations: 0 / 0.4953 GB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3119, allocations: 7.938 kB / 0.4953 GB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.644e-05/0.312, allocations: 15.98 kB / 0.4954 GB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.312, allocations: 3.984 kB / 0.4954 GB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.3121, allocations: 19.94 kB / 0.4954 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.3122, allocations: 0 / 0.4954 GB, free: 8.586 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0002897/0.3124, allocations: 341.6 kB / 0.4957 GB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.655e-05/0.3125, allocations: 78.97 kB / 0.4958 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.3127, allocations: 99.39 kB / 0.4959 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3127, allocations: 0 / 0.4959 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3127, allocations: 0 / 0.4959 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3127, allocations: 4 kB / 0.4959 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004176/0.3131, allocations: 486.8 kB / 0.4963 GB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3131, allocations: 4 kB / 0.4964 GB, free: 7.531 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.181e-05/0.3132, allocations: 7.984 kB / 0.4964 GB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3132, allocations: 4 kB / 0.4964 GB, free: 7.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.3132, allocations: 0 / 0.4964 GB, free: 7.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3132, allocations: 3.938 kB / 0.4964 GB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3132, allocations: 0 / 0.4964 GB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.3136, allocations: 266.8 kB / 0.4966 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002519/0.3138, allocations: 216 kB / 0.4968 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.965e-05/0.3139, allocations: 0 / 0.4968 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.3141, allocations: 7.984 kB / 0.4968 GB, free: 7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.095e-05/0.3141, allocations: 8.031 kB / 0.4968 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.3141, allocations: 3.984 kB / 0.4968 GB, free: 6.988 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001174/0.3153, allocations: 1.017 MB / 0.4978 GB, free: 5.961 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3153, allocations: 0 / 0.4978 GB, free: 5.961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003544/0.3157, allocations: 76 kB / 0.4979 GB, free: 5.887 MB / 378.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 (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0002333/0.3159, allocations: 173.6 kB / 0.4981 GB, free: 5.719 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002435/0.3162, allocations: 52.02 kB / 0.4981 GB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3162, allocations: 0 / 0.4981 GB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.3163, allocations: 23.92 kB / 0.4982 GB, free: 5.645 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005728/0.3169, allocations: 112.2 kB / 0.4983 GB, free: 5.535 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.3187, allocations: 1.489 MB / 0.4997 GB, free: 4.008 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.3193, allocations: 0.9972 MB / 0.5007 GB, free: 2.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.57e-05/0.3194, allocations: 39.42 kB / 0.5007 GB, free: 2.945 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3194, allocations: 0 / 0.5007 GB, free: 2.945 MB / 378.7 MB Notification: Performance of Templates: time 0.1646/0.484, allocations: 8.471 MB / 0.509 GB, free: 92.24 MB / 378.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/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_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:15: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceTypes.h:64:9: error: unknown type name '_omcQComplexOutput_24impedance_24zType' typedef _omcQComplexOutput_24impedance_24zType _omcQComplexOutput_24impedance_24zRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceFunctions.h:16:85: error: unknown type name '_omcQComplexOutput_24impedance_24zType' void /*RecordTypetest*/ _omcQComplexOutput_24impedance_24z(double re_, double im_,_omcQComplexOutput_24impedance_24zType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceFunctions.cpp:33:76: error: unknown type name '_omcQComplexOutput_24impedance_24zType' void Functions::_omcQComplexOutput_24impedance_24z(double re_, double im_, _omcQComplexOutput_24impedance_24zType& output) ^ 3 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o] Error 1