Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 227.2 MB / 245 MB, free: 5.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008867/0.0008868, allocations: 102.4 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002297/0.0002297, allocations: 4 kB / 358 MB, free: 9.293 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.218, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3307/0.5488, allocations: 137.8 MB / 0.5344 GB, free: 44.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.5491, allocations: 110.9 kB / 0.5345 GB, free: 44.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.06/1.609, allocations: 338.7 MB / 0.8653 GB, free: 56.12 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.609, allocations: 2.531 kB / 0.8653 GB, free: 56.12 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005059/1.61, allocations: 200.2 kB / 0.8655 GB, free: 56.11 MB / 474.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.02943/1.639, allocations: 8.884 MB / 0.8741 GB, free: 53.28 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/1.639, allocations: 13.75 kB / 0.8742 GB, free: 53.28 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02061/1.66, allocations: 3.927 MB / 0.878 GB, free: 52.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01882/1.679, allocations: 7.368 MB / 0.8852 GB, free: 51.89 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006691/1.679, allocations: 0.6717 MB / 0.8858 GB, free: 51.88 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003472/1.683, allocations: 0.8851 MB / 0.8867 GB, free: 51.87 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0314/1.714, allocations: 14.88 MB / 0.9012 GB, free: 50.72 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004054/1.715, allocations: 12.72 kB / 0.9013 GB, free: 50.72 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002721/1.718, allocations: 392.9 kB / 0.9016 GB, free: 50.71 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008028/1.718, allocations: 0.6921 MB / 0.9023 GB, free: 50.69 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02329/1.742, allocations: 12.73 MB / 0.9147 GB, free: 50.6 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0768/1.819, allocations: 48.35 MB / 0.962 GB, free: 28.46 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01893/1.837, allocations: 28.5 MB / 0.9898 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008308/1.838, allocations: 323.4 kB / 0.9901 GB, free: 0.6953 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.521e-05/1.838, allocations: 75.83 kB / 0.9902 GB, free: 0.625 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 6.512e-06/1.839, allocations: 4 kB / 0.9902 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03004/1.869, allocations: 14.64 MB / 1.004 GB, free: 9.906 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/1.869, allocations: 90.5 kB / 1.005 GB, free: 9.805 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006857/1.876, allocations: 3.163 MB / 1.008 GB, free: 7.141 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007021/1.876, allocations: 89.7 kB / 1.008 GB, free: 7.047 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002868/1.879, allocations: 4.019 MB / 1.012 GB, free: 3.484 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00167/1.881, allocations: 1.347 MB / 1.013 GB, free: 2.277 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006935/1.882, allocations: 125.3 kB / 1.013 GB, free: 2.156 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005793/1.882, allocations: 0.5504 MB / 1.014 GB, free: 1.668 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006418/1.889, allocations: 2.749 MB / 1.016 GB, free: 0 / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006725/1.895, allocations: 5.024 MB / 1.021 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00568/1.901, allocations: 3.758 MB / 1.025 GB, free: 7.07 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-05/1.901, allocations: 24 kB / 1.025 GB, free: 7.047 MB / 0.4948 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01595/1.917, allocations: 8.56 MB / 1.033 GB, free: 68 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.597e-05/1.917, allocations: 40 kB / 1.033 GB, free: 28 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004591/1.918, allocations: 108.5 kB / 1.033 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2638/2.181, allocations: 0.8305 MB / 1.034 GB, free: 81.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005082/2.187, allocations: 1.381 MB / 1.036 GB, free: 81.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008874/2.195, allocations: 7.161 MB / 1.043 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005183/2.201, allocations: 336.9 kB / 1.043 GB, free: 80.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009166/2.202, allocations: 307.8 kB / 1.043 GB, free: 80.16 MB / 0.4948 GB 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.007412/2.209, allocations: 3.508 MB / 1.047 GB, free: 80.05 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009797/2.21, allocations: 405.4 kB / 1.047 GB, free: 80.05 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008516/2.219, allocations: 5.925 MB / 1.053 GB, free: 79.86 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.357e-05/2.219, allocations: 40.19 kB / 1.053 GB, free: 79.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/2.219, allocations: 14.03 kB / 1.053 GB, free: 79.86 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-05/2.219, allocations: 23.62 kB / 1.053 GB, free: 79.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02208/2.241, allocations: 15 MB / 1.067 GB, free: 78.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/2.241, allocations: 3.375 kB / 1.067 GB, free: 78.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00256/2.243, allocations: 0.6997 MB / 1.068 GB, free: 78.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001664/2.245, allocations: 0.685 MB / 1.069 GB, free: 78.42 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002136/2.245, allocations: 87.84 kB / 1.069 GB, free: 78.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00707/2.252, allocations: 6.331 MB / 1.075 GB, free: 77.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/2.252, allocations: 7.969 kB / 1.075 GB, free: 77.06 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/2.264, allocations: 9.022 MB / 1.084 GB, free: 76 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002245/2.266, allocations: 0.8767 MB / 1.085 GB, free: 75.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004671/2.266, allocations: 76.81 kB / 1.085 GB, free: 75.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001703/2.268, allocations: 190.5 kB / 1.085 GB, free: 75.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004262/2.269, allocations: 271.2 kB / 1.085 GB, free: 75.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002142/2.269, allocations: 112.3 kB / 1.085 GB, free: 75.69 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003766/2.273, allocations: 2.361 MB / 1.088 GB, free: 75.54 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/2.273, allocations: 2.812 kB / 1.088 GB, free: 75.54 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007283/2.28, allocations: 1.608 MB / 1.089 GB, free: 75.54 MB / 0.4948 GB 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.001206/2.281, allocations: 0.6149 MB / 1.09 GB, free: 75.41 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008604/2.29, allocations: 6.447 MB / 1.096 GB, free: 75.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/2.29, allocations: 3.812 kB / 1.096 GB, free: 75.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003519/2.293, allocations: 2.879 MB / 1.099 GB, free: 74.97 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003711/2.297, allocations: 0.854 MB / 1.1 GB, free: 74.95 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0335/2.33, allocations: 19.61 MB / 1.119 GB, free: 65.06 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005022/2.336, allocations: 6.115 MB / 1.125 GB, free: 62.78 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005066/2.341, allocations: 1.871 MB / 1.127 GB, free: 62.62 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008982/2.341, allocations: 345 kB / 1.127 GB, free: 62.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.403e-06/2.342, allocations: 0.5625 kB / 1.127 GB, free: 62.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.09224/2.434, allocations: 62.15 MB / 1.188 GB, free: 34.91 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile make -j1 -f Modelica_trunk_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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_model.h:24: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_functions.h:1168: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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_functions.h:1177: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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_functions.h:1186: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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_functions.h:1195: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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.o] Error 1