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: 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/Complex trunk/package.mo): time 0.001034/0.001034, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 227.2 MB / 245 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008716/0.0008716, allocations: 104.8 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002134/0.0002134, allocations: 11.98 kB / 357.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.19, allocations: 51.48 MB / 409.4 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08999/0.2801, allocations: 79.17 MB / 488.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.2803, allocations: 79.95 kB / 488.7 MB, free: 11.34 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.02805/0.3084, allocations: 13.49 MB / 0.4904 GB, free: 13.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.3084, allocations: 0 / 0.4904 GB, free: 13.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.909e-05/0.3084, allocations: 8 kB / 0.4904 GB, free: 13.73 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.00146/0.3099, allocations: 1.042 MB / 0.4914 GB, free: 12.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3099, allocations: 8.688 kB / 0.4914 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.31, allocations: 78.97 kB / 0.4915 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009883/0.311, allocations: 0.7114 MB / 0.4922 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.3111, allocations: 4 kB / 0.4922 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.3111, allocations: 7.984 kB / 0.4922 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.3113, allocations: 80.66 kB / 0.4923 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3113, allocations: 0 / 0.4923 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.3113, allocations: 3.938 kB / 0.4923 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.3113, allocations: 0 / 0.4923 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.3116, allocations: 55.89 kB / 0.4923 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.3127, allocations: 0.9497 MB / 0.4933 GB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.3128, allocations: 42.55 kB / 0.4933 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.3129, allocations: 0 / 0.4933 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.3129, allocations: 38.5 kB / 0.4933 GB, free: 10.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3129, allocations: 0 / 0.4933 GB, free: 10.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0004677/0.3134, allocations: 172.6 kB / 0.4935 GB, free: 10.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.3134, allocations: 55.53 kB / 0.4935 GB, free: 10.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00145/0.3149, allocations: 1.291 MB / 0.4948 GB, free: 8.969 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.3149, allocations: 29.7 kB / 0.4948 GB, free: 8.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003008/0.3152, allocations: 388.3 kB / 0.4952 GB, free: 8.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.103e-06/0.3152, allocations: 4 kB / 0.4952 GB, free: 8.547 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-06/0.3152, allocations: 0 / 0.4952 GB, free: 8.547 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3154, allocations: 313.9 kB / 0.4955 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.3155, allocations: 27.97 kB / 0.4955 GB, free: 8.207 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.3156, allocations: 29.7 kB / 0.4956 GB, free: 8.172 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.98e-05/0.3157, allocations: 31.98 kB / 0.4956 GB, free: 8.141 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3157, allocations: 0 / 0.4956 GB, free: 8.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003112/0.316, allocations: 152.6 kB / 0.4957 GB, free: 7.984 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.316, allocations: 10.5 kB / 0.4957 GB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.316, allocations: 8.047 kB / 0.4958 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3161, allocations: 0 / 0.4958 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.269e-05/0.3162, allocations: 11.94 kB / 0.4958 GB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.3162, allocations: 3.984 kB / 0.4958 GB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.3163, allocations: 8 kB / 0.4958 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3163, allocations: 0 / 0.4958 GB, free: 7.945 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.0002957/0.3166, allocations: 345.6 kB / 0.4961 GB, free: 7.598 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.3167, allocations: 86.88 kB / 0.4962 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.3168, allocations: 107.3 kB / 0.4963 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-06/0.3168, allocations: 0 / 0.4963 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.3169, allocations: 0 / 0.4963 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.3169, allocations: 0 / 0.4963 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004409/0.3173, allocations: 486.8 kB / 0.4968 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3173, allocations: 0 / 0.4968 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.166e-05/0.3174, allocations: 15.98 kB / 0.4968 GB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.3174, allocations: 0 / 0.4968 GB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/0.3174, allocations: 4 kB / 0.4968 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3174, allocations: 0 / 0.4968 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3174, allocations: 0 / 0.4968 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003349/0.3178, allocations: 254.9 kB / 0.497 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.3181, allocations: 227.9 kB / 0.4972 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.161e-05/0.3182, allocations: 0 / 0.4972 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.3184, allocations: 7.984 kB / 0.4972 GB, free: 6.344 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.552e-05/0.3184, allocations: 8 kB / 0.4973 GB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.3184, allocations: 0 / 0.4973 GB, free: 6.336 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001122/0.3195, allocations: 1.017 MB / 0.4982 GB, free: 5.309 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3195, allocations: 0 / 0.4982 GB, free: 5.309 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003434/0.3199, allocations: 76 kB / 0.4983 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.0001971/0.3201, allocations: 177.5 kB / 0.4985 GB, free: 5.062 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002463/0.3203, allocations: 51.95 kB / 0.4985 GB, free: 5.012 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3204, allocations: 0 / 0.4985 GB, free: 5.012 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.3205, allocations: 32.05 kB / 0.4986 GB, free: 4.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.3209, allocations: 96.16 kB / 0.4987 GB, free: 4.883 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.3227, allocations: 1.422 MB / 0.5 GB, free: 3.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005871/0.3233, allocations: 1.013 MB / 0.501 GB, free: 2.387 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002827/0.3235, allocations: 170.6 kB / 0.5012 GB, free: 2.215 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.377e-05/0.3236, allocations: 39.38 kB / 0.5012 GB, free: 2.176 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3236, allocations: 0 / 0.5012 GB, free: 2.176 MB / 378.7 MB Notification: Performance of Templates: time 0.1533/0.4769, allocations: 7.796 MB / 0.5089 GB, free: 92.99 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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: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); ^ 1 error generated. make: *** [: Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.o] Error 1