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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 181.2 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.281/1.281, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0008653/0.0008654, allocations: 94.14 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002782, allocations: 4 kB / 351.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2524, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4212/0.6737, allocations: 164 MB / 0.5523 GB, free: 41.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.674, allocations: 104.5 kB / 0.5524 GB, free: 41.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.254/1.928, allocations: 386.5 MB / 0.9298 GB, free: 37.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.006e-06/1.929, allocations: 3.438 kB / 0.9298 GB, free: 37.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001084/1.93, allocations: 289 kB / 0.9301 GB, free: 37.12 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04332/1.973, allocations: 11.7 MB / 0.9415 GB, free: 33.17 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/1.973, allocations: 14.91 kB / 0.9415 GB, free: 33.17 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02463/1.998, allocations: 4.511 MB / 0.9459 GB, free: 32.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02763/2.025, allocations: 9.573 MB / 0.9553 GB, free: 28.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001185/2.027, allocations: 0.8938 MB / 0.9561 GB, free: 27.96 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005131/2.032, allocations: 1.193 MB / 0.9573 GB, free: 26.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05203/2.084, allocations: 18.77 MB / 0.9756 GB, free: 10.56 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007823/2.085, allocations: 23.75 kB / 0.9757 GB, free: 10.54 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005507/2.09, allocations: 0.5114 MB / 0.9762 GB, free: 10.04 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001243/2.091, allocations: 0.8206 MB / 0.977 GB, free: 9.312 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04301/2.134, allocations: 15.8 MB / 0.9924 GB, free: 9.914 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.508/2.642, allocations: 61 MB / 1.052 GB, free: 35.89 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03483/2.677, allocations: 33.07 MB / 1.084 GB, free: 23.93 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02477/2.702, allocations: 8.888 MB / 1.093 GB, free: 23.09 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.561e-05/2.702, allocations: 79.69 kB / 1.093 GB, free: 23.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=373): time 5.851e-06/2.702, allocations: 0 / 1.093 GB, free: 23.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=415): time 0.03598/2.738, allocations: 18.2 MB / 1.111 GB, free: 18.93 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/2.738, allocations: 93.41 kB / 1.111 GB, free: 18.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007831/2.746, allocations: 4.52 MB / 1.115 GB, free: 17.18 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009893/2.747, allocations: 97.8 kB / 1.115 GB, free: 17.09 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004009/2.751, allocations: 5.603 MB / 1.121 GB, free: 12.88 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002124/2.753, allocations: 1.439 MB / 1.122 GB, free: 11.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005268/2.754, allocations: 141.7 kB / 1.122 GB, free: 11.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004614/2.754, allocations: 0.5819 MB / 1.123 GB, free: 11.24 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004223/2.759, allocations: 2.947 MB / 1.126 GB, free: 10.12 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005811/2.764, allocations: 6.027 MB / 1.132 GB, free: 4.906 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006418/2.771, allocations: 4.297 MB / 1.136 GB, free: 3.039 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.631e-05/2.771, allocations: 33.22 kB / 1.136 GB, free: 3.035 MB / 490.7 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02226/2.793, allocations: 10.13 MB / 1.146 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001566/2.794, allocations: 49.16 kB / 1.146 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000223/2.794, allocations: 105.7 kB / 1.146 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002771/2.797, allocations: 0.9442 MB / 1.147 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006883/2.803, allocations: 1.656 MB / 1.149 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/2.816, allocations: 9.664 MB / 1.158 GB, free: 8.789 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006843/2.823, allocations: 425.1 kB / 1.158 GB, free: 8.645 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/2.825, allocations: 368 kB / 1.159 GB, free: 8.59 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * 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 (853): * Single equations (assignments): 847 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01089/2.836, allocations: 4.313 MB / 1.163 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002062/2.838, allocations: 0.5366 MB / 1.163 GB, free: 6.168 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/2.852, allocations: 6.67 MB / 1.17 GB, free: 1.344 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.809e-05/2.852, allocations: 44 kB / 1.17 GB, free: 1.301 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/2.852, allocations: 8 kB / 1.17 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.176e-05/2.852, allocations: 22.31 kB / 1.17 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03409/2.886, allocations: 16.25 MB / 1.186 GB, free: 4.105 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/2.886, allocations: 4.094 kB / 1.186 GB, free: 4.102 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003785/2.89, allocations: 0.797 MB / 1.187 GB, free: 3.449 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002372/2.892, allocations: 0.7771 MB / 1.187 GB, free: 2.844 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004979/2.893, allocations: 89.62 kB / 1.188 GB, free: 2.762 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3241/3.217, allocations: 8.868 MB / 1.196 GB, free: 93.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/3.217, allocations: 9.219 kB / 1.196 GB, free: 93.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01517/3.232, allocations: 10.22 MB / 1.206 GB, free: 92.72 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0036/3.236, allocations: 1.099 MB / 1.207 GB, free: 92.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/3.237, allocations: 78.27 kB / 1.207 GB, free: 92.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002905/3.24, allocations: 240.7 kB / 1.208 GB, free: 92.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005812/3.241, allocations: 286.8 kB / 1.208 GB, free: 92.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/3.241, allocations: 118.3 kB / 1.208 GB, free: 92.61 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005493/3.246, allocations: 3.366 MB / 1.211 GB, free: 92.43 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.71e-07/3.246, allocations: 3.75 kB / 1.211 GB, free: 92.43 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01136/3.258, allocations: 1.994 MB / 1.213 GB, free: 92.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (395): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002224/3.26, allocations: 0.6768 MB / 1.214 GB, free: 92.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01291/3.273, allocations: 7.803 MB / 1.221 GB, free: 91.65 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/3.273, allocations: 3.938 kB / 1.221 GB, free: 91.65 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005553/3.278, allocations: 3.606 MB / 1.225 GB, free: 91.05 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007372/3.286, allocations: 1.265 MB / 1.226 GB, free: 91.03 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04981/3.336, allocations: 25.11 MB / 1.251 GB, free: 80.85 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01617/3.352, allocations: 7.625 MB / 1.258 GB, free: 79.79 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009228/3.361, allocations: 2.192 MB / 1.26 GB, free: 79.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002164/3.363, allocations: 423.7 kB / 1.261 GB, free: 79.58 MB / 0.5105 GB Notification: Performance of SimCode: time 1.172e-06/3.363, allocations: 0 / 1.261 GB, free: 79.58 MB / 0.5105 GB Notification: Performance of Templates: time 0.1395/3.503, allocations: 78.81 MB / 1.338 GB, free: 44.55 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=10 -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_CurrentSource.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_functions.h:1391: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_CurrentSource_functions.h:1400: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_CurrentSource_functions.h:1409: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_CurrentSource_functions.h:1418: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_CurrentSource.o] Error 1