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.001296/0.001296, allocations: 181.3 kB / 16.39 MB, free: 5.766 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.348/1.348, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.000914/0.000914, allocations: 99.09 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002845/0.0002846, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.264, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1096/0.3736, allocations: 78.37 MB / 479.9 MB, free: 2.117 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.3739, allocations: 87.88 kB / 479.9 MB, free: 2.031 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.03096/0.4049, allocations: 13.51 MB / 493.5 MB, free: 4.406 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.405, allocations: 0 / 493.5 MB, free: 4.406 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.366e-05/0.405, allocations: 8 kB / 493.5 MB, free: 4.398 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.001729/0.4067, allocations: 1.038 MB / 494.5 MB, free: 3.309 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.4068, allocations: 8.031 kB / 494.5 MB, free: 3.301 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.4069, allocations: 82.97 kB / 494.6 MB, free: 3.219 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.4081, allocations: 0.7076 MB / 495.3 MB, free: 2.457 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.4081, allocations: 0 / 495.3 MB, free: 2.457 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.4081, allocations: 7.984 kB / 495.3 MB, free: 2.449 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/0.4084, allocations: 88.12 kB / 495.4 MB, free: 2.348 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.4084, allocations: 0 / 495.4 MB, free: 2.348 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.4084, allocations: 0 / 495.4 MB, free: 2.348 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.4084, allocations: 7.938 kB / 495.4 MB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.4086, allocations: 55.89 kB / 495.5 MB, free: 2.285 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.41, allocations: 0.9459 MB / 496.4 MB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.4101, allocations: 38.55 kB / 496.4 MB, free: 1.234 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.4102, allocations: 64 / 496.4 MB, free: 1.234 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.4102, allocations: 38.5 kB / 496.5 MB, free: 1.188 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.4102, allocations: 4 kB / 496.5 MB, free: 1.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0005198/0.4107, allocations: 172.5 kB / 496.7 MB, free: 1.008 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.4108, allocations: 55.53 kB / 496.7 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.4126, allocations: 1.295 MB / 498 MB, free: 15.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.4127, allocations: 25.7 kB / 498 MB, free: 15.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003694/0.4131, allocations: 392.4 kB / 498.4 MB, free: 15.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.4131, allocations: 3.906 kB / 498.4 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.558e-06/0.4131, allocations: 0 / 498.4 MB, free: 15.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4132, allocations: 310 kB / 498.7 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.4134, allocations: 27.98 kB / 498.7 MB, free: 14.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.4135, allocations: 33.64 kB / 498.8 MB, free: 14.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.4136, allocations: 32.03 kB / 498.8 MB, free: 14.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.4136, allocations: 0 / 498.8 MB, free: 14.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003571/0.414, allocations: 156.6 kB / 499 MB, free: 14.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.414, allocations: 4 kB / 499 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.414, allocations: 4 kB / 499 MB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.4141, allocations: 4.062 kB / 499 MB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.4142, allocations: 15.92 kB / 499 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.4142, allocations: 0 / 499 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.4144, allocations: 11.98 kB / 499 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.4144, allocations: 0 / 499 MB, free: 14.6 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.0004304/0.4148, allocations: 337.7 kB / 499.3 MB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.415, allocations: 94.81 kB / 499.4 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.4151, allocations: 99.39 kB / 499.5 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.4151, allocations: 4 kB / 499.5 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.4151, allocations: 0 / 499.5 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.4151, allocations: 0 / 499.5 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005656/0.4157, allocations: 482.9 kB / 500 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4157, allocations: 0 / 500 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.091e-05/0.4158, allocations: 11.98 kB / 0.4883 GB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.4158, allocations: 7.891 kB / 0.4883 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.4158, allocations: 0 / 0.4883 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.4159, allocations: 4 kB / 0.4883 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4159, allocations: 0 / 0.4883 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004391/0.4163, allocations: 254.9 kB / 0.4885 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004008/0.4167, allocations: 219.9 kB / 0.4888 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.948e-05/0.4168, allocations: 3.953 kB / 0.4888 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.4169, allocations: 15.98 kB / 0.4888 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.417, allocations: 0 / 0.4888 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.417, allocations: 0 / 0.4888 GB, free: 13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00127/0.4183, allocations: 1.017 MB / 0.4898 GB, free: 11.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4183, allocations: 0 / 0.4898 GB, free: 11.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004064/0.4187, allocations: 83.92 kB / 0.4898 GB, free: 11.89 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.0003241/0.419, allocations: 180.6 kB / 0.49 GB, free: 11.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002816/0.4193, allocations: 55.95 kB / 0.4901 GB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4193, allocations: 0 / 0.4901 GB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.4195, allocations: 24.05 kB / 0.4901 GB, free: 11.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.42, allocations: 104.2 kB / 0.4902 GB, free: 11.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.4221, allocations: 1.422 MB / 0.4916 GB, free: 10.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006337/0.4227, allocations: 1.005 MB / 0.4926 GB, free: 9.047 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000335/0.4231, allocations: 174.6 kB / 0.4927 GB, free: 8.871 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.174e-05/0.4232, allocations: 43.42 kB / 0.4928 GB, free: 8.828 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/0.4232, allocations: 0 / 0.4928 GB, free: 8.828 MB / 378.7 MB Notification: Performance of Templates: time 0.01644/0.4396, allocations: 7.83 MB / 0.5004 GB, free: 1.039 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 -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_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:24: ./Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.o] Error 1