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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000775/0.000775, allocations: 94.81 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000194/0.0001941, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2119, allocations: 51.29 MB / 408.1 MB, free: 27.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001365/0.2133, allocations: 1.588 MB / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.2144, allocations: 1.151 MB / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.41e-05/0.2145, allocations: 0 / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006945/0.2152, allocations: 488.8 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2153, allocations: 187.5 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.2156, allocations: 135.6 kB / 411.7 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001862/0.2158, allocations: 211 kB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.963e-05/0.2159, allocations: 17.69 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.216, allocations: 115.6 kB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.2162, allocations: 187.5 kB / 412.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.2162, allocations: 4 kB / 412.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.2164, allocations: 55.97 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.2165, allocations: 263.3 kB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.2166, allocations: 279.9 kB / 412.8 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003369/0.217, allocations: 0.613 MB / 413.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.217, allocations: 0 / 413.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.217, allocations: 0 / 413.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.217, allocations: 0 / 413.4 MB, free: 22.33 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.00186/0.2189, allocations: 1.073 MB / 414.4 MB, free: 21.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.2189, allocations: 8.031 kB / 414.5 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.73e-05/0.219, allocations: 34.75 kB / 414.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.2191, allocations: 95.78 kB / 414.6 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006666/0.2198, allocations: 0.7353 MB / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.2198, allocations: 4.375 kB / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.2198, allocations: 384 / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002484/0.2201, allocations: 129.7 kB / 415.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2201, allocations: 0 / 415.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.2201, allocations: 3.938 kB / 415.5 MB, free: 20.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.2201, allocations: 0 / 415.5 MB, free: 20.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.2204, allocations: 163.9 kB / 415.6 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007116/0.2211, allocations: 0.8103 MB / 416.4 MB, free: 19.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.2213, allocations: 90.52 kB / 416.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.2215, allocations: 88.83 kB / 416.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.2215, allocations: 0 / 416.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.388e-05/0.2216, allocations: 34.5 kB / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.2216, allocations: 0 / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0006904/0.2223, allocations: 340.5 kB / 417 MB, free: 18.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.714e-05/0.2223, allocations: 55.39 kB / 417 MB, free: 18.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.2235, allocations: 1.405 MB / 418.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/0.2235, allocations: 29.7 kB / 418.5 MB, free: 17.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.2237, allocations: 384.4 kB / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.2238, allocations: 15.75 kB / 418.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.051e-05/0.2238, allocations: 4 kB / 418.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.282e-05/0.2238, allocations: 313.9 kB / 419.2 MB, free: 16.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.224, allocations: 71.94 kB / 419.2 MB, free: 16.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.2241, allocations: 98.45 kB / 419.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.2245, allocations: 166.5 kB / 419.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2245, allocations: 0 / 419.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004837/0.225, allocations: 276.5 kB / 419.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.225, allocations: 4 kB / 419.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.225, allocations: 0 / 419.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.225, allocations: 8.094 kB / 419.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.2252, allocations: 19.92 kB / 419.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.2252, allocations: 0 / 419.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.2254, allocations: 15.92 kB / 419.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.2254, allocations: 4 kB / 419.8 MB, free: 15.63 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.0002499/0.2257, allocations: 341.6 kB / 420.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.2258, allocations: 94.86 kB / 420.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005457/0.2264, allocations: 285.6 kB / 420.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2264, allocations: 4 kB / 420.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2264, allocations: 0 / 420.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2264, allocations: 0 / 420.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003579/0.2268, allocations: 0.5143 MB / 421 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2268, allocations: 4 kB / 421 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.74e-05/0.2269, allocations: 15.92 kB / 421 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2269, allocations: 0 / 421 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.2269, allocations: 8 kB / 421.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2269, allocations: 0 / 421.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2269, allocations: 0 / 421.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004067/0.2273, allocations: 330.9 kB / 421.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.2275, allocations: 219.9 kB / 421.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.949e-05/0.2276, allocations: 7.984 kB / 421.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.2278, allocations: 8 kB / 421.6 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.345e-05/0.2278, allocations: 3.984 kB / 421.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.2279, allocations: 7.938 kB / 421.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009089/0.2288, allocations: 1.017 MB / 422.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2288, allocations: 0 / 422.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000293/0.2291, allocations: 64 kB / 422.7 MB, free: 12.62 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.0006067/0.2297, allocations: 0.8792 MB / 423.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000339/0.23, allocations: 144 kB / 423.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2301, allocations: 0 / 423.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.2302, allocations: 55.95 kB / 423.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005318/0.2308, allocations: 99.17 kB / 423.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007148/0.2379, allocations: 5.813 MB / 429.7 MB, free: 5.441 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.2383, allocations: 1.005 MB / 430.7 MB, free: 4.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.2386, allocations: 247.4 kB / 430.9 MB, free: 4.168 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2386, allocations: 0 / 430.9 MB, free: 4.168 MB / 298.7 MB Error: Error building simulator. Build log: clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -I"." -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:28: ./OMCppModelica_trunk_cpp_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_cpp_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); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_ShowImpedanceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_ShowImpedanceFMU.cpp:11: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:37: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.h:44: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h:65:56: warning: returning reference to local temporary object [-Wreturn-stack-address] virtual const string& getVariableFilter() { return "";} ^~ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_ShowImpedanceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_ShowImpedanceFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 2 warnings and 2 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_ShowImpedanceCalcHelperMain.o] Error 1