Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001123/0.001123, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.2 MB / 245 MB, free: 5.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001001/0.001001, allocations: 106.2 kB / 297.3 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002795/0.0002792, allocations: 11.98 kB / 358 MB, free: 9.234 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2648, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.424/0.6889, allocations: 137.8 MB / 0.5345 GB, free: 47.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.6893, allocations: 105.2 kB / 0.5346 GB, free: 47.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.151/1.841, allocations: 338.7 MB / 0.8654 GB, free: 55.14 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.841, allocations: 0 / 0.8654 GB, free: 55.14 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008978/1.842, allocations: 206.8 kB / 0.8656 GB, free: 55.12 MB / 474.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.03467/1.876, allocations: 8.889 MB / 0.8742 GB, free: 52.29 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/1.876, allocations: 10.78 kB / 0.8742 GB, free: 52.29 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00703/1.883, allocations: 1.544 MB / 0.8758 GB, free: 52.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02186/1.905, allocations: 3.939 MB / 0.8796 GB, free: 51.65 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02093/1.926, allocations: 7.374 MB / 0.8868 GB, free: 50.78 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007219/1.927, allocations: 0.6713 MB / 0.8875 GB, free: 50.76 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004109/1.931, allocations: 0.8911 MB / 0.8883 GB, free: 50.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03631/1.968, allocations: 14.9 MB / 0.9029 GB, free: 49.61 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004644/1.968, allocations: 17.34 kB / 0.9029 GB, free: 49.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002994/1.971, allocations: 392.8 kB / 0.9033 GB, free: 49.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007314/1.972, allocations: 0.6904 MB / 0.9039 GB, free: 49.58 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02601/1.998, allocations: 12.73 MB / 0.9164 GB, free: 49.48 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08626/2.084, allocations: 48.38 MB / 0.9636 GB, free: 27.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01982/2.104, allocations: 28.5 MB / 0.9914 GB, free: 15.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007361/2.105, allocations: 320.8 kB / 0.9918 GB, free: 15.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.692e-05/2.105, allocations: 76.03 kB / 0.9918 GB, free: 15.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=386): time 9.708e-06/2.105, allocations: 0 / 0.9918 GB, free: 15.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=394): time 0.03439/2.139, allocations: 14.6 MB / 1.006 GB, free: 8.965 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/2.139, allocations: 99 kB / 1.006 GB, free: 8.898 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008385/2.148, allocations: 3.16 MB / 1.009 GB, free: 6.348 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007979/2.149, allocations: 89.7 kB / 1.009 GB, free: 6.254 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004566/2.153, allocations: 4.027 MB / 1.013 GB, free: 2.688 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002475/2.156, allocations: 1.347 MB / 1.015 GB, free: 1.477 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007946/2.156, allocations: 120 kB / 1.015 GB, free: 1.359 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006742/2.157, allocations: 0.547 MB / 1.015 GB, free: 0.875 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0108/2.168, allocations: 3.064 MB / 1.018 GB, free: 0 / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007228/2.175, allocations: 5.025 MB / 1.023 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006704/2.182, allocations: 3.755 MB / 1.027 GB, free: 7.078 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/2.182, allocations: 31.95 kB / 1.027 GB, free: 7.047 MB / 0.4948 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01773/2.2, allocations: 8.558 MB / 1.035 GB, free: 72 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/2.2, allocations: 43.95 kB / 1.035 GB, free: 28 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005155/2.201, allocations: 107.1 kB / 1.035 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3197/2.52, allocations: 0.8272 MB / 1.036 GB, free: 80.69 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007475/2.528, allocations: 1.374 MB / 1.037 GB, free: 80.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/2.54, allocations: 7.161 MB / 1.044 GB, free: 79.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006321/2.547, allocations: 333.1 kB / 1.045 GB, free: 79.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002003/2.549, allocations: 309.1 kB / 1.045 GB, free: 79.3 MB / 0.4948 GB 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.01176/2.56, allocations: 3.504 MB / 1.049 GB, free: 79.19 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00232/2.563, allocations: 414.1 kB / 1.049 GB, free: 79.19 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/2.574, allocations: 5.916 MB / 1.055 GB, free: 78.99 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.253e-05/2.574, allocations: 38.12 kB / 1.055 GB, free: 78.99 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/2.574, allocations: 13.12 kB / 1.055 GB, free: 78.99 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-05/2.574, allocations: 22.41 kB / 1.055 GB, free: 78.99 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03618/2.611, allocations: 15.01 MB / 1.069 GB, free: 77.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.922e-05/2.611, allocations: 9.656 kB / 1.069 GB, free: 77.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003224/2.614, allocations: 0.6947 MB / 1.07 GB, free: 77.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/2.616, allocations: 0.681 MB / 1.071 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007766/2.617, allocations: 87.59 kB / 1.071 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008379/2.625, allocations: 6.334 MB / 1.077 GB, free: 76.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/2.625, allocations: 5.906 kB / 1.077 GB, free: 76.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01575/2.641, allocations: 9.025 MB / 1.086 GB, free: 75.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003371/2.645, allocations: 0.8866 MB / 1.087 GB, free: 74.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001342/2.646, allocations: 67.12 kB / 1.087 GB, free: 74.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003203/2.649, allocations: 193.8 kB / 1.087 GB, free: 74.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006114/2.65, allocations: 271 kB / 1.087 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002468/2.65, allocations: 115.2 kB / 1.087 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004328/2.654, allocations: 2.358 MB / 1.09 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.81e-07/2.654, allocations: 0 / 1.09 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009562/2.664, allocations: 1.607 MB / 1.091 GB, free: 74.68 MB / 0.4948 GB 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.01378/2.678, allocations: 11.12 MB / 1.102 GB, free: 71.89 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00919/2.687, allocations: 6.445 MB / 1.108 GB, free: 70.47 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/2.687, allocations: 3.625 kB / 1.108 GB, free: 70.47 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003956/2.691, allocations: 2.882 MB / 1.111 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004126/2.695, allocations: 0.8591 MB / 1.112 GB, free: 69.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0944/2.79, allocations: 101.8 MB / 1.211 GB, free: 1.152 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01111/2.801, allocations: 6.346 MB / 1.218 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005928/2.807, allocations: 1.871 MB / 1.219 GB, free: 11.92 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005815/2.813, allocations: 3.17 MB / 1.223 GB, free: 8.98 MB / 0.5261 GB Notification: Performance of SimCode: time 1.303e-06/2.813, allocations: 4 kB / 1.223 GB, free: 8.977 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4567/3.269, allocations: 121 MB / 1.341 GB, free: 90.67 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/3.269, allocations: 265 kB / 1.341 GB, free: 90.32 MB / 0.5261 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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.c:7: In file included from ./Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_functions.h:1168: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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_functions.h:1177: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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_functions.h:1186: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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_functions.h:1195: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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.o] Error 1