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.001094/0.001094, allocations: 201.1 kB / 18.11 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.5 MB / 245.4 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008056/0.0008057, allocations: 108 kB / 297.5 MB, free: 6.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002554/0.0002554, allocations: 4 kB / 358.1 MB, free: 10.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2427, allocations: 51.29 MB / 409.4 MB, free: 27.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09675/0.3395, allocations: 79.18 MB / 488.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.3398, allocations: 71.97 kB / 488.6 MB, free: 12.21 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.02978/0.3696, allocations: 13.59 MB / 0.4904 GB, free: 14.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3696, allocations: 7.938 kB / 0.4904 GB, free: 14.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.491e-05/0.3697, allocations: 12 kB / 0.4905 GB, free: 14.49 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.001984/0.3717, allocations: 1.02 MB / 0.4915 GB, free: 13.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.3717, allocations: 12.03 kB / 0.4915 GB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.3719, allocations: 83.91 kB / 0.4915 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.3733, allocations: 0.7547 MB / 0.4923 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.3733, allocations: 4.375 kB / 0.4923 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.3733, allocations: 384 / 0.4923 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.3736, allocations: 80.73 kB / 0.4924 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.3736, allocations: 192 / 0.4924 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.3736, allocations: 7.938 kB / 0.4924 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3736, allocations: 4 kB / 0.4924 GB, free: 12.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.3738, allocations: 43.95 kB / 0.4924 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.3754, allocations: 0.9535 MB / 0.4934 GB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.3755, allocations: 42.55 kB / 0.4934 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.3756, allocations: 28.91 kB / 0.4934 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.3757, allocations: 0 / 0.4934 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.3757, allocations: 34.56 kB / 0.4935 GB, free: 11.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.322e-06/0.3757, allocations: 4 kB / 0.4935 GB, free: 11.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0005644/0.3763, allocations: 176.5 kB / 0.4936 GB, free: 11.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.3763, allocations: 55.41 kB / 0.4937 GB, free: 10.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002048/0.3784, allocations: 1.413 MB / 0.4951 GB, free: 9.539 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.3784, allocations: 25.83 kB / 0.4951 GB, free: 9.508 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.3788, allocations: 400.3 kB / 0.4955 GB, free: 9.113 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.103e-06/0.3788, allocations: 0 / 0.4955 GB, free: 9.113 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/0.3788, allocations: 0 / 0.4955 GB, free: 9.113 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/0.3789, allocations: 310 kB / 0.4958 GB, free: 8.805 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.681e-05/0.379, allocations: 19.98 kB / 0.4958 GB, free: 8.785 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.414e-05/0.3791, allocations: 37.7 kB / 0.4958 GB, free: 8.742 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.3793, allocations: 65.61 kB / 0.4959 GB, free: 8.672 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3793, allocations: 0 / 0.4959 GB, free: 8.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004144/0.3797, allocations: 164.5 kB / 0.496 GB, free: 8.504 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3797, allocations: 8 kB / 0.496 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.3798, allocations: 4.062 kB / 0.496 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3798, allocations: 3.984 kB / 0.496 GB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.3799, allocations: 11.98 kB / 0.4961 GB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.3799, allocations: 4 kB / 0.4961 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.3801, allocations: 11.88 kB / 0.4961 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.3801, allocations: 4 kB / 0.4961 GB, free: 8.457 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.0003824/0.3805, allocations: 337.6 kB / 0.4964 GB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.3806, allocations: 82.97 kB / 0.4965 GB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.3808, allocations: 103.4 kB / 0.4966 GB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.3808, allocations: 0 / 0.4966 GB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3808, allocations: 0 / 0.4966 GB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3808, allocations: 0 / 0.4966 GB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004879/0.3813, allocations: 486.8 kB / 0.497 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3813, allocations: 0 / 0.497 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.855e-05/0.3814, allocations: 11.98 kB / 0.4971 GB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3814, allocations: 0 / 0.4971 GB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.3814, allocations: 4 kB / 0.4971 GB, free: 7.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3814, allocations: 0 / 0.4971 GB, free: 7.391 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3814, allocations: 3.984 kB / 0.4971 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003625/0.3818, allocations: 262.8 kB / 0.4973 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.3821, allocations: 216 kB / 0.4975 GB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.825e-05/0.3822, allocations: 7.984 kB / 0.4975 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.3823, allocations: 8 kB / 0.4975 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.3824, allocations: 7.969 kB / 0.4975 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.3824, allocations: 0 / 0.4975 GB, free: 6.859 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00125/0.3836, allocations: 1.017 MB / 0.4985 GB, free: 5.832 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3836, allocations: 0 / 0.4985 GB, free: 5.832 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003563/0.384, allocations: 84.03 kB / 0.4986 GB, free: 5.75 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.0002674/0.3843, allocations: 177.3 kB / 0.4988 GB, free: 5.582 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002394/0.3845, allocations: 55.89 kB / 0.4988 GB, free: 5.527 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3845, allocations: 0 / 0.4988 GB, free: 5.527 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.3846, allocations: 28.11 kB / 0.4989 GB, free: 5.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005805/0.3852, allocations: 92.14 kB / 0.499 GB, free: 5.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.3871, allocations: 1.426 MB / 0.5003 GB, free: 3.949 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006604/0.3878, allocations: 0.9972 MB / 0.5013 GB, free: 2.926 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003267/0.3881, allocations: 178.6 kB / 0.5015 GB, free: 2.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.253e-05/0.3882, allocations: 31.44 kB / 0.5015 GB, free: 2.719 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3882, allocations: 0 / 0.5015 GB, free: 2.719 MB / 378.7 MB Notification: Performance of Templates: time 0.2299/0.6181, allocations: 7.807 MB / 0.5091 GB, free: 93.21 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 -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_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:26: ./Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.o] Error 1