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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 180.5 kB / 16.38 MB, free: 5.762 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.374/1.374, allocations: 223.2 MB / 240.3 MB, free: 11.86 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.0008756/0.0008757, allocations: 101.9 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002614/0.0002614, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.206, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09709/0.3032, allocations: 78.37 MB / 479.9 MB, free: 2.086 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.3035, allocations: 75.95 kB / 480 MB, free: 2.012 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.03065/0.3342, allocations: 13.53 MB / 493.6 MB, free: 4.367 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3342, allocations: 0 / 493.6 MB, free: 4.367 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.065e-05/0.3343, allocations: 12 kB / 493.6 MB, free: 4.355 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.001745/0.336, allocations: 1.042 MB / 494.6 MB, free: 3.262 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.3361, allocations: 8.031 kB / 494.6 MB, free: 3.254 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.154e-05/0.3361, allocations: 34.55 kB / 494.6 MB, free: 3.211 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.3362, allocations: 78.97 kB / 494.7 MB, free: 3.133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.3374, allocations: 0.7037 MB / 495.4 MB, free: 2.375 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.3374, allocations: 8 kB / 495.4 MB, free: 2.367 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.3374, allocations: 3.938 kB / 495.4 MB, free: 2.363 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.3377, allocations: 88.12 kB / 495.5 MB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.3377, allocations: 0 / 495.5 MB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.3377, allocations: 0 / 495.5 MB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3377, allocations: 0 / 495.5 MB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.3379, allocations: 55.89 kB / 495.6 MB, free: 2.207 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.3392, allocations: 0.9497 MB / 496.5 MB, free: 1.199 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.3394, allocations: 42.5 kB / 496.6 MB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.3394, allocations: 0 / 496.6 MB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.3395, allocations: 34.62 kB / 496.6 MB, free: 1.105 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.3395, allocations: 0 / 496.6 MB, free: 1.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000509/0.34, allocations: 184.5 kB / 496.8 MB, free: 0.918 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.34, allocations: 51.41 kB / 496.8 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.3416, allocations: 1.287 MB / 498.1 MB, free: 15.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.3417, allocations: 29.83 kB / 498.2 MB, free: 15.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003437/0.342, allocations: 396.3 kB / 498.5 MB, free: 15.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.354e-06/0.342, allocations: 0 / 498.5 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-06/0.342, allocations: 0 / 498.5 MB, free: 15.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3422, allocations: 306 kB / 498.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.3423, allocations: 27.92 kB / 498.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.3424, allocations: 41.69 kB / 498.9 MB, free: 14.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.3425, allocations: 15.98 kB / 498.9 MB, free: 14.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3425, allocations: 4 kB / 498.9 MB, free: 14.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003288/0.3429, allocations: 168.6 kB / 499.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3429, allocations: 7.938 kB / 499.1 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3429, allocations: 0 / 499.1 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3429, allocations: 7.984 kB / 499.1 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.3431, allocations: 16.05 kB / 499.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.3431, allocations: 0 / 499.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.3432, allocations: 8 kB / 499.1 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.3432, allocations: 0 / 499.1 MB, free: 14.51 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.00034/0.3436, allocations: 337.7 kB / 499.5 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.3437, allocations: 86.83 kB / 499.5 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.3438, allocations: 99.39 kB / 499.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3438, allocations: 0 / 499.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.3438, allocations: 8 kB / 499.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3438, allocations: 3.938 kB / 499.7 MB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004807/0.3443, allocations: 486.9 kB / 0.4884 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3443, allocations: 0 / 0.4884 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.912e-05/0.3444, allocations: 11.98 kB / 0.4884 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3444, allocations: 3.953 kB / 0.4884 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.3444, allocations: 0 / 0.4884 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3445, allocations: 0 / 0.4884 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3445, allocations: 0 / 0.4884 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003746/0.3448, allocations: 258.9 kB / 0.4887 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003899/0.3452, allocations: 219.9 kB / 0.4889 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.869e-05/0.3453, allocations: 7.938 kB / 0.4889 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.3455, allocations: 8.031 kB / 0.4889 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.994e-05/0.3455, allocations: 7.984 kB / 0.4889 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.3455, allocations: 0 / 0.4889 GB, free: 12.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00123/0.3468, allocations: 1.017 MB / 0.4899 GB, free: 11.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3468, allocations: 0 / 0.4899 GB, free: 11.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003993/0.3472, allocations: 83.94 kB / 0.49 GB, free: 11.8 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.0008921/0.3481, allocations: 0.866 MB / 0.4908 GB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002749/0.3484, allocations: 56.02 kB / 0.4909 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3484, allocations: 0 / 0.4909 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.3485, allocations: 23.97 kB / 0.4909 GB, free: 10.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004779/0.349, allocations: 99.2 kB / 0.491 GB, free: 10.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007798/0.3568, allocations: 5.485 MB / 0.4963 GB, free: 5.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000652/0.3575, allocations: 1.009 MB / 0.4973 GB, free: 4.055 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003424/0.3578, allocations: 170.6 kB / 0.4975 GB, free: 3.883 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003058/0.3581, allocations: 255.4 kB / 0.4977 GB, free: 3.633 MB / 378.7 MB Notification: Performance of SimCode: time 4.739e-06/0.3582, allocations: 0 / 0.4977 GB, free: 3.633 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1943/0.5524, allocations: 15.97 MB / 0.5133 GB, free: 96.19 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001291/0.5526, allocations: 186.8 kB / 0.5135 GB, free: 95.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_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: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_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); ^ 2 warnings and 1 error generated. make: *** [: Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.o] Error 1