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/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_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_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.0009817/0.0009818, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 227.2 MB / 245 MB, free: 7.652 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008941/0.0008941, allocations: 105.6 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002268, allocations: 4 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1831, allocations: 51.48 MB / 409.5 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0911/0.2743, allocations: 79.17 MB / 488.7 MB, free: 11.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001848/0.2745, allocations: 79.95 kB / 488.7 MB, free: 11.38 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.02892/0.3034, allocations: 13.5 MB / 0.4905 GB, free: 13.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3034, allocations: 0 / 0.4905 GB, free: 13.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.697e-05/0.3035, allocations: 8 kB / 0.4905 GB, free: 13.77 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.001648/0.3051, allocations: 1.038 MB / 0.4915 GB, free: 12.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3052, allocations: 12.03 kB / 0.4915 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.941e-05/0.3052, allocations: 34.56 kB / 0.4915 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.3054, allocations: 78.97 kB / 0.4916 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.3065, allocations: 0.7114 MB / 0.4923 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.3065, allocations: 0 / 0.4923 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.3065, allocations: 0 / 0.4923 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.3067, allocations: 88.64 kB / 0.4924 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.3067, allocations: 0 / 0.4924 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.3067, allocations: 0 / 0.4924 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.3067, allocations: 4 kB / 0.4924 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002238/0.307, allocations: 43.91 kB / 0.4924 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.3082, allocations: 0.9574 MB / 0.4934 GB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.3083, allocations: 34.56 kB / 0.4934 GB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.3083, allocations: 8.062 kB / 0.4934 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.3084, allocations: 34.5 kB / 0.4934 GB, free: 10.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.3084, allocations: 0 / 0.4934 GB, free: 10.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000485/0.3089, allocations: 172.6 kB / 0.4936 GB, free: 10.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.3089, allocations: 51.41 kB / 0.4937 GB, free: 10.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00152/0.3104, allocations: 1.295 MB / 0.4949 GB, free: 8.977 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.3104, allocations: 25.7 kB / 0.4949 GB, free: 8.945 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.3108, allocations: 400.5 kB / 0.4953 GB, free: 8.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.442e-06/0.3108, allocations: 0 / 0.4953 GB, free: 8.551 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.3108, allocations: 0 / 0.4953 GB, free: 8.551 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.3109, allocations: 317.9 kB / 0.4956 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.311, allocations: 23.98 kB / 0.4957 GB, free: 8.211 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.3112, allocations: 37.64 kB / 0.4957 GB, free: 8.168 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001018/0.3113, allocations: 23.97 kB / 0.4957 GB, free: 8.145 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3113, allocations: 0 / 0.4957 GB, free: 8.145 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003265/0.3116, allocations: 160.7 kB / 0.4959 GB, free: 7.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.3116, allocations: 4 kB / 0.4959 GB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.3116, allocations: 0 / 0.4959 GB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.3117, allocations: 3.938 kB / 0.4959 GB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.258e-05/0.3118, allocations: 15.98 kB / 0.4959 GB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.3118, allocations: 0 / 0.4959 GB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.3119, allocations: 8.062 kB / 0.4959 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.3119, allocations: 11.92 kB / 0.4959 GB, free: 7.938 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.0003071/0.3122, allocations: 337.7 kB / 0.4962 GB, free: 7.598 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.548e-05/0.3123, allocations: 86.88 kB / 0.4963 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.3125, allocations: 99.39 kB / 0.4964 GB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3125, allocations: 0 / 0.4964 GB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3125, allocations: 0 / 0.4964 GB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3125, allocations: 3.984 kB / 0.4964 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.3129, allocations: 486.8 kB / 0.4969 GB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.313, allocations: 4 kB / 0.4969 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.278e-05/0.313, allocations: 11.98 kB / 0.4969 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.313, allocations: 0 / 0.4969 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.3131, allocations: 0 / 0.4969 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3131, allocations: 4 kB / 0.4969 GB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3131, allocations: 0 / 0.4969 GB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003467/0.3134, allocations: 258.9 kB / 0.4971 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003632/0.3138, allocations: 215.9 kB / 0.4973 GB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.3139, allocations: 0 / 0.4973 GB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.314, allocations: 12.02 kB / 0.4974 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.3141, allocations: 8 kB / 0.4974 GB, free: 6.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.3141, allocations: 3.984 kB / 0.4974 GB, free: 6.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001241/0.3153, allocations: 1.013 MB / 0.4984 GB, free: 5.316 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3153, allocations: 0 / 0.4984 GB, free: 5.316 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003391/0.3157, allocations: 84 kB / 0.4984 GB, free: 5.234 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.0007431/0.3164, allocations: 0.8736 MB / 0.4993 GB, free: 4.344 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002323/0.3167, allocations: 43.91 kB / 0.4993 GB, free: 4.301 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3167, allocations: 4.125 kB / 0.4993 GB, free: 4.297 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.3168, allocations: 27.97 kB / 0.4994 GB, free: 4.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.3172, allocations: 96.28 kB / 0.4995 GB, free: 4.172 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.152/0.4692, allocations: 5.47 MB / 0.5048 GB, free: 94.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.4697, allocations: 1.011 MB / 0.5058 GB, free: 93.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003377/0.4701, allocations: 172.8 kB / 0.506 GB, free: 93.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/0.4703, allocations: 254.5 kB / 0.5062 GB, free: 93.44 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.4703, allocations: 0 / 0.5062 GB, free: 93.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02444/0.4948, allocations: 15.94 MB / 0.5218 GB, free: 86.19 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/0.495, allocations: 183.1 kB / 0.5219 GB, free: 85.95 MB / 378.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.o Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.c In file included from Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.c:7: In file included from ./Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.c:7: In file included from ./Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance_model.h:24: ./Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance_functions.h:214:1: error: unknown type name '_omcQComplexOutput_24impedance_24z' _omcQComplexOutput_24impedance_24z omc__omcQComplexOutput_24impedance_24z (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 1 error generated. make: *** [: Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.o] Error 1