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.001516/0.001516, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008559/0.000856, allocations: 100.2 kB / 297.5 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002526, allocations: 8 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2271, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4196/0.6467, allocations: 138 MB / 0.5346 GB, free: 45.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.647, allocations: 109.6 kB / 0.5347 GB, free: 45.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.147/1.794, allocations: 336.5 MB / 0.8633 GB, free: 54.74 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.795, allocations: 0.5625 kB / 0.8633 GB, free: 54.74 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004393/1.795, allocations: 211.9 kB / 0.8635 GB, free: 54.72 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.02798/1.823, allocations: 8.788 MB / 0.8721 GB, free: 51.88 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/1.823, allocations: 7.875 kB / 0.8721 GB, free: 51.88 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02174/1.845, allocations: 3.932 MB / 0.876 GB, free: 51.38 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01444/1.859, allocations: 6.768 MB / 0.8826 GB, free: 50.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004748/1.86, allocations: 0.6704 MB / 0.8832 GB, free: 50.44 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002481/1.862, allocations: 0.8868 MB / 0.8841 GB, free: 50.43 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02854/1.891, allocations: 14.96 MB / 0.8987 GB, free: 49.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003441/1.891, allocations: 18.94 kB / 0.8987 GB, free: 49.28 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002134/1.893, allocations: 388 kB / 0.8991 GB, free: 49.28 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006204/1.894, allocations: 0.6872 MB / 0.8998 GB, free: 49.25 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02545/1.919, allocations: 12.73 MB / 0.9122 GB, free: 49.16 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08589/2.005, allocations: 48.36 MB / 0.9594 GB, free: 28.29 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01779/2.023, allocations: 28.49 MB / 0.9873 GB, free: 0.8398 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005034/2.028, allocations: 3.057 MB / 0.9902 GB, free: 15.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000562/2.029, allocations: 322 kB / 0.9905 GB, free: 15.42 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.529e-05/2.029, allocations: 73.34 kB / 0.9906 GB, free: 15.35 MB / 490.7 MB Notification: Performance of pre-optimization done (n=386): time 9.517e-06/2.029, allocations: 3.047 kB / 0.9906 GB, free: 15.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=394): time 0.0327/2.062, allocations: 14.86 MB / 1.005 GB, free: 8.879 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/2.062, allocations: 94.75 kB / 1.005 GB, free: 8.809 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00701/2.069, allocations: 3.534 MB / 1.009 GB, free: 6.461 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005523/2.069, allocations: 92.14 kB / 1.009 GB, free: 6.367 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002684/2.072, allocations: 4.024 MB / 1.013 GB, free: 2.801 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001518/2.074, allocations: 1.346 MB / 1.014 GB, free: 1.594 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005699/2.074, allocations: 120 kB / 1.014 GB, free: 1.477 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004835/2.075, allocations: 0.5422 MB / 1.015 GB, free: 0.9961 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009487/2.084, allocations: 2.994 MB / 1.018 GB, free: 0 / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006254/2.09, allocations: 5.046 MB / 1.022 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/2.102, allocations: 8.258 MB / 1.031 GB, free: 1.863 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.293e-05/2.102, allocations: 26.53 kB / 1.031 GB, free: 1.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.3228/2.425, allocations: 8.967 MB / 1.039 GB, free: 79.26 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.006e-05/2.425, allocations: 40.56 kB / 1.039 GB, free: 79.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002023/2.425, allocations: 82.78 kB / 1.039 GB, free: 79.26 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002146/2.427, allocations: 0.8866 MB / 1.04 GB, free: 79.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004867/2.432, allocations: 1.356 MB / 1.042 GB, free: 79.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/2.442, allocations: 7.559 MB / 1.049 GB, free: 77.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004839/2.447, allocations: 333.2 kB / 1.049 GB, free: 77.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/2.448, allocations: 304.7 kB / 1.05 GB, free: 77.84 MB / 0.4948 GB 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.007051/2.455, allocations: 3.512 MB / 1.053 GB, free: 77.72 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/2.456, allocations: 413.4 kB / 1.053 GB, free: 77.72 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00922/2.466, allocations: 5.919 MB / 1.059 GB, free: 77.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.699e-05/2.466, allocations: 38.12 kB / 1.059 GB, free: 77.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/2.466, allocations: 13.44 kB / 1.059 GB, free: 77.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.675e-05/2.466, allocations: 17.67 kB / 1.059 GB, free: 77.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/2.491, allocations: 15.38 MB / 1.074 GB, free: 76.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/2.491, allocations: 9.844 kB / 1.074 GB, free: 76.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002514/2.494, allocations: 0.6791 MB / 1.075 GB, free: 76.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/2.495, allocations: 0.6908 MB / 1.076 GB, free: 76.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002795/2.496, allocations: 85.62 kB / 1.076 GB, free: 76.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00749/2.503, allocations: 6.176 MB / 1.082 GB, free: 74.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/2.503, allocations: 11.56 kB / 1.082 GB, free: 74.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01157/2.515, allocations: 8.546 MB / 1.09 GB, free: 73.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002167/2.517, allocations: 0.8809 MB / 1.091 GB, free: 73.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006328/2.518, allocations: 70.31 kB / 1.091 GB, free: 73.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/2.52, allocations: 199.6 kB / 1.091 GB, free: 73.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004793/2.52, allocations: 262.7 kB / 1.092 GB, free: 73.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002115/2.52, allocations: 122.3 kB / 1.092 GB, free: 73.61 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003468/2.524, allocations: 2.358 MB / 1.094 GB, free: 73.47 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.483e-06/2.524, allocations: 0 / 1.094 GB, free: 73.47 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006144/2.53, allocations: 1.613 MB / 1.096 GB, free: 73.46 MB / 0.4948 GB 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.001084/2.531, allocations: 0.6015 MB / 1.096 GB, free: 73.34 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009901/2.541, allocations: 6.474 MB / 1.102 GB, free: 73.08 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.218e-06/2.541, allocations: 0 / 1.102 GB, free: 73.08 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004308/2.545, allocations: 2.893 MB / 1.105 GB, free: 72.89 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007816/2.553, allocations: 0.9026 MB / 1.106 GB, free: 72.82 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03169/2.585, allocations: 18.96 MB / 1.125 GB, free: 62.59 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008477/2.593, allocations: 5.967 MB / 1.13 GB, free: 60.32 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006012/2.599, allocations: 1.866 MB / 1.132 GB, free: 60.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/2.601, allocations: 347.7 kB / 1.133 GB, free: 60.13 MB / 0.4948 GB Notification: Performance of SimCode: time 6.71e-07/2.601, allocations: 0 / 1.133 GB, free: 60.13 MB / 0.4948 GB Notification: Performance of Templates: time 0.1047/2.705, allocations: 62.73 MB / 1.194 GB, free: 30.42 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 -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_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:26: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_functions.h:1096: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:1105: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:1114: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:1123: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