Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.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_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.2 MB / 245 MB, free: 5.77 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009247/0.0009244, allocations: 98.5 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00025/0.0002501, allocations: 4 kB / 358 MB, free: 9.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2583, allocations: 51.5 MB / 409.5 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/0.7038, allocations: 135.8 MB / 0.5326 GB, free: 45.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.7041, allocations: 111.4 kB / 0.5327 GB, free: 45.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7927/1.497, allocations: 318.5 MB / 0.8437 GB, free: 3.426 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.497, allocations: 0 / 0.8437 GB, free: 3.426 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003776/1.497, allocations: 159.3 kB / 0.8439 GB, free: 3.273 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: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.2607/1.758, allocations: 6.861 MB / 0.8506 GB, free: 40.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/1.758, allocations: 9.062 kB / 0.8506 GB, free: 40.18 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003734/1.762, allocations: 0.9809 MB / 0.8515 GB, free: 40.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01895/1.781, allocations: 3.623 MB / 0.8551 GB, free: 39.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/1.792, allocations: 4.898 MB / 0.8599 GB, free: 39.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004614/1.793, allocations: 0.4917 MB / 0.8603 GB, free: 39.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001929/1.795, allocations: 0.648 MB / 0.861 GB, free: 39.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02091/1.816, allocations: 11.03 MB / 0.8718 GB, free: 38.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001942/1.816, allocations: 18.16 kB / 0.8718 GB, free: 38.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008956/1.817, allocations: 282.7 kB / 0.872 GB, free: 38.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004047/1.817, allocations: 0.5172 MB / 0.8725 GB, free: 38.53 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01788/1.835, allocations: 10.12 MB / 0.8824 GB, free: 38.47 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05606/1.891, allocations: 36.03 MB / 0.9176 GB, free: 30.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008503/1.9, allocations: 11.93 MB / 0.9293 GB, free: 21.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003691/1.9, allocations: 247.3 kB / 0.9295 GB, free: 21.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/1.9, allocations: 73.88 kB / 0.9296 GB, free: 21.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=367): time 5.8e-06/1.9, allocations: 0 / 0.9296 GB, free: 21.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=377): time 0.02949/1.93, allocations: 15.3 MB / 0.9445 GB, free: 15.01 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/1.93, allocations: 122.2 kB / 0.9446 GB, free: 14.91 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003364/1.933, allocations: 2.427 MB / 0.947 GB, free: 13.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002967/1.934, allocations: 85.39 kB / 0.9471 GB, free: 13.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/1.935, allocations: 2.879 MB / 0.9499 GB, free: 11.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008852/1.936, allocations: 1.276 MB / 0.9511 GB, free: 10.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/1.936, allocations: 94.91 kB / 0.9512 GB, free: 10.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005375/1.937, allocations: 0.4924 MB / 0.9517 GB, free: 26.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00299/1.94, allocations: 2.306 MB / 0.954 GB, free: 25.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003865/1.943, allocations: 3.896 MB / 0.9578 GB, free: 22.54 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003782/1.947, allocations: 3.125 MB / 0.9608 GB, free: 21.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.131e-05/1.947, allocations: 18.12 kB / 0.9608 GB, free: 21.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.009314/1.957, allocations: 7.062 MB / 0.9677 GB, free: 18.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.009011/1.966, allocations: 21.02 MB / 0.9883 GB, free: 12.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/1.966, allocations: 55.41 kB / 0.9883 GB, free: 12.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003935/1.97, allocations: 1.146 MB / 0.9894 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004699/1.975, allocations: 1.085 MB / 0.9905 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003612/1.978, allocations: 2.221 MB / 0.9927 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004358/1.983, allocations: 294.9 kB / 0.9929 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009735/1.984, allocations: 234.8 kB / 0.9932 GB, free: 10.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/1.984, allocations: 7.688 kB / 0.9932 GB, free: 10.8 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01248/1.996, allocations: 6.713 MB / 0.9997 GB, free: 8.375 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002083/1.996, allocations: 53.19 kB / 0.9998 GB, free: 8.375 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003234/2, allocations: 1.089 MB / 1.001 GB, free: 7.965 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004393/2.004, allocations: 1.076 MB / 1.002 GB, free: 7.117 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003023/2.007, allocations: 2.141 MB / 1.004 GB, free: 5.176 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003639/2.011, allocations: 275.4 kB / 1.004 GB, free: 4.961 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008264/2.011, allocations: 230 kB / 1.004 GB, free: 4.75 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (555): * Single equations (assignments): 553 * 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: 0 * Non-linear torn systems: 1 {9 49} Notification: Performance of prepare postOptimizeDAE: time 0.006696/2.018, allocations: 2.549 MB / 1.007 GB, free: 2.523 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001281/2.019, allocations: 355.5 kB / 1.007 GB, free: 2.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01263/2.032, allocations: 5.921 MB / 1.013 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.932e-05/2.032, allocations: 40 kB / 1.013 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.316e-05/2.032, allocations: 0 / 1.013 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.45e-05/2.032, allocations: 22.5 kB / 1.013 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02723/2.059, allocations: 13.06 MB / 1.026 GB, free: 2.582 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/2.06, allocations: 0 / 1.026 GB, free: 2.582 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002894/2.062, allocations: 0.6687 MB / 1.027 GB, free: 2.027 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003306/2.066, allocations: 0.9812 MB / 1.027 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004161/2.066, allocations: 71.94 kB / 1.028 GB, free: 1.211 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3101/2.376, allocations: 2.002 MB / 1.03 GB, free: 82.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/2.376, allocations: 4.5 kB / 1.03 GB, free: 82.21 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/2.389, allocations: 8.63 MB / 1.038 GB, free: 81.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00238/2.392, allocations: 0.8281 MB / 1.039 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005929/2.392, allocations: 65.41 kB / 1.039 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001891/2.394, allocations: 225 kB / 1.039 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003962/2.395, allocations: 229.5 kB / 1.039 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002239/2.395, allocations: 104.4 kB / 1.039 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002555/2.397, allocations: 1.821 MB / 1.041 GB, free: 81.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.21e-07/2.397, allocations: 0 / 1.041 GB, free: 81.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006741/2.404, allocations: 2.162 MB / 1.043 GB, free: 81.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * 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 (347): * Single equations (assignments): 345 * 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: 0 * Non-linear torn systems: 1 {9 50} Notification: Performance of Backend phase and start with SimCode phase: time 0.01191/2.416, allocations: 9.788 MB / 1.053 GB, free: 80.58 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0157/2.432, allocations: 9.132 MB / 1.062 GB, free: 80.47 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/2.432, allocations: 7.344 kB / 1.062 GB, free: 80.47 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004345/2.436, allocations: 2.607 MB / 1.064 GB, free: 80.44 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00409/2.44, allocations: 0.7026 MB / 1.065 GB, free: 80.42 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07104/2.511, allocations: 71.03 MB / 1.134 GB, free: 33.26 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005954/2.517, allocations: 4.571 MB / 1.139 GB, free: 32.38 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007093/2.525, allocations: 2.309 MB / 1.141 GB, free: 32.19 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004317/2.529, allocations: 2.401 MB / 1.143 GB, free: 32.18 MB / 0.4948 GB Notification: Performance of SimCode: time 1.343e-06/2.529, allocations: 0 / 1.143 GB, free: 32.18 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4097/2.939, allocations: 105.2 MB / 1.246 GB, free: 79.07 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/2.939, allocations: 276.8 kB / 1.246 GB, free: 78.71 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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.o Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.c In file included from Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening_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_FieldWeakening.c:7: In file included from ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening_model.h:24: ./Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening_functions.h:1153: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 1 error generated. make: *** [: Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.o] Error 1