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.001072/0.001072, allocations: 197.4 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.246/1.246, allocations: 227.2 MB / 245 MB, free: 5.766 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008344/0.0008344, allocations: 110.3 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002124/0.0002124, allocations: 8 kB / 358 MB, free: 9.277 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.224, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3541/0.5782, allocations: 135.8 MB / 0.5325 GB, free: 45.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/0.5785, allocations: 110.8 kB / 0.5326 GB, free: 45.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7665/1.345, allocations: 318.5 MB / 0.8436 GB, free: 3.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.345, allocations: 0 / 0.8436 GB, free: 3.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002907/1.345, allocations: 163.7 kB / 0.8438 GB, free: 3.32 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.2697/1.615, allocations: 6.853 MB / 0.8505 GB, free: 40.08 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/1.615, allocations: 11.53 kB / 0.8505 GB, free: 40.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0197/1.635, allocations: 3.614 MB / 0.854 GB, free: 39.71 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01397/1.649, allocations: 4.902 MB / 0.8588 GB, free: 39.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007608/1.65, allocations: 0.49 MB / 0.8593 GB, free: 39.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003158/1.653, allocations: 0.6473 MB / 0.8599 GB, free: 39.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02725/1.68, allocations: 11.03 MB / 0.8707 GB, free: 38.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004369/1.681, allocations: 17.77 kB / 0.8707 GB, free: 38.53 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002625/1.683, allocations: 282.3 kB / 0.871 GB, free: 38.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006077/1.684, allocations: 0.5213 MB / 0.8715 GB, free: 38.52 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02094/1.705, allocations: 10.11 MB / 0.8814 GB, free: 38.45 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05736/1.762, allocations: 36.04 MB / 0.9166 GB, free: 31.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008582/1.771, allocations: 11.93 MB / 0.9282 GB, free: 21.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003944/1.771, allocations: 249.5 kB / 0.9284 GB, free: 21.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/1.771, allocations: 75.5 kB / 0.9285 GB, free: 21.54 MB / 458.7 MB Notification: Performance of pre-optimization done (n=367): time 5.43e-06/1.771, allocations: 0 / 0.9285 GB, free: 21.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=377): time 0.02713/1.798, allocations: 15.3 MB / 0.9435 GB, free: 15.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/1.799, allocations: 118.9 kB / 0.9436 GB, free: 15.31 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003914/1.802, allocations: 2.432 MB / 0.946 GB, free: 30.37 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003879/1.803, allocations: 88.7 kB / 0.946 GB, free: 30.29 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/1.804, allocations: 2.875 MB / 0.9488 GB, free: 28.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000848/1.805, allocations: 1.272 MB / 0.9501 GB, free: 27.13 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002165/1.805, allocations: 97 kB / 0.9502 GB, free: 27.06 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002511/1.806, allocations: 0.4894 MB / 0.9507 GB, free: 26.67 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002857/1.808, allocations: 2.308 MB / 0.9529 GB, free: 25.81 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003389/1.812, allocations: 3.888 MB / 0.9567 GB, free: 22.94 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003998/1.816, allocations: 3.128 MB / 0.9598 GB, free: 21.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.358e-05/1.816, allocations: 19.22 kB / 0.9598 GB, free: 21.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.008817/1.825, allocations: 7.064 MB / 0.9667 GB, free: 19.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.008525/1.833, allocations: 21.02 MB / 0.9872 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.209e-05/1.833, allocations: 56.41 kB / 0.9873 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003395/1.837, allocations: 1.146 MB / 0.9884 GB, free: 12.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003802/1.841, allocations: 1.09 MB / 0.9894 GB, free: 12.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/1.843, allocations: 2.229 MB / 0.9916 GB, free: 11.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/1.846, allocations: 293.5 kB / 0.9919 GB, free: 11.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000333/1.847, allocations: 227.9 kB / 0.9921 GB, free: 11.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/1.847, allocations: 4 kB / 0.9921 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008894/1.856, allocations: 6.714 MB / 0.9987 GB, free: 8.777 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000102/1.856, allocations: 50.09 kB / 0.9987 GB, free: 8.777 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00277/1.858, allocations: 1.084 MB / 0.9998 GB, free: 8.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003885/1.862, allocations: 1.083 MB / 1.001 GB, free: 7.797 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002582/1.865, allocations: 2.141 MB / 1.003 GB, free: 5.883 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003186/1.868, allocations: 279.1 kB / 1.003 GB, free: 5.664 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005183/1.869, allocations: 227.2 kB / 1.003 GB, free: 5.453 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.005382/1.874, allocations: 2.556 MB / 1.006 GB, free: 3.234 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.875, allocations: 347.3 kB / 1.006 GB, free: 2.895 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01625/1.891, allocations: 6.411 MB / 1.012 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.199e-05/1.891, allocations: 40 kB / 1.013 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/1.891, allocations: 3.875 kB / 1.013 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.392e-05/1.891, allocations: 21.05 kB / 1.013 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0229/1.914, allocations: 13.04 MB / 1.025 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/1.914, allocations: 4 kB / 1.025 GB, free: 4.527 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003294/1.918, allocations: 0.6792 MB / 1.026 GB, free: 3.969 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003073/1.921, allocations: 0.97 MB / 1.027 GB, free: 3.227 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000263/1.921, allocations: 83.78 kB / 1.027 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002627/1.924, allocations: 1.997 MB / 1.029 GB, free: 1.344 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.924, allocations: 4 kB / 1.029 GB, free: 1.34 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2519/2.176, allocations: 8.864 MB / 1.038 GB, free: 82.29 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002102/2.178, allocations: 0.8324 MB / 1.038 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000392/2.178, allocations: 66.52 kB / 1.038 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/2.18, allocations: 232.1 kB / 1.039 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003605/2.18, allocations: 220.9 kB / 1.039 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002054/2.181, allocations: 105.6 kB / 1.039 GB, free: 82.19 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00256/2.183, allocations: 1.821 MB / 1.041 GB, free: 82.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.11e-07/2.183, allocations: 3.656 kB / 1.041 GB, free: 82.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00568/2.189, allocations: 2.157 MB / 1.043 GB, free: 82.04 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.0008016/2.19, allocations: 0.5798 MB / 1.043 GB, free: 81.94 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01171/2.201, allocations: 9.134 MB / 1.052 GB, free: 81.83 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/2.201, allocations: 0 / 1.052 GB, free: 81.83 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003413/2.205, allocations: 2.601 MB / 1.055 GB, free: 81.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/2.207, allocations: 0.6971 MB / 1.056 GB, free: 81.79 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02059/2.228, allocations: 15.56 MB / 1.071 GB, free: 76.17 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003442/2.231, allocations: 4.569 MB / 1.075 GB, free: 75.34 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006107/2.238, allocations: 2.311 MB / 1.078 GB, free: 75.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008337/2.238, allocations: 286.5 kB / 1.078 GB, free: 75.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/2.238, allocations: 3.172 kB / 1.078 GB, free: 75.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.0853/2.324, allocations: 59.89 MB / 1.136 GB, free: 70.29 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 -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -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: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); ^ 1 error generated. make: *** [: Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.o] Error 1