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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002073/0.002073, allocations: 180.6 kB / 17.4 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 223.3 MB / 241.4 MB, free: 11.72 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008466/0.0008465, allocations: 99.19 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003017/0.0003018, allocations: 8 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2635, allocations: 50.41 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1029/0.3664, allocations: 78.41 MB / 481.2 MB, free: 1.934 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.3667, allocations: 75.95 kB / 481.2 MB, free: 1.859 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.03137/0.3981, allocations: 13.52 MB / 494.8 MB, free: 4.227 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3981, allocations: 0 / 494.8 MB, free: 4.227 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.379e-05/0.3982, allocations: 15.98 kB / 494.8 MB, free: 4.211 MB / 362.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.001857/0.4001, allocations: 1.031 MB / 495.8 MB, free: 3.125 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.4001, allocations: 8.031 kB / 495.8 MB, free: 3.117 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001455/0.4003, allocations: 79.91 kB / 495.9 MB, free: 3.039 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.4014, allocations: 0.7509 MB / 496.6 MB, free: 2.234 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.4014, allocations: 8.375 kB / 496.6 MB, free: 2.227 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.4014, allocations: 384 / 496.6 MB, free: 2.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.4016, allocations: 80.8 kB / 496.7 MB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.4017, allocations: 8.125 kB / 496.7 MB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.4017, allocations: 7.875 kB / 496.7 MB, free: 2.117 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.4017, allocations: 0 / 496.7 MB, free: 2.117 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.4019, allocations: 51.95 kB / 496.8 MB, free: 2.066 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.4031, allocations: 0.9574 MB / 497.7 MB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.4032, allocations: 30.56 kB / 497.8 MB, free: 1.012 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.937e-05/0.4033, allocations: 36.89 kB / 497.8 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.4033, allocations: 0 / 497.8 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.4034, allocations: 34.56 kB / 497.8 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.4034, allocations: 0 / 497.8 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0004821/0.4038, allocations: 184.5 kB / 498 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.4039, allocations: 51.41 kB / 498.1 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/0.4056, allocations: 1.421 MB / 499.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.4057, allocations: 25.7 kB / 499.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003515/0.406, allocations: 388.3 kB / 499.9 MB, free: 14.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.989e-06/0.406, allocations: 8.125 kB / 499.9 MB, free: 14.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.406, allocations: 0 / 499.9 MB, free: 14.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.4062, allocations: 306 kB / 0.4885 GB, free: 14.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.4063, allocations: 19.98 kB / 0.4885 GB, free: 14.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.4064, allocations: 41.69 kB / 0.4885 GB, free: 14.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.4066, allocations: 61.56 kB / 0.4886 GB, free: 14.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4066, allocations: 4.062 kB / 0.4886 GB, free: 14.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000326/0.4069, allocations: 160.5 kB / 0.4888 GB, free: 14.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.407, allocations: 4 kB / 0.4888 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.407, allocations: 4 kB / 0.4888 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.407, allocations: 3.938 kB / 0.4888 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.523e-05/0.4071, allocations: 16.05 kB / 0.4888 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.4071, allocations: 0 / 0.4888 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.4073, allocations: 11.98 kB / 0.4888 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.4073, allocations: 0 / 0.4888 GB, free: 14.17 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.0003329/0.4076, allocations: 341.6 kB / 0.4891 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.4078, allocations: 78.97 kB / 0.4892 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.4079, allocations: 103.4 kB / 0.4893 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.4079, allocations: 8 kB / 0.4893 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.4079, allocations: 0 / 0.4893 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.4079, allocations: 0 / 0.4893 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005014/0.4084, allocations: 482.8 kB / 0.4898 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4084, allocations: 3.938 kB / 0.4898 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.302e-05/0.4085, allocations: 11.98 kB / 0.4898 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.4085, allocations: 0 / 0.4898 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.4086, allocations: 3.984 kB / 0.4898 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.4086, allocations: 0 / 0.4898 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4086, allocations: 4 kB / 0.4898 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003722/0.409, allocations: 254.8 kB / 0.49 GB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003141/0.4093, allocations: 220 kB / 0.4902 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.142e-05/0.4094, allocations: 4.031 kB / 0.4902 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.4095, allocations: 8 kB / 0.4903 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.276e-05/0.4096, allocations: 7.984 kB / 0.4903 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.4096, allocations: 0 / 0.4903 GB, free: 12.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001608/0.4112, allocations: 1.013 MB / 0.4912 GB, free: 11.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4112, allocations: 0 / 0.4912 GB, free: 11.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005481/0.4118, allocations: 83.94 kB / 0.4913 GB, free: 11.47 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.0003391/0.4121, allocations: 177.5 kB / 0.4915 GB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002728/0.4124, allocations: 51.95 kB / 0.4915 GB, free: 11.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4124, allocations: 4 kB / 0.4916 GB, free: 11.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.503e-05/0.4125, allocations: 23.91 kB / 0.4916 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006949/0.4132, allocations: 100.4 kB / 0.4917 GB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.4154, allocations: 1.426 MB / 0.4931 GB, free: 9.656 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006528/0.4161, allocations: 0.9933 MB / 0.494 GB, free: 8.641 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003522/0.4165, allocations: 170.6 kB / 0.4942 GB, free: 8.473 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.341e-05/0.4166, allocations: 39.42 kB / 0.4942 GB, free: 8.434 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4166, allocations: 3.938 kB / 0.4942 GB, free: 8.43 MB / 378.7 MB Notification: Performance of Templates: time 0.01599/0.4326, allocations: 7.82 MB / 0.5019 GB, free: 0.6523 MB / 378.7 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 -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.o Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.c In file included from Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.c:7: In file included from ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_model.h:26: ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_functions.h:204: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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.o] Error 1