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.0009802/0.0009802, allocations: 181.1 kB / 16.38 MB, free: 5.766 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.313/1.313, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009583/0.0009583, allocations: 98.16 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002681/0.0002681, allocations: 4 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2624, allocations: 50.39 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3962/0.6586, allocations: 137 MB / 0.5259 GB, free: 52.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.6589, allocations: 120.2 kB / 0.526 GB, free: 52.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.026/1.685, allocations: 321.8 MB / 0.8403 GB, free: 50.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.685, allocations: 0 / 0.8403 GB, free: 50.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005559/1.686, allocations: 219.5 kB / 0.8405 GB, free: 50.18 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.032/1.718, allocations: 8.847 MB / 0.8491 GB, free: 47.35 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/1.718, allocations: 7 kB / 0.8491 GB, free: 47.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02197/1.74, allocations: 3.931 MB / 0.853 GB, free: 46.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01797/1.758, allocations: 7.377 MB / 0.8602 GB, free: 45.97 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006312/1.758, allocations: 0.6715 MB / 0.8608 GB, free: 45.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003423/1.762, allocations: 0.883 MB / 0.8617 GB, free: 45.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03166/1.793, allocations: 14.89 MB / 0.8762 GB, free: 44.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005786/1.794, allocations: 19.66 kB / 0.8762 GB, free: 44.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003201/1.797, allocations: 388.6 kB / 0.8766 GB, free: 44.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000843/1.798, allocations: 0.6839 MB / 0.8773 GB, free: 44.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02916/1.827, allocations: 12.73 MB / 0.8897 GB, free: 44.68 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08999/1.917, allocations: 47.95 MB / 0.9365 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02133/1.939, allocations: 28.48 MB / 0.9644 GB, free: 11.33 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007325/1.939, allocations: 241.4 kB / 0.9646 GB, free: 11.13 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.149e-05/1.94, allocations: 75.53 kB / 0.9647 GB, free: 11.06 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 7.645e-06/1.94, allocations: 0 / 0.9647 GB, free: 11.06 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03398/1.974, allocations: 14.6 MB / 0.9789 GB, free: 2.918 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.379e-05/1.974, allocations: 90.5 kB / 0.979 GB, free: 2.816 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007594/1.981, allocations: 3.163 MB / 0.9821 GB, free: 152 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007486/1.982, allocations: 89.7 kB / 0.9822 GB, free: 56 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003238/1.985, allocations: 4.029 MB / 0.9861 GB, free: 12.49 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001903/1.987, allocations: 1.351 MB / 0.9874 GB, free: 11.27 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007888/1.988, allocations: 120 kB / 0.9875 GB, free: 11.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006318/1.989, allocations: 0.5434 MB / 0.9881 GB, free: 10.68 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004722/1.993, allocations: 2.566 MB / 0.9906 GB, free: 8.523 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006602/2, allocations: 5.019 MB / 0.9955 GB, free: 2.879 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2849/2.285, allocations: 3.757 MB / 0.9991 GB, free: 74.65 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001114/2.285, allocations: 23.91 kB / 0.9992 GB, free: 74.65 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01543/2.301, allocations: 8.562 MB / 1.008 GB, free: 74.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.538e-05/2.301, allocations: 40.69 kB / 1.008 GB, free: 74.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001355/2.301, allocations: 82.06 kB / 1.008 GB, free: 74.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002281/2.303, allocations: 0.8324 MB / 1.008 GB, free: 74.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005456/2.309, allocations: 1.374 MB / 1.01 GB, free: 74.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009078/2.318, allocations: 7.161 MB / 1.017 GB, free: 73.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005192/2.323, allocations: 333.7 kB / 1.017 GB, free: 73.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001126/2.324, allocations: 304.2 kB / 1.017 GB, free: 73.11 MB / 490.7 MB 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.006958/2.331, allocations: 3.515 MB / 1.021 GB, free: 72.99 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009979/2.332, allocations: 407.8 kB / 1.021 GB, free: 72.99 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01037/2.343, allocations: 5.915 MB / 1.027 GB, free: 72.78 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.662e-05/2.343, allocations: 43.88 kB / 1.027 GB, free: 72.78 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/2.343, allocations: 10.88 kB / 1.027 GB, free: 72.78 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.654e-05/2.343, allocations: 20.98 kB / 1.027 GB, free: 72.78 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03065/2.373, allocations: 15 MB / 1.042 GB, free: 71.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/2.373, allocations: 6.031 kB / 1.042 GB, free: 71.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002615/2.376, allocations: 0.695 MB / 1.042 GB, free: 71.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001874/2.378, allocations: 0.6863 MB / 1.043 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002618/2.378, allocations: 88.64 kB / 1.043 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007406/2.386, allocations: 6.325 MB / 1.049 GB, free: 69.97 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/2.386, allocations: 10.02 kB / 1.049 GB, free: 69.96 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01208/2.398, allocations: 9.02 MB / 1.058 GB, free: 68.72 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002482/2.4, allocations: 0.8783 MB / 1.059 GB, free: 68.42 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006307/2.401, allocations: 78.64 kB / 1.059 GB, free: 68.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00186/2.403, allocations: 193.9 kB / 1.059 GB, free: 68.42 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004457/2.403, allocations: 269.3 kB / 1.06 GB, free: 68.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002113/2.403, allocations: 115.1 kB / 1.06 GB, free: 68.41 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003416/2.407, allocations: 2.356 MB / 1.062 GB, free: 68.26 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/2.407, allocations: 1.969 kB / 1.062 GB, free: 68.26 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00646/2.413, allocations: 1.593 MB / 1.063 GB, free: 68.26 MB / 490.7 MB 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.001115/2.414, allocations: 0.5897 MB / 1.064 GB, free: 68.14 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009611/2.424, allocations: 6.461 MB / 1.07 GB, free: 66.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/2.424, allocations: 0 / 1.07 GB, free: 66.21 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004035/2.428, allocations: 2.88 MB / 1.073 GB, free: 65.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003957/2.432, allocations: 0.8522 MB / 1.074 GB, free: 64.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0352/2.467, allocations: 19.47 MB / 1.093 GB, free: 54.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009914/2.477, allocations: 6.112 MB / 1.099 GB, free: 52.24 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006081/2.483, allocations: 1.873 MB / 1.101 GB, free: 52.09 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/2.485, allocations: 349.8 kB / 1.101 GB, free: 52.06 MB / 490.7 MB Notification: Performance of SimCode: time 1.172e-06/2.485, allocations: 0 / 1.101 GB, free: 52.06 MB / 490.7 MB Notification: Performance of Templates: time 0.1022/2.587, allocations: 61.92 MB / 1.162 GB, free: 16.15 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 -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_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:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_functions.h:1167: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:1176: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:1185: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:1194: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