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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 172.2 kB / 17.4 MB, free: 4.297 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.304/1.304, allocations: 223.3 MB / 241.4 MB, free: 9.98 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.0008622/0.0008622, allocations: 93.3 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003049, allocations: 11.94 kB / 352.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2182, allocations: 50.4 MB / 402.8 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3281/0.5464, allocations: 137.3 MB / 0.5274 GB, free: 88.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.5468, allocations: 109.6 kB / 0.5275 GB, free: 88.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.074/1.621, allocations: 319.8 MB / 0.8398 GB, free: 52.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.315e-06/1.621, allocations: 0 / 0.8398 GB, free: 52.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009092/1.622, allocations: 207.8 kB / 0.84 GB, free: 52.46 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.03273/1.655, allocations: 8.755 MB / 0.8486 GB, free: 49.64 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/1.655, allocations: 14.47 kB / 0.8486 GB, free: 49.64 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02175/1.677, allocations: 3.925 MB / 0.8524 GB, free: 49.13 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01691/1.694, allocations: 6.77 MB / 0.859 GB, free: 48.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007389/1.694, allocations: 0.6696 MB / 0.8597 GB, free: 48.16 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003855/1.698, allocations: 0.8937 MB / 0.8606 GB, free: 48.15 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0376/1.736, allocations: 14.96 MB / 0.8752 GB, free: 47.01 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005145/1.736, allocations: 15.53 kB / 0.8752 GB, free: 47 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003142/1.74, allocations: 392.3 kB / 0.8756 GB, free: 47 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008163/1.74, allocations: 0.6897 MB / 0.8762 GB, free: 46.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02801/1.769, allocations: 12.72 MB / 0.8887 GB, free: 46.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0866/1.855, allocations: 47.97 MB / 0.9355 GB, free: 24.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02089/1.876, allocations: 28.5 MB / 0.9633 GB, free: 12.77 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005473/1.882, allocations: 3.035 MB / 0.9663 GB, free: 11.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005226/1.882, allocations: 239.2 kB / 0.9665 GB, free: 11.43 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.25e-05/1.882, allocations: 76.78 kB / 0.9666 GB, free: 11.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 6.602e-06/1.882, allocations: 0 / 0.9666 GB, free: 11.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03759/1.92, allocations: 14.96 MB / 0.9812 GB, free: 15.42 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/1.92, allocations: 94.5 kB / 0.9813 GB, free: 15.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007342/1.927, allocations: 3.533 MB / 0.9847 GB, free: 12.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008119/1.928, allocations: 85.7 kB / 0.9848 GB, free: 12.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002804/1.931, allocations: 4.024 MB / 0.9888 GB, free: 8.707 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001788/1.933, allocations: 1.35 MB / 0.9901 GB, free: 7.492 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008009/1.934, allocations: 124 kB / 0.9902 GB, free: 7.371 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006018/1.934, allocations: 0.5446 MB / 0.9907 GB, free: 6.891 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004578/1.939, allocations: 2.545 MB / 0.9932 GB, free: 4.754 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3181/2.257, allocations: 5.039 MB / 0.9981 GB, free: 78.29 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/2.268, allocations: 8.262 MB / 1.006 GB, free: 75.24 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/2.268, allocations: 26.94 kB / 1.006 GB, free: 75.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01414/2.282, allocations: 8.576 MB / 1.015 GB, free: 75.09 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.253e-05/2.282, allocations: 38.69 kB / 1.015 GB, free: 75.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002717/2.283, allocations: 85.34 kB / 1.015 GB, free: 75.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002285/2.285, allocations: 0.8866 MB / 1.016 GB, free: 75.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005026/2.29, allocations: 1.355 MB / 1.017 GB, free: 75.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/2.301, allocations: 7.558 MB / 1.024 GB, free: 73.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005786/2.307, allocations: 338 kB / 1.025 GB, free: 73.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001568/2.309, allocations: 310.8 kB / 1.025 GB, free: 73.67 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * 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 (716): * Single equations (assignments): 714 * 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%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008542/2.317, allocations: 3.506 MB / 1.028 GB, free: 73.55 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/2.319, allocations: 408.1 kB / 1.029 GB, free: 73.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/2.33, allocations: 5.912 MB / 1.034 GB, free: 73.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.847e-05/2.331, allocations: 47.28 kB / 1.035 GB, free: 73.33 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.969e-05/2.331, allocations: 11.16 kB / 1.035 GB, free: 73.33 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.108e-05/2.331, allocations: 18.7 kB / 1.035 GB, free: 73.33 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03027/2.361, allocations: 15.38 MB / 1.05 GB, free: 71.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.706e-05/2.361, allocations: 3.531 kB / 1.05 GB, free: 71.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002512/2.363, allocations: 0.6864 MB / 1.05 GB, free: 71.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001844/2.365, allocations: 0.6895 MB / 1.051 GB, free: 71.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000254/2.366, allocations: 86.14 kB / 1.051 GB, free: 71.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007676/2.373, allocations: 6.179 MB / 1.057 GB, free: 70.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/2.373, allocations: 7.281 kB / 1.057 GB, free: 70.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/2.385, allocations: 8.549 MB / 1.065 GB, free: 68.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002241/2.388, allocations: 0.8774 MB / 1.066 GB, free: 67.88 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/2.389, allocations: 81.81 kB / 1.066 GB, free: 67.83 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002418/2.391, allocations: 188.5 kB / 1.067 GB, free: 67.78 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005407/2.392, allocations: 268.5 kB / 1.067 GB, free: 67.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002678/2.392, allocations: 114.3 kB / 1.067 GB, free: 67.71 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005103/2.397, allocations: 2.36 MB / 1.069 GB, free: 66.83 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.31e-07/2.397, allocations: 0 / 1.069 GB, free: 66.83 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007606/2.405, allocations: 1.598 MB / 1.071 GB, free: 66.66 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001211/2.406, allocations: 0.5924 MB / 1.071 GB, free: 66.43 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01103/2.417, allocations: 6.472 MB / 1.078 GB, free: 64.09 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/2.417, allocations: 4.25 kB / 1.078 GB, free: 64.09 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004473/2.422, allocations: 2.888 MB / 1.08 GB, free: 62.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00784/2.429, allocations: 0.9135 MB / 1.081 GB, free: 62.63 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03463/2.464, allocations: 18.93 MB / 1.1 GB, free: 52.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01152/2.476, allocations: 5.967 MB / 1.106 GB, free: 49.86 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006936/2.483, allocations: 1.866 MB / 1.107 GB, free: 48.65 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001624/2.484, allocations: 345.4 kB / 1.108 GB, free: 48.33 MB / 490.7 MB Notification: Performance of SimCode: time 1.052e-06/2.484, allocations: 3 kB / 1.108 GB, free: 48.33 MB / 490.7 MB Notification: Performance of Templates: time 0.1083/2.593, allocations: 62.52 MB / 1.169 GB, free: 6.895 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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:26: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_functions.h:1095: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:1104: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:1113: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:1122: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); ^ 4 errors generated. make: *** [: Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.o] Error 1