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.0008984/0.0008988, allocations: 94.56 kB / 17.31 MB, free: 5.656 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.0009631/0.0009631, allocations: 179.9 kB / 18.21 MB, free: 5.25 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.283/1.283, allocations: 223.3 MB / 242.3 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002264/0.0002264, allocations: 14.34 kB / 302.1 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07591/0.07615, allocations: 50.41 MB / 352.5 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001852/0.07803, allocations: 1.603 MB / 354.1 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.07959, allocations: 1.191 MB / 355.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.878e-05/0.0797, allocations: 7.938 kB / 355.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009179/0.08062, allocations: 0.4989 MB / 355.8 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002182/0.08086, allocations: 183.6 kB / 356 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003847/0.08125, allocations: 159.5 kB / 356.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002836/0.08155, allocations: 230.5 kB / 356.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.824e-05/0.08164, allocations: 25.67 kB / 356.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.08182, allocations: 115.6 kB / 356.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.08208, allocations: 207.5 kB / 356.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.08212, allocations: 4 kB / 356.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.08226, allocations: 67.89 kB / 356.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.08245, allocations: 263.2 kB / 357 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002141/0.08268, allocations: 299.6 kB / 357.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004959/0.08318, allocations: 0.6001 MB / 357.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.08319, allocations: 3.938 kB / 357.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.0832, allocations: 0 / 357.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.08321, allocations: 0 / 357.9 MB, free: 13.98 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.002273/0.08549, allocations: 1.073 MB / 359 MB, free: 12.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.08554, allocations: 16.03 kB / 359 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.08572, allocations: 83.89 kB / 359.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009028/0.08663, allocations: 0.7469 MB / 359.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.08665, allocations: 384 / 359.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.08668, allocations: 4.375 kB / 359.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.08697, allocations: 125.8 kB / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.08699, allocations: 0 / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.08701, allocations: 0 / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.08703, allocations: 8 kB / 360 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/0.08741, allocations: 151.9 kB / 360.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009317/0.08835, allocations: 0.8182 MB / 360.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.08858, allocations: 90.56 kB / 361 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.08878, allocations: 80.8 kB / 361.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.0888, allocations: 0 / 361.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.08883, allocations: 34.56 kB / 361.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 2.245e-06/0.08884, allocations: 4 kB / 361.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008159/0.08967, allocations: 348.3 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.08971, allocations: 59.34 kB / 361.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001631/0.09134, allocations: 1.401 MB / 362.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.09137, allocations: 29.64 kB / 363 MB, free: 8.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002987/0.09168, allocations: 384.4 kB / 363.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.09171, allocations: 7.891 kB / 363.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.09175, allocations: 17.72 kB / 363.4 MB, free: 8.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.913e-05/0.09184, allocations: 306 kB / 363.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.09203, allocations: 79.94 kB / 363.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.09223, allocations: 82.53 kB / 363.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.09261, allocations: 178.3 kB / 364 MB, free: 7.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.09263, allocations: 0 / 364 MB, free: 7.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005875/0.09322, allocations: 272.5 kB / 364.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.09324, allocations: 4 kB / 364.3 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.09326, allocations: 4 kB / 364.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.09327, allocations: 3.984 kB / 364.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001891/0.09347, allocations: 15.98 kB / 364.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.09348, allocations: 0 / 364.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.0937, allocations: 20.27 kB / 364.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.09373, allocations: 8 kB / 364.3 MB, free: 7.305 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.0003251/0.09406, allocations: 337.6 kB / 364.7 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.09424, allocations: 82.95 kB / 364.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006444/0.09489, allocations: 293.2 kB / 365 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.0949, allocations: 0 / 365 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.09491, allocations: 4 kB / 365 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.09492, allocations: 4 kB / 365 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005058/0.09543, allocations: 0.5104 MB / 365.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.09545, allocations: 0 / 365.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.499e-05/0.09555, allocations: 15.97 kB / 365.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.09556, allocations: 0 / 365.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.09558, allocations: 8 kB / 365.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.09558, allocations: 0 / 365.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.09559, allocations: 0 / 365.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005076/0.0961, allocations: 326.8 kB / 365.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/0.09638, allocations: 224 kB / 366.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.775e-05/0.09645, allocations: 0 / 366.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.09667, allocations: 19.92 kB / 366.1 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.09672, allocations: 3.938 kB / 366.1 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.09674, allocations: 11.98 kB / 366.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001229/0.09797, allocations: 1.013 MB / 367.2 MB, free: 4.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09798, allocations: 0 / 367.2 MB, free: 4.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003446/0.09833, allocations: 60 kB / 367.2 MB, free: 4.305 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.0001472/0.09848, allocations: 123.2 kB / 367.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003876/0.09888, allocations: 127.8 kB / 367.5 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.09889, allocations: 4 kB / 367.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.09908, allocations: 64.17 kB / 367.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005866/0.09968, allocations: 104.2 kB / 367.6 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.1016, allocations: 1.607 MB / 369.2 MB, free: 2.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005488/0.1022, allocations: 0.9972 MB / 370.2 MB, free: 1.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.1023, allocations: 39.44 kB / 370.3 MB, free: 1.172 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1023, allocations: 0 / 370.3 MB, free: 1.172 MB / 302.1 MB Notification: Performance of Templates: time 0.1459/0.2482, allocations: 8.926 MB / 379.2 MB, free: 22.21 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