Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.001426/0.001426, allocations: 180.5 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.46/1.46, 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.0009524/0.0009524, allocations: 89.72 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003259/0.000326, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2924, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.7077, allocations: 137 MB / 0.5259 GB, free: 89.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.7081, allocations: 108.3 kB / 0.526 GB, free: 89.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.218/1.926, allocations: 321.8 MB / 0.8403 GB, free: 52.93 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.927, allocations: 4 kB / 0.8404 GB, free: 52.93 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009804/1.927, allocations: 210.2 kB / 0.8406 GB, free: 52.91 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.0382/1.966, allocations: 8.854 MB / 0.8492 GB, free: 50.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.017e-05/1.966, allocations: 9.781 kB / 0.8492 GB, free: 50.09 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00866/1.974, allocations: 1.552 MB / 0.8507 GB, free: 49.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02292/1.997, allocations: 3.931 MB / 0.8546 GB, free: 49.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02117/2.019, allocations: 7.366 MB / 0.8618 GB, free: 48.57 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009895/2.02, allocations: 0.6722 MB / 0.8624 GB, free: 48.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004845/2.025, allocations: 0.8898 MB / 0.8633 GB, free: 48.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04402/2.069, allocations: 14.9 MB / 0.8778 GB, free: 47.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005736/2.069, allocations: 18.58 kB / 0.8778 GB, free: 47.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003636/2.073, allocations: 393.2 kB / 0.8782 GB, free: 47.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000907/2.074, allocations: 0.6858 MB / 0.8789 GB, free: 47.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03107/2.105, allocations: 12.74 MB / 0.8913 GB, free: 47.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09194/2.197, allocations: 47.97 MB / 0.9382 GB, free: 23.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02191/2.219, allocations: 28.5 MB / 0.966 GB, free: 11.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007137/2.22, allocations: 240.4 kB / 0.9662 GB, free: 11.59 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000113/2.22, allocations: 82.36 kB / 0.9663 GB, free: 11.52 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 9.759e-06/2.22, allocations: 0 / 0.9663 GB, free: 11.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03651/2.256, allocations: 14.59 MB / 0.9806 GB, free: 15.46 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/2.256, allocations: 101.2 kB / 0.9807 GB, free: 15.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006891/2.263, allocations: 3.155 MB / 0.9837 GB, free: 12.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009673/2.264, allocations: 85.7 kB / 0.9838 GB, free: 12.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003197/2.268, allocations: 4.031 MB / 0.9878 GB, free: 9.035 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00204/2.27, allocations: 1.356 MB / 0.9891 GB, free: 7.82 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005/2.27, allocations: 124 kB / 0.9892 GB, free: 7.699 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004476/2.271, allocations: 0.5422 MB / 0.9897 GB, free: 7.219 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004088/2.275, allocations: 2.57 MB / 0.9922 GB, free: 5.062 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3569/2.632, allocations: 5.011 MB / 0.9971 GB, free: 78.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008001/2.64, allocations: 3.757 MB / 1.001 GB, free: 78.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001016/2.64, allocations: 24.03 kB / 1.001 GB, free: 78.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01736/2.657, allocations: 8.557 MB / 1.009 GB, free: 78.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.685e-05/2.657, allocations: 38.94 kB / 1.009 GB, free: 78.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/2.657, allocations: 87.89 kB / 1.009 GB, free: 78.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002169/2.66, allocations: 0.8325 MB / 1.01 GB, free: 78.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005499/2.665, allocations: 1.368 MB / 1.011 GB, free: 78.06 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/2.676, allocations: 7.168 MB / 1.018 GB, free: 76.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005445/2.681, allocations: 341.4 kB / 1.019 GB, free: 76.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00145/2.683, allocations: 299 kB / 1.019 GB, free: 76.66 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 375 * 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 (724): * Single equations (assignments): 722 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008126/2.691, allocations: 3.515 MB / 1.022 GB, free: 76.55 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001162/2.692, allocations: 408.5 kB / 1.023 GB, free: 76.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/2.702, allocations: 5.917 MB / 1.029 GB, free: 76.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-05/2.702, allocations: 41.56 kB / 1.029 GB, free: 76.34 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/2.702, allocations: 8.656 kB / 1.029 GB, free: 76.34 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.776e-05/2.702, allocations: 18.42 kB / 1.029 GB, free: 76.34 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0294/2.732, allocations: 15.01 MB / 1.043 GB, free: 74.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-05/2.732, allocations: 3.938 kB / 1.043 GB, free: 74.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002973/2.735, allocations: 0.6956 MB / 1.044 GB, free: 74.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001957/2.737, allocations: 0.6876 MB / 1.045 GB, free: 74.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000509/2.737, allocations: 89.19 kB / 1.045 GB, free: 74.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008465/2.746, allocations: 6.319 MB / 1.051 GB, free: 73.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/2.746, allocations: 14.3 kB / 1.051 GB, free: 73.53 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/2.76, allocations: 9.013 MB / 1.06 GB, free: 71.91 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002994/2.763, allocations: 0.8836 MB / 1.061 GB, free: 71.39 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001218/2.765, allocations: 78.16 kB / 1.061 GB, free: 71.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002609/2.767, allocations: 192.6 kB / 1.061 GB, free: 71.29 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005555/2.768, allocations: 272.6 kB / 1.061 GB, free: 71.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000236/2.768, allocations: 107.1 kB / 1.061 GB, free: 71.22 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004421/2.773, allocations: 2.359 MB / 1.064 GB, free: 70.35 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.773, allocations: 3.781 kB / 1.064 GB, free: 70.35 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007893/2.78, allocations: 1.598 MB / 1.065 GB, free: 70.17 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smpmQS.phiMechanical) * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01395/2.794, allocations: 11.1 MB / 1.076 GB, free: 64.26 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01254/2.807, allocations: 6.451 MB / 1.082 GB, free: 62.05 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/2.807, allocations: 2.094 kB / 1.082 GB, free: 62.05 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005498/2.813, allocations: 2.878 MB / 1.085 GB, free: 60.95 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005621/2.818, allocations: 0.8527 MB / 1.086 GB, free: 60.71 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4132/3.232, allocations: 101.7 MB / 1.185 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01495/3.247, allocations: 6.125 MB / 1.191 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007047/3.254, allocations: 1.871 MB / 1.193 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007207/3.261, allocations: 3.165 MB / 1.196 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.423e-06/3.261, allocations: 0 / 1.196 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.185/3.446, allocations: 120.5 MB / 1.314 GB, free: 62.21 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/3.446, allocations: 253.9 kB / 1.314 GB, free: 61.87 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_SynchronousMachines_SMPM_MTPA.o Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.c In file included from Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_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_SynchronousMachines_SMPM_MTPA.c:7: In file included from ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_model.h:24: ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_functions.h:1167:1: error: unknown type name '_omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i' _omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i omc__omcQComplexOutput_24currentRMSSensorQS_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_functions.h:1176:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_functions.h:1185:1: error: unknown type name '_omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v' _omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v omc__omcQComplexOutput_24rotorAngleQS_24voltageSensor_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ ./Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_functions.h:1194:1: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v' _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v omc__omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 2 warnings and 4 errors generated. make: *** [: Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.o] Error 1