Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001258/0.001258, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 8.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 60.45 kB / 306.9 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09412/0.09536, allocations: 50.53 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003444/0.09883, allocations: 1.963 MB / 359.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1007, allocations: 1.234 MB / 360.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/0.1008, allocations: 0 / 360.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.1019, allocations: 0.5066 MB / 361.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002557/0.1022, allocations: 183.5 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.1026, allocations: 163.4 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002886/0.1029, allocations: 235.1 kB / 361.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.482e-05/0.103, allocations: 13.69 kB / 361.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.1032, allocations: 123.5 kB / 361.8 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002416/0.1034, allocations: 207.5 kB / 362 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.1035, allocations: 8 kB / 362 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.1036, allocations: 55.95 kB / 362.1 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.1038, allocations: 263.3 kB / 362.4 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.104, allocations: 265.9 kB / 362.6 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004999/0.1045, allocations: 0.6159 MB / 363.2 MB, free: 8.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1046, allocations: 4 kB / 363.2 MB, free: 8.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.1046, allocations: 4 kB / 363.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.1046, allocations: 0 / 363.2 MB, free: 8.422 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.002505/0.1071, allocations: 1.174 MB / 364.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.1071, allocations: 12.03 kB / 364.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.1073, allocations: 95.77 kB / 364.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000926/0.1083, allocations: 0.7469 MB / 365.3 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.1083, allocations: 4.375 kB / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.1083, allocations: 384 / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.1086, allocations: 121.9 kB / 365.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.1086, allocations: 0 / 365.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.1086, allocations: 0 / 365.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1086, allocations: 0 / 365.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003519/0.109, allocations: 151.8 kB / 365.5 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.11, allocations: 0.8103 MB / 366.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002474/0.1103, allocations: 86.52 kB / 366.4 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.1105, allocations: 64.91 kB / 366.5 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.1105, allocations: 11.98 kB / 366.5 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.1105, allocations: 34.56 kB / 366.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1105, allocations: 3.938 kB / 366.5 MB, free: 4.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007732/0.1113, allocations: 320.5 kB / 366.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.1113, allocations: 51.41 kB / 366.9 MB, free: 4.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/0.113, allocations: 1.413 MB / 368.3 MB, free: 3.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.113, allocations: 25.7 kB / 368.3 MB, free: 3.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.1133, allocations: 380.4 kB / 368.7 MB, free: 2.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/0.1133, allocations: 11.81 kB / 368.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.576e-05/0.1134, allocations: 21.7 kB / 368.7 MB, free: 2.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.292e-05/0.1135, allocations: 310 kB / 369.1 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.1137, allocations: 63.94 kB / 369.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.1139, allocations: 94.52 kB / 369.2 MB, free: 2.199 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.1142, allocations: 158.3 kB / 369.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1142, allocations: 0 / 369.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005416/0.1148, allocations: 264.5 kB / 369.6 MB, free: 1.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.1148, allocations: 4 kB / 369.6 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1148, allocations: 4 kB / 369.6 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.1148, allocations: 3.938 kB / 369.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.115, allocations: 15.97 kB / 369.6 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.115, allocations: 7.938 kB / 369.7 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.1152, allocations: 4 kB / 369.7 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.1153, allocations: 12.08 kB / 369.7 MB, free: 1.719 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.0003955/0.1157, allocations: 341.6 kB / 370 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.1158, allocations: 86.88 kB / 370.1 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005804/0.1164, allocations: 273.3 kB / 370.4 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1164, allocations: 336 / 370.4 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1164, allocations: 4 kB / 370.4 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1164, allocations: 0 / 370.4 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004851/0.1169, allocations: 0.522 MB / 370.9 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.117, allocations: 3.938 kB / 370.9 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.273e-05/0.117, allocations: 11.98 kB / 370.9 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.1171, allocations: 0 / 370.9 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.1171, allocations: 7.938 kB / 370.9 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1171, allocations: 4 kB / 370.9 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1171, allocations: 0 / 370.9 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004661/0.1176, allocations: 314.8 kB / 371.2 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1455/0.2631, allocations: 216.7 kB / 371.4 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.2633, allocations: 2.438 kB / 371.4 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002759/0.2635, allocations: 12.25 kB / 371.4 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.116e-05/0.2636, allocations: 4.266 kB / 371.4 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2636, allocations: 2.828 kB / 371.4 MB, free: 20.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001672/0.2653, allocations: 1.016 MB / 372.5 MB, free: 20.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2653, allocations: 0.75 kB / 372.5 MB, free: 20.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004443/0.2658, allocations: 60.64 kB / 372.5 MB, free: 20.3 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.0001805/0.266, allocations: 112.3 kB / 372.6 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004136/0.2664, allocations: 124.7 kB / 372.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2664, allocations: 6.641 kB / 372.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.2666, allocations: 56.41 kB / 372.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/0.2672, allocations: 97.75 kB / 372.9 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.2694, allocations: 1.587 MB / 374.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.2699, allocations: 0.9998 MB / 375.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.27, allocations: 37.67 kB / 375.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.27, allocations: 0 / 375.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01471/0.2847, allocations: 9.008 MB / 384.5 MB, free: 16.25 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile make -j1 -f Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp In file included from OMCppModelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedanceCalcHelperMain.o] Error 1