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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 196 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008457/0.0008458, allocations: 98.7 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.000237, allocations: 8 kB / 358.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.237, allocations: 51.27 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4149/0.6519, allocations: 136.1 MB / 0.5327 GB, free: 46.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.6522, allocations: 111.4 kB / 0.5328 GB, free: 46.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8194/1.472, allocations: 315.2 MB / 0.8406 GB, free: 8.719 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.076e-06/1.472, allocations: 0 / 0.8406 GB, free: 8.719 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006267/1.472, allocations: 151.9 kB / 0.8407 GB, free: 8.57 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.02393/1.496, allocations: 6.787 MB / 0.8473 GB, free: 1.742 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/1.496, allocations: 8.031 kB / 0.8474 GB, free: 1.734 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2836/1.78, allocations: 3.625 MB / 0.8509 GB, free: 42.69 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/1.791, allocations: 4.967 MB / 0.8557 GB, free: 42.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006528/1.791, allocations: 0.4907 MB / 0.8562 GB, free: 42.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00269/1.794, allocations: 0.6427 MB / 0.8568 GB, free: 42.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02522/1.819, allocations: 11.09 MB / 0.8677 GB, free: 41.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002621/1.82, allocations: 14.78 kB / 0.8677 GB, free: 41.53 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001832/1.822, allocations: 280.5 kB / 0.868 GB, free: 41.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004887/1.822, allocations: 0.5241 MB / 0.8685 GB, free: 41.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02216/1.844, allocations: 10.11 MB / 0.8783 GB, free: 41.45 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05995/1.904, allocations: 36.06 MB / 0.9136 GB, free: 34.42 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009358/1.914, allocations: 11.92 MB / 0.9252 GB, free: 25.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004077/1.918, allocations: 2.845 MB / 0.928 GB, free: 24.42 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003926/1.918, allocations: 244.5 kB / 0.9282 GB, free: 24.22 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/1.918, allocations: 75.69 kB / 0.9283 GB, free: 24.15 MB / 458.7 MB Notification: Performance of pre-optimization done (n=367): time 6.522e-06/1.918, allocations: 0 / 0.9283 GB, free: 24.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=377): time 0.03442/1.953, allocations: 15.8 MB / 0.9437 GB, free: 18.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/1.953, allocations: 116.5 kB / 0.9438 GB, free: 18.08 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003789/1.956, allocations: 2.731 MB / 0.9465 GB, free: 17.03 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005634/1.957, allocations: 84.08 kB / 0.9466 GB, free: 16.95 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/1.958, allocations: 2.882 MB / 0.9494 GB, free: 14.78 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/1.96, allocations: 1.276 MB / 0.9506 GB, free: 13.79 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/1.96, allocations: 94.94 kB / 0.9507 GB, free: 13.71 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002265/1.96, allocations: 0.4983 MB / 0.9512 GB, free: 13.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003124/1.963, allocations: 2.29 MB / 0.9534 GB, free: 12.46 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003815/1.967, allocations: 3.896 MB / 0.9572 GB, free: 9.543 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007387/1.974, allocations: 6.699 MB / 0.9638 GB, free: 5.379 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-05/1.975, allocations: 13.91 kB / 0.9638 GB, free: 5.379 MB / 458.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.0105/1.985, allocations: 7.069 MB / 0.9707 GB, free: 2.797 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007966/1.986, allocations: 1.596 MB / 0.9723 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.848e-05/1.986, allocations: 50.89 kB / 0.9723 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003157/1.989, allocations: 1.242 MB / 0.9735 GB, free: 396 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003795/1.993, allocations: 1.067 MB / 0.9746 GB, free: 360 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00314/1.996, allocations: 2.352 MB / 0.9769 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003807/2, allocations: 299.7 kB / 0.9771 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008831/2.001, allocations: 224.4 kB / 0.9774 GB, free: 15.04 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/2.001, allocations: 7.5 kB / 0.9774 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01253/2.013, allocations: 6.709 MB / 0.9839 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001777/2.014, allocations: 52 kB / 0.984 GB, free: 12.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003101/2.017, allocations: 1.149 MB / 0.9851 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004463/2.021, allocations: 1.063 MB / 0.9861 GB, free: 10.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003619/2.025, allocations: 2.287 MB / 0.9884 GB, free: 8.422 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003907/2.029, allocations: 274 kB / 0.9886 GB, free: 8.207 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/2.03, allocations: 227.5 kB / 0.9888 GB, free: 7.992 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * 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 (547): * Single equations (assignments): 545 * 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 {11 55} Notification: Performance of prepare postOptimizeDAE: time 0.006803/2.037, allocations: 2.559 MB / 0.9913 GB, free: 5.762 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/2.038, allocations: 350.2 kB / 0.9917 GB, free: 5.422 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/2.05, allocations: 5.791 MB / 0.9973 GB, free: 0.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.441e-05/2.05, allocations: 36 kB / 0.9974 GB, free: 476 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/2.05, allocations: 3.391 kB / 0.9974 GB, free: 476 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.506e-05/2.05, allocations: 21.23 kB / 0.9974 GB, free: 476 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02799/2.078, allocations: 13.42 MB / 1.01 GB, free: 5.523 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/2.078, allocations: 0 / 1.01 GB, free: 5.523 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002872/2.081, allocations: 0.6693 MB / 1.011 GB, free: 4.965 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003128/2.084, allocations: 0.9754 MB / 1.012 GB, free: 4.211 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005021/2.084, allocations: 78.28 kB / 1.012 GB, free: 4.141 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002989/2.087, allocations: 2.024 MB / 1.014 GB, free: 2.312 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/2.087, allocations: 0 / 1.014 GB, free: 2.312 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01395/2.101, allocations: 8.357 MB / 1.022 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002297/2.104, allocations: 0.8329 MB / 1.023 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009056/2.105, allocations: 71.94 kB / 1.023 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/2.107, allocations: 225.1 kB / 1.023 GB, free: 9.957 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004761/2.107, allocations: 224.6 kB / 1.024 GB, free: 9.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002496/2.108, allocations: 103.8 kB / 1.024 GB, free: 9.727 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003994/2.112, allocations: 1.824 MB / 1.025 GB, free: 8.203 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.61e-07/2.112, allocations: 0 / 1.025 GB, free: 8.203 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.011/2.123, allocations: 2.16 MB / 1.028 GB, free: 6.059 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.001196/2.124, allocations: 0.5646 MB / 1.028 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2814/2.405, allocations: 9.556 MB / 1.037 GB, free: 82.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/2.405, allocations: 0 / 1.037 GB, free: 82.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004951/2.41, allocations: 2.618 MB / 1.04 GB, free: 82.47 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004589/2.415, allocations: 0.7519 MB / 1.041 GB, free: 82.46 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02445/2.439, allocations: 14.88 MB / 1.055 GB, free: 76.83 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004627/2.444, allocations: 4.457 MB / 1.06 GB, free: 76 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00655/2.451, allocations: 2.292 MB / 1.062 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009257/2.452, allocations: 285.3 kB / 1.062 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of SimCode: time 1.082e-06/2.452, allocations: 0 / 1.062 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of Templates: time 0.09651/2.548, allocations: 60.87 MB / 1.122 GB, free: 73.1 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=3 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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:26: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening_functions.h:1081: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); ^ 1 error generated. make: *** [: Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.o] Error 1