Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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/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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_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.00155/0.00155, allocations: 179.3 kB / 16.38 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.403/1.403, allocations: 223.2 MB / 240.3 MB, free: 10.17 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.0009838/0.000984, allocations: 90.02 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002649/0.0002649, allocations: 8 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2637, allocations: 50.42 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3859/0.6497, allocations: 133.4 MB / 0.5224 GB, free: 92.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/0.6501, allocations: 104.2 kB / 0.5225 GB, free: 92.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.196/1.847, allocations: 352.2 MB / 0.8665 GB, free: 52.75 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.847, allocations: 0 / 0.8665 GB, free: 52.75 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006345/1.847, allocations: 222 kB / 0.8667 GB, free: 52.73 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.03383/1.881, allocations: 10.01 MB / 0.8765 GB, free: 49.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/1.881, allocations: 11.5 kB / 0.8765 GB, free: 49.6 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007756/1.889, allocations: 1.618 MB / 0.878 GB, free: 49.46 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02466/1.914, allocations: 4.31 MB / 0.8823 GB, free: 48.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02094/1.935, allocations: 8.447 MB / 0.8905 GB, free: 47.91 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007993/1.935, allocations: 0.6937 MB / 0.8912 GB, free: 47.89 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004335/1.94, allocations: 0.9064 MB / 0.8921 GB, free: 47.88 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04088/1.981, allocations: 15.99 MB / 0.9077 GB, free: 46.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000418/1.981, allocations: 22.8 kB / 0.9077 GB, free: 46.76 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003613/1.985, allocations: 402.2 kB / 0.9081 GB, free: 46.76 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009541/1.986, allocations: 0.7471 MB / 0.9088 GB, free: 46.74 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03153/2.017, allocations: 14.08 MB / 0.9226 GB, free: 41.18 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09776/2.115, allocations: 52.59 MB / 0.9739 GB, free: 4.055 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02519/2.14, allocations: 20.32 MB / 0.9938 GB, free: 104 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3112/2.452, allocations: 181.8 kB / 0.9939 GB, free: 67.09 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.404e-05/2.452, allocations: 78.38 kB / 0.994 GB, free: 67.05 MB / 474.7 MB Notification: Performance of pre-optimization done (n=453): time 8.356e-06/2.452, allocations: 4.266 kB / 0.994 GB, free: 67.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=458): time 0.04947/2.501, allocations: 20.69 MB / 1.014 GB, free: 65.05 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.607e-05/2.501, allocations: 108 kB / 1.014 GB, free: 64.99 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007623/2.509, allocations: 3.964 MB / 1.018 GB, free: 64.66 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001087/2.51, allocations: 102 kB / 1.018 GB, free: 64.63 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003284/2.513, allocations: 4.189 MB / 1.022 GB, free: 62.65 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002459/2.516, allocations: 1.555 MB / 1.024 GB, free: 61.67 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005609/2.517, allocations: 124.3 kB / 1.024 GB, free: 61.67 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004348/2.517, allocations: 0.5586 MB / 1.025 GB, free: 61.35 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005171/2.522, allocations: 3.071 MB / 1.028 GB, free: 61.34 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008684/2.531, allocations: 5.192 MB / 1.033 GB, free: 58.81 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007591/2.539, allocations: 4.264 MB / 1.037 GB, free: 58.77 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001277/2.539, allocations: 20.69 kB / 1.037 GB, free: 58.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02277/2.561, allocations: 9.856 MB / 1.046 GB, free: 58.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002415/2.562, allocations: 38.06 kB / 1.046 GB, free: 58.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002701/2.562, allocations: 67.22 kB / 1.047 GB, free: 58.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004321/2.566, allocations: 1.394 MB / 1.048 GB, free: 58.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006144/2.573, allocations: 1.375 MB / 1.049 GB, free: 58.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01796/2.591, allocations: 11.97 MB / 1.061 GB, free: 55.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007346/2.598, allocations: 361.4 kB / 1.061 GB, free: 55.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002346/2.6, allocations: 297.5 kB / 1.062 GB, free: 55.34 MB / 474.7 MB 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.014/2.614, allocations: 3.881 MB / 1.065 GB, free: 53.84 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002639/2.617, allocations: 463 kB / 1.066 GB, free: 53.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02093/2.638, allocations: 8.576 MB / 1.074 GB, free: 50.11 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01112/2.649, allocations: 6.282 MB / 1.08 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.265e-05/2.649, allocations: 14.88 kB / 1.08 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.027e-05/2.649, allocations: 20.72 kB / 1.08 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04474/2.694, allocations: 17.94 MB / 1.098 GB, free: 40.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.901e-05/2.694, allocations: 6.125 kB / 1.098 GB, free: 40.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003901/2.698, allocations: 0.7929 MB / 1.099 GB, free: 40.17 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003718/2.702, allocations: 1.274 MB / 1.1 GB, free: 39.91 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001105/2.703, allocations: 99.19 kB / 1.1 GB, free: 39.85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/2.718, allocations: 10.88 MB / 1.111 GB, free: 33.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.718e-06/2.718, allocations: 9.5 kB / 1.111 GB, free: 33.09 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02222/2.74, allocations: 12.02 MB / 1.122 GB, free: 22.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004362/2.745, allocations: 1.136 MB / 1.123 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002074/2.747, allocations: 91.66 kB / 1.124 GB, free: 21.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003913/2.751, allocations: 245.4 kB / 1.124 GB, free: 21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001288/2.752, allocations: 330.2 kB / 1.124 GB, free: 20.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008308/2.753, allocations: 133.3 kB / 1.124 GB, free: 20.67 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006832/2.76, allocations: 3.032 MB / 1.127 GB, free: 18.14 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.01e-07/2.76, allocations: 0 / 1.127 GB, free: 18.14 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01049/2.77, allocations: 1.79 MB / 1.129 GB, free: 16.37 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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.02318/2.793, allocations: 14.87 MB / 1.143 GB, free: 3.148 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02303/2.817, allocations: 8.543 MB / 1.152 GB, free: 13.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/2.817, allocations: 4.5 kB / 1.152 GB, free: 13.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009494/2.826, allocations: 3.997 MB / 1.156 GB, free: 10.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006911/2.833, allocations: 0.93 MB / 1.157 GB, free: 9.359 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4496/3.283, allocations: 100.2 MB / 1.254 GB, free: 29.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01086/3.294, allocations: 6.679 MB / 1.261 GB, free: 28.47 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006874/3.301, allocations: 2.133 MB / 1.263 GB, free: 28.37 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00701/3.308, allocations: 3.568 MB / 1.267 GB, free: 28.36 MB / 0.4948 GB Notification: Performance of SimCode: time 1.143e-06/3.308, allocations: 0 / 1.267 GB, free: 28.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5621/3.87, allocations: 139.3 MB / 1.403 GB, free: 69.51 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/3.87, allocations: 298.9 kB / 1.403 GB, free: 69.16 MB / 0.4948 GB 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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_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 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_functions.h:1053:1: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_functions.h:1062:1: error: unknown type name '_omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 2 errors generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.o] Error 1