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.001214/0.001214, allocations: 110.5 kB / 17.28 MB, free: 6.195 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.001252/0.001252, allocations: 193.3 kB / 18.21 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 241.9 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 53.77 kB / 300.8 MB, free: 5.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09752/0.09876, allocations: 49.45 MB / 350.2 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003636/0.1024, allocations: 1.951 MB / 352.2 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.1045, allocations: 1.203 MB / 353.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.1047, allocations: 4 kB / 353.4 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.1059, allocations: 0.5028 MB / 353.9 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002624/0.1062, allocations: 183.5 kB / 354.1 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004798/0.1067, allocations: 163.5 kB / 354.2 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.1071, allocations: 235.1 kB / 354.5 MB, free: 276 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.395e-05/0.1072, allocations: 21.67 kB / 354.5 MB, free: 252 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.1075, allocations: 123.6 kB / 354.6 MB, free: 128 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003462/0.1078, allocations: 223.4 kB / 354.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.1079, allocations: 8 kB / 354.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000163/0.108, allocations: 59.97 kB / 354.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.1082, allocations: 259.3 kB / 355.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002641/0.1085, allocations: 285.9 kB / 355.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000608/0.1091, allocations: 0.6198 MB / 356 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1091, allocations: 4 kB / 356 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1092, allocations: 0 / 356 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.1092, allocations: 0 / 356 MB, free: 14.68 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.00289/0.1121, allocations: 1.188 MB / 357.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1121, allocations: 8.031 kB / 357.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002063/0.1123, allocations: 91.83 kB / 357.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.1134, allocations: 0.7391 MB / 358.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.1135, allocations: 384 / 358.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/0.1135, allocations: 8.375 kB / 358.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002844/0.1138, allocations: 117.9 kB / 358.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.1138, allocations: 4 kB / 358.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.1138, allocations: 0 / 358.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1138, allocations: 0 / 358.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003516/0.1142, allocations: 143.9 kB / 358.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1153, allocations: 0.8219 MB / 359.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.1156, allocations: 82.53 kB / 359.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/0.1158, allocations: 76.89 kB / 359.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.1158, allocations: 4 kB / 359.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.1159, allocations: 34.5 kB / 359.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1159, allocations: 0 / 359.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000871/0.1167, allocations: 336.4 kB / 359.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.1168, allocations: 51.41 kB / 359.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.1187, allocations: 1.405 MB / 361.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.1187, allocations: 29.7 kB / 361.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003027/0.119, allocations: 380.4 kB / 361.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.832e-05/0.119, allocations: 11.81 kB / 361.5 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.862e-05/0.1191, allocations: 21.7 kB / 361.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1193, allocations: 310 kB / 361.9 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.1195, allocations: 67.94 kB / 361.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.1197, allocations: 86.52 kB / 362 MB, free: 8.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/0.12, allocations: 166.3 kB / 362.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.12, allocations: 0 / 362.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006346/0.1207, allocations: 264.5 kB / 362.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.1207, allocations: 4 kB / 362.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1207, allocations: 0 / 362.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1207, allocations: 0 / 362.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.121, allocations: 24.02 kB / 362.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.121, allocations: 0 / 362.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.1212, allocations: 11.98 kB / 362.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.1213, allocations: 0 / 362.5 MB, free: 7.973 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.0003702/0.1216, allocations: 345.6 kB / 362.8 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.1218, allocations: 87.16 kB / 362.9 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006488/0.1225, allocations: 277.2 kB / 363.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1225, allocations: 0 / 363.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1225, allocations: 0 / 363.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1225, allocations: 3.984 kB / 363.2 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006072/0.1231, allocations: 0.5182 MB / 363.7 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.1232, allocations: 4 kB / 363.7 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.249e-05/0.1233, allocations: 11.98 kB / 363.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1233, allocations: 0 / 363.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.1233, allocations: 0 / 363.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1233, allocations: 0 / 363.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1233, allocations: 0 / 363.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005834/0.1239, allocations: 326.8 kB / 364 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003131/0.1242, allocations: 231.9 kB / 364.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.63e-05/0.1243, allocations: 0 / 364.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.1245, allocations: 12 kB / 364.3 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.1246, allocations: 7.984 kB / 364.3 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.1246, allocations: 0 / 364.3 MB, free: 6.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001311/0.1259, allocations: 1.013 MB / 365.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1259, allocations: 0 / 365.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003737/0.1263, allocations: 60 kB / 365.4 MB, free: 4.988 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.0002082/0.1265, allocations: 123.2 kB / 365.5 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.1269, allocations: 123.8 kB / 365.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1269, allocations: 0 / 365.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.1271, allocations: 60.14 kB / 365.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006467/0.1278, allocations: 108.2 kB / 365.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.13, allocations: 1.585 MB / 367.3 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006464/0.1307, allocations: 0.993 MB / 368.3 MB, free: 1.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.1308, allocations: 47.42 kB / 368.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1308, allocations: 0 / 368.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of Templates: time 0.1729/0.3037, allocations: 9.03 MB / 377.4 MB, free: 23.98 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