Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",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.006522/0.006522, allocations: 171.9 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04007/0.04007, allocations: 8.797 MB / 24.65 MB, free: 4.086 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.354/1.354, allocations: 223.2 MB / 250.7 MB, free: 6.48 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.0009941/0.000994, allocations: 98.52 kB / 304 MB, free: 4 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003823, allocations: 8 kB / 367.1 MB, free: 4.855 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3254, allocations: 52.55 MB / 419.7 MB, free: 48.19 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1654/0.4909, allocations: 132.1 MB / 0.5388 GB, free: 4.883 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.4912, allocations: 89.19 kB / 0.5389 GB, free: 4.797 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.176/1.668, allocations: 354.8 MB / 0.8854 GB, free: 0.8008 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.668, allocations: 4 kB / 0.8854 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000793/1.668, allocations: 215.8 kB / 0.8856 GB, free: 0.5859 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03975/1.708, allocations: 10.02 MB / 0.8954 GB, free: 6.473 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/1.708, allocations: 8.031 kB / 0.8954 GB, free: 6.465 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008848/1.717, allocations: 1.611 MB / 0.897 GB, free: 4.84 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02719/1.744, allocations: 4.319 MB / 0.9012 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5735/2.318, allocations: 8.459 MB / 0.9094 GB, free: 41.32 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006403/2.319, allocations: 0.6908 MB / 0.9101 GB, free: 41.3 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003769/2.322, allocations: 0.9144 MB / 0.911 GB, free: 41.3 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03922/2.362, allocations: 15.99 MB / 0.9266 GB, free: 40.21 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004144/2.362, allocations: 15.03 kB / 0.9266 GB, free: 40.21 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002909/2.365, allocations: 405.5 kB / 0.927 GB, free: 40.21 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000945/2.366, allocations: 0.7545 MB / 0.9278 GB, free: 40.19 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03315/2.399, allocations: 14.08 MB / 0.9415 GB, free: 40.09 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09489/2.494, allocations: 52.59 MB / 0.9929 GB, free: 21.72 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01684/2.511, allocations: 20.1 MB / 1.012 GB, free: 5.168 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008235/2.512, allocations: 184.6 kB / 1.013 GB, free: 5.062 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.019e-05/2.512, allocations: 80.03 kB / 1.013 GB, free: 4.988 MB / 474.8 MB Notification: Performance of pre-optimization done (n=453): time 7.924e-06/2.512, allocations: 0 / 1.013 GB, free: 4.988 MB / 474.8 MB Notification: Performance of matching and sorting (n=458): time 0.0531/2.565, allocations: 20.98 MB / 1.033 GB, free: 13.58 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/2.565, allocations: 96.5 kB / 1.033 GB, free: 13.51 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007909/2.573, allocations: 3.972 MB / 1.037 GB, free: 12.05 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009871/2.574, allocations: 100.5 kB / 1.037 GB, free: 11.96 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003568/2.578, allocations: 4.202 MB / 1.041 GB, free: 8.805 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002371/2.58, allocations: 1.56 MB / 1.043 GB, free: 7.602 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006451/2.581, allocations: 124.4 kB / 1.043 GB, free: 7.504 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004959/2.581, allocations: 0.5529 MB / 1.044 GB, free: 7.09 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005303/2.587, allocations: 3.068 MB / 1.047 GB, free: 5.898 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007775/2.594, allocations: 5.186 MB / 1.052 GB, free: 1.984 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008071/2.602, allocations: 4.304 MB / 1.056 GB, free: 15.95 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-05/2.603, allocations: 16 kB / 1.056 GB, free: 15.93 MB / 0.4949 GB Notification: Performance of matching and sorting (n=800) (initialization): time 0.022/2.625, allocations: 9.851 MB / 1.065 GB, free: 7.816 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 9.1e-05/2.625, allocations: 32 kB / 1.066 GB, free: 7.785 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/2.625, allocations: 71.19 kB / 1.066 GB, free: 7.719 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004077/2.629, allocations: 1.405 MB / 1.067 GB, free: 6.633 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006055/2.635, allocations: 1.375 MB / 1.068 GB, free: 5.555 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01884/2.654, allocations: 12.01 MB / 1.08 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005776/2.66, allocations: 367.7 kB / 1.08 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001566/2.661, allocations: 295.6 kB / 1.081 GB, free: 10.42 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009647/2.671, allocations: 3.89 MB / 1.084 GB, free: 7.172 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001576/2.673, allocations: 461.8 kB / 1.085 GB, free: 6.723 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3615/3.034, allocations: 8.582 MB / 1.093 GB, free: 79.76 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01196/3.046, allocations: 6.289 MB / 1.099 GB, free: 79.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.367e-05/3.046, allocations: 12.28 kB / 1.099 GB, free: 79.59 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.189e-05/3.046, allocations: 22.31 kB / 1.099 GB, free: 79.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03874/3.085, allocations: 17.94 MB / 1.117 GB, free: 78.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.829e-05/3.085, allocations: 7.219 kB / 1.117 GB, free: 78.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004051/3.089, allocations: 0.7974 MB / 1.118 GB, free: 78.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004079/3.093, allocations: 1.266 MB / 1.119 GB, free: 78.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/3.094, allocations: 102.5 kB / 1.119 GB, free: 78.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/3.11, allocations: 10.87 MB / 1.13 GB, free: 75.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/3.11, allocations: 10.06 kB / 1.13 GB, free: 75.55 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02146/3.131, allocations: 12.03 MB / 1.141 GB, free: 73.94 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004256/3.135, allocations: 1.133 MB / 1.143 GB, free: 73.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001543/3.137, allocations: 89.97 kB / 1.143 GB, free: 73.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003669/3.141, allocations: 245.6 kB / 1.143 GB, free: 73.84 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/3.142, allocations: 325.5 kB / 1.143 GB, free: 73.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000375/3.142, allocations: 135.5 kB / 1.143 GB, free: 73.84 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005931/3.148, allocations: 3.032 MB / 1.146 GB, free: 73.66 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.11e-07/3.148, allocations: 3.062 kB / 1.146 GB, free: 73.66 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01032/3.159, allocations: 1.788 MB / 1.148 GB, free: 73.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * 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 (418): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,41.8%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02444/3.183, allocations: 14.85 MB / 1.163 GB, free: 70.05 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01422/3.197, allocations: 7.995 MB / 1.17 GB, free: 69.61 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/3.197, allocations: 0 / 1.17 GB, free: 69.61 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007733/3.205, allocations: 3.995 MB / 1.174 GB, free: 69.26 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005816/3.211, allocations: 0.9266 MB / 1.175 GB, free: 69.24 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.134/3.345, allocations: 100.2 MB / 1.273 GB, free: 8.016 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01626/3.361, allocations: 6.671 MB / 1.28 GB, free: 2.93 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.009071/3.37, allocations: 2.137 MB / 1.282 GB, free: 1.543 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3292/3.7, allocations: 3.93 MB / 1.285 GB, free: 95.97 MB / 0.5262 GB Notification: Performance of SimCode: time 1.563e-06/3.7, allocations: 0 / 1.285 GB, free: 95.97 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2189/3.919, allocations: 138.9 MB / 1.421 GB, free: 46.8 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/3.919, allocations: 240.8 kB / 1.421 GB, free: 46.56 MB / 0.5262 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_InductionMachines_IMC_withLosses.o HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.c In file included from HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_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_InductionMachines_IMC_withLosses.c:7: In file included from ./HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_model.h:24: ./HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_functions.h:1036:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensor_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensor_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensor_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_functions.h:1045:1: error: unknown type name '_omcQComplexOutput_24electricalPowerSensor_24powerSensor_24apparentPower' _omcQComplexOutput_24electricalPowerSensor_24powerSensor_24apparentPower omc__omcQComplexOutput_24electricalPowerSensor_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 2 errors generated. make: *** [: HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.o] Error 1