Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.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/HanserModelica 2.0.0-master/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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(HanserModelica.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",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.004933/0.004933, allocations: 170.2 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03817/0.03817, allocations: 8.799 MB / 24.65 MB, free: 4.117 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 223.2 MB / 250.7 MB, free: 6.512 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.0008452/0.0008451, allocations: 98.22 kB / 304 MB, free: 4.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003929, allocations: 19.92 kB / 367.2 MB, free: 4.867 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.235, allocations: 52.54 MB / 419.7 MB, free: 48.14 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1188/0.3539, allocations: 102.1 MB / 0.5095 GB, free: 2.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.3542, allocations: 71.97 kB / 0.5096 GB, free: 2.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.163/1.517, allocations: 368.2 MB / 0.8692 GB, free: 30.88 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.517, allocations: 0 / 0.8692 GB, free: 30.88 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005707/1.518, allocations: 227.8 kB / 0.8694 GB, free: 30.65 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.0343/1.552, allocations: 10.39 MB / 0.8796 GB, free: 20.26 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/1.552, allocations: 8.562 kB / 0.8796 GB, free: 20.25 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007569/1.56, allocations: 1.553 MB / 0.8811 GB, free: 18.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02925/1.589, allocations: 5.358 MB / 0.8863 GB, free: 13.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01753/1.607, allocations: 7.009 MB / 0.8932 GB, free: 6.324 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007947/1.607, allocations: 0.7615 MB / 0.8939 GB, free: 5.57 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004831/1.612, allocations: 1.007 MB / 0.8949 GB, free: 4.574 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04223/1.654, allocations: 17.54 MB / 0.912 GB, free: 2.711 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003847/1.655, allocations: 15.86 kB / 0.912 GB, free: 2.695 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002576/1.657, allocations: 443 kB / 0.9125 GB, free: 2.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008935/1.658, allocations: 0.8193 MB / 0.9133 GB, free: 1.445 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.283/1.941, allocations: 14.91 MB / 0.9278 GB, free: 55.08 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1003/2.042, allocations: 52.79 MB / 0.9794 GB, free: 46.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0208/2.063, allocations: 15.75 MB / 0.9948 GB, free: 33.96 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007267/2.063, allocations: 190.7 kB / 0.9949 GB, free: 33.84 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/2.064, allocations: 84.33 kB / 0.995 GB, free: 33.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=504): time 1.956e-05/2.064, allocations: 0 / 0.995 GB, free: 33.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=504): time 0.02446/2.088, allocations: 11.41 MB / 1.006 GB, free: 29.24 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.401e-05/2.088, allocations: 129.2 kB / 1.006 GB, free: 29.14 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005673/2.094, allocations: 3.108 MB / 1.009 GB, free: 28.06 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009179/2.095, allocations: 102.3 kB / 1.009 GB, free: 27.97 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002212/2.097, allocations: 4.329 MB / 1.014 GB, free: 24.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001925/2.099, allocations: 1.71 MB / 1.015 GB, free: 23.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007741/2.1, allocations: 135.4 kB / 1.015 GB, free: 23.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000484/2.1, allocations: 0.5819 MB / 1.016 GB, free: 23.03 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004702/2.105, allocations: 3.317 MB / 1.019 GB, free: 21.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005638/2.111, allocations: 5.635 MB / 1.025 GB, free: 17.78 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005958/2.117, allocations: 4.632 MB / 1.029 GB, free: 15.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.894e-05/2.117, allocations: 22.78 kB / 1.029 GB, free: 15.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.01839/2.135, allocations: 10.33 MB / 1.039 GB, free: 12.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/2.135, allocations: 36.88 kB / 1.039 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/2.135, allocations: 73 kB / 1.039 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002878/2.138, allocations: 1.062 MB / 1.041 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005727/2.144, allocations: 1.524 MB / 1.042 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/2.157, allocations: 12.63 MB / 1.054 GB, free: 3.102 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006007/2.163, allocations: 0.8494 MB / 1.055 GB, free: 2.332 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001583/2.165, allocations: 320 kB / 1.055 GB, free: 2.027 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * 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 (795): * Single equations (assignments): 783 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(4,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01369/2.178, allocations: 4.458 MB / 1.06 GB, free: 15.63 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001595/2.18, allocations: 397.5 kB / 1.06 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/2.195, allocations: 7.99 MB / 1.068 GB, free: 8.625 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009568/2.205, allocations: 6.605 MB / 1.074 GB, free: 2.973 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-05/2.205, allocations: 12 kB / 1.074 GB, free: 2.961 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.966e-05/2.205, allocations: 26.02 kB / 1.075 GB, free: 2.961 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03093/2.236, allocations: 17.52 MB / 1.092 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-05/2.236, allocations: 11.95 kB / 1.092 GB, free: 4.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003584/2.24, allocations: 0.9251 MB / 1.093 GB, free: 3.754 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002587/2.242, allocations: 0.9575 MB / 1.093 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004604/2.243, allocations: 114.5 kB / 1.094 GB, free: 2.926 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3347/2.578, allocations: 12.43 MB / 1.106 GB, free: 74.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/2.578, allocations: 12.47 kB / 1.106 GB, free: 74.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01799/2.596, allocations: 12.56 MB / 1.118 GB, free: 72.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002996/2.599, allocations: 1.125 MB / 1.119 GB, free: 72.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005364/2.599, allocations: 101 kB / 1.119 GB, free: 72.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002113/2.601, allocations: 314 kB / 1.119 GB, free: 72.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006556/2.602, allocations: 358.9 kB / 1.12 GB, free: 72.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002865/2.602, allocations: 156.8 kB / 1.12 GB, free: 72.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003273/2.606, allocations: 2.318 MB / 1.122 GB, free: 72.41 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.81e-07/2.606, allocations: 0 / 1.122 GB, free: 72.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008452/2.614, allocations: 2.672 MB / 1.125 GB, free: 72.08 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (main_e.plug_p.reference.gamma,converter_m.port_p.reference.gamma) * 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 (487): * Single equations (assignments): 475 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(4,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02152/2.636, allocations: 15.04 MB / 1.14 GB, free: 67.97 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01474/2.65, allocations: 8.686 MB / 1.148 GB, free: 67.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/2.65, allocations: 0 / 1.148 GB, free: 67.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005889/2.656, allocations: 4.265 MB / 1.152 GB, free: 66.71 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004498/2.661, allocations: 0.8017 MB / 1.153 GB, free: 66.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09466/2.755, allocations: 101.2 MB / 1.252 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0126/2.768, allocations: 7.166 MB / 1.259 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007748/2.776, allocations: 2.544 MB / 1.261 GB, free: 9.941 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007292/2.783, allocations: 3.53 MB / 1.265 GB, free: 6.977 MB / 0.5105 GB Notification: Performance of SimCode: time 7.735e-06/2.783, allocations: 0 / 1.265 GB, free: 6.977 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5208/3.304, allocations: 128.2 MB / 1.39 GB, free: 65.93 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001489/3.304, allocations: 194.3 kB / 1.39 GB, free: 65.68 MB / 0.5105 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o HanserModelica_HanserModelica_Machines_EquivalentCircuit.o HanserModelica_HanserModelica_Machines_EquivalentCircuit.c In file included from HanserModelica_HanserModelica_Machines_EquivalentCircuit.c:7: In file included from ./HanserModelica_HanserModelica_Machines_EquivalentCircuit_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 HanserModelica_HanserModelica_Machines_EquivalentCircuit.c:7: In file included from ./HanserModelica_HanserModelica_Machines_EquivalentCircuit_model.h:24: ./HanserModelica_HanserModelica_Machines_EquivalentCircuit_functions.h:424:1: error: unknown type name '_omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPower' _omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_Machines_EquivalentCircuit_functions.h:433:1: error: unknown type name '_omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPower' _omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPower omc__omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 2 errors generated. make: *** [: HanserModelica_HanserModelica_Machines_EquivalentCircuit.o] Error 1