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.IMS_Characteristics.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.IMS_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",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.001399/0.001399, allocations: 183.4 kB / 16.39 MB, free: 5.742 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.387/1.387, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0009903/0.0009906, allocations: 89.72 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002882/0.0002881, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2801, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3796/0.6597, allocations: 131.7 MB / 0.5208 GB, free: 94.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003027/0.6601, allocations: 103.1 kB / 0.5209 GB, free: 94.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.29/1.951, allocations: 379.6 MB / 0.8916 GB, free: 50.22 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.951, allocations: 3.75 kB / 0.8916 GB, free: 50.22 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001308/1.952, allocations: 244.8 kB / 0.8919 GB, free: 50.19 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: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04784/2, allocations: 10.69 MB / 0.9023 GB, free: 46.88 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/2, allocations: 7.094 kB / 0.9023 GB, free: 46.88 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01118/2.011, allocations: 1.797 MB / 0.9041 GB, free: 46.74 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03541/2.047, allocations: 5.67 MB / 0.9096 GB, free: 46.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0255/2.072, allocations: 8.958 MB / 0.9184 GB, free: 44.79 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001051/2.073, allocations: 0.7736 MB / 0.9191 GB, free: 44.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005537/2.079, allocations: 1.009 MB / 0.9201 GB, free: 44.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05566/2.134, allocations: 18.05 MB / 0.9377 GB, free: 38.22 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006214/2.135, allocations: 15.38 kB / 0.9377 GB, free: 38.21 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005923/2.141, allocations: 450 kB / 0.9382 GB, free: 37.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001409/2.142, allocations: 0.867 MB / 0.939 GB, free: 37.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04164/2.184, allocations: 16.34 MB / 0.955 GB, free: 23.43 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5176/2.702, allocations: 58.44 MB / 1.012 GB, free: 40.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03314/2.735, allocations: 37.31 MB / 1.048 GB, free: 42.27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008776/2.736, allocations: 181.2 kB / 1.049 GB, free: 42.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.856e-05/2.736, allocations: 87.73 kB / 1.049 GB, free: 42.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=524): time 7.244e-06/2.736, allocations: 2.219 kB / 1.049 GB, free: 42.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=530): time 0.04971/2.786, allocations: 21.84 MB / 1.07 GB, free: 39.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/2.786, allocations: 109.3 kB / 1.07 GB, free: 39.67 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006199/2.792, allocations: 3.588 MB / 1.074 GB, free: 39.35 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001206/2.793, allocations: 114.1 kB / 1.074 GB, free: 39.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003213/2.796, allocations: 4.503 MB / 1.078 GB, free: 36.97 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003407/2.8, allocations: 1.8 MB / 1.08 GB, free: 35.84 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006946/2.801, allocations: 142.2 kB / 1.08 GB, free: 35.84 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006184/2.801, allocations: 0.5979 MB / 1.081 GB, free: 35.52 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00533/2.807, allocations: 3.471 MB / 1.084 GB, free: 35.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006263/2.813, allocations: 5.898 MB / 1.09 GB, free: 32.62 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007074/2.82, allocations: 4.805 MB / 1.095 GB, free: 32.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.987e-05/2.82, allocations: 22.09 kB / 1.095 GB, free: 32.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=917) (initialization): time 0.02021/2.84, allocations: 11 MB / 1.105 GB, free: 31.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.754e-05/2.84, allocations: 41.62 kB / 1.105 GB, free: 31.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001639/2.841, allocations: 78.25 kB / 1.105 GB, free: 31.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003266/2.844, allocations: 1.404 MB / 1.107 GB, free: 31.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00678/2.851, allocations: 1.603 MB / 1.108 GB, free: 31.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01821/2.869, allocations: 10.94 MB / 1.119 GB, free: 30.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007386/2.876, allocations: 414.7 kB / 1.119 GB, free: 30.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002088/2.878, allocations: 336.5 kB / 1.12 GB, free: 30.29 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 356 * 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 (844): * Single equations (assignments): 839 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.3%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.011/2.89, allocations: 4.168 MB / 1.124 GB, free: 28.48 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002005/2.892, allocations: 477.2 kB / 1.124 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01855/2.91, allocations: 8.565 MB / 1.133 GB, free: 24.74 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01284/2.923, allocations: 7.12 MB / 1.14 GB, free: 21.97 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.136e-05/2.923, allocations: 10.28 kB / 1.14 GB, free: 21.97 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.614e-05/2.923, allocations: 32.66 kB / 1.14 GB, free: 21.97 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03902/2.962, allocations: 19.85 MB / 1.159 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/2.962, allocations: 4 kB / 1.159 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004074/2.966, allocations: 0.931 MB / 1.16 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003155/2.969, allocations: 1.215 MB / 1.161 GB, free: 11.67 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001024/2.971, allocations: 110.8 kB / 1.161 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01473/2.985, allocations: 9.499 MB / 1.17 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/2.985, allocations: 4.938 kB / 1.17 GB, free: 3.281 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02536/3.011, allocations: 12.51 MB / 1.183 GB, free: 8.238 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004984/3.016, allocations: 1.164 MB / 1.184 GB, free: 7.184 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002031/3.018, allocations: 96 kB / 1.184 GB, free: 7.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00433/3.022, allocations: 285.4 kB / 1.184 GB, free: 6.887 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001444/3.024, allocations: 350.2 kB / 1.185 GB, free: 6.668 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008803/3.025, allocations: 148.8 kB / 1.185 GB, free: 6.531 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007181/3.032, allocations: 2.689 MB / 1.187 GB, free: 4.293 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.41e-07/3.032, allocations: 0 / 1.187 GB, free: 4.293 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01234/3.044, allocations: 1.972 MB / 1.189 GB, free: 2.332 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_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 (502): * Single equations (assignments): 497 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3929/3.437, allocations: 14.43 MB / 1.203 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01913/3.456, allocations: 8.797 MB / 1.212 GB, free: 102 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/3.456, allocations: 0 / 1.212 GB, free: 102 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009335/3.466, allocations: 4.209 MB / 1.216 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006974/3.473, allocations: 1.004 MB / 1.217 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1583/3.631, allocations: 109.5 MB / 1.324 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01919/3.65, allocations: 7.19 MB / 1.331 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01074/3.661, allocations: 2.333 MB / 1.333 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00986/3.671, allocations: 3.874 MB / 1.337 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of SimCode: time 2.094e-06/3.671, allocations: 0 / 1.337 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5689/4.24, allocations: 147.5 MB / 1.481 GB, free: 95.86 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/4.24, allocations: 263.1 kB / 1.481 GB, free: 95.5 MB / 0.5105 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_IMS_Characteristics.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics_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_IMS_Characteristics.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics_functions.h:1122:1: error: unknown type name '_omcQComplexOutput_24iSensorQS_24currentSensor_24i' _omcQComplexOutput_24iSensorQS_24currentSensor_24i omc__omcQComplexOutput_24iSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics_functions.h:1131:1: error: unknown type name '_omcQComplexOutput_24pSensorQS_24powerSensor_24apparentPower' _omcQComplexOutput_24pSensorQS_24powerSensor_24apparentPower omc__omcQComplexOutput_24pSensorQS_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_IMS_Characteristics.o] Error 1