Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007847/0.0007848, allocations: 100.2 kB / 297.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002426/0.0002426, allocations: 8 kB / 358.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.257, allocations: 51.28 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4208/0.6779, allocations: 165.3 MB / 0.5612 GB, free: 32.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.6782, allocations: 109.6 kB / 0.5613 GB, free: 32.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.266/1.944, allocations: 402.5 MB / 0.9544 GB, free: 41.47 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.497e-06/1.944, allocations: 0 / 0.9544 GB, free: 41.47 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001425/1.945, allocations: 289.8 kB / 0.9547 GB, free: 41.44 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04288/1.988, allocations: 11.63 MB / 0.9661 GB, free: 37.49 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/1.988, allocations: 11.41 kB / 0.9661 GB, free: 37.49 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02488/2.013, allocations: 4.495 MB / 0.9705 GB, free: 36.81 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02798/2.041, allocations: 8.985 MB / 0.9792 GB, free: 34.6 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001148/2.042, allocations: 0.8971 MB / 0.9801 GB, free: 34.19 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005369/2.048, allocations: 1.184 MB / 0.9813 GB, free: 33.8 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05345/2.101, allocations: 18.88 MB / 0.9997 GB, free: 20.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007534/2.102, allocations: 23 kB / 0.9997 GB, free: 20.23 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004881/2.107, allocations: 0.5105 MB / 1 GB, free: 19.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009404/2.108, allocations: 0.8238 MB / 1.001 GB, free: 19 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03923/2.147, allocations: 15.8 MB / 1.016 GB, free: 5.195 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.42/2.567, allocations: 61.9 MB / 1.077 GB, free: 32.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02374/2.591, allocations: 33.41 MB / 1.11 GB, free: 35.86 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005942/2.597, allocations: 3.767 MB / 1.113 GB, free: 35.81 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01609/2.613, allocations: 9.012 MB / 1.122 GB, free: 34.78 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.213e-05/2.613, allocations: 71.47 kB / 1.122 GB, free: 34.74 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=363): time 4.839e-06/2.613, allocations: 0 / 1.122 GB, free: 34.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=405): time 0.03559/2.649, allocations: 18 MB / 1.14 GB, free: 32.21 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/2.649, allocations: 100.9 kB / 1.14 GB, free: 32.13 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007437/2.656, allocations: 5.102 MB / 1.145 GB, free: 31.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009218/2.657, allocations: 91.05 kB / 1.145 GB, free: 31.67 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004053/2.661, allocations: 5.629 MB / 1.15 GB, free: 28.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002255/2.664, allocations: 1.411 MB / 1.152 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004082/2.664, allocations: 144.8 kB / 1.152 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005314/2.665, allocations: 0.582 MB / 1.152 GB, free: 27.47 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004076/2.669, allocations: 2.913 MB / 1.155 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00515/2.674, allocations: 6.038 MB / 1.161 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/2.684, allocations: 9.677 MB / 1.171 GB, free: 17.43 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-05/2.684, allocations: 30.5 kB / 1.171 GB, free: 17.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=897) (initialization): time 0.01606/2.7, allocations: 10.01 MB / 1.18 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001748/2.7, allocations: 49.12 kB / 1.18 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/2.701, allocations: 108.6 kB / 1.181 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002428/2.703, allocations: 0.9306 MB / 1.181 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005864/2.709, allocations: 1.648 MB / 1.183 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/2.72, allocations: 9.416 MB / 1.192 GB, free: 7.141 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006661/2.726, allocations: 418.3 kB / 1.193 GB, free: 6.996 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001548/2.728, allocations: 370 kB / 1.193 GB, free: 6.941 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * 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 (847): * Single equations (assignments): 841 * 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.01094/2.739, allocations: 4.324 MB / 1.197 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002109/2.741, allocations: 0.5354 MB / 1.198 GB, free: 4.516 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01475/2.756, allocations: 6.56 MB / 1.204 GB, free: 1.801 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.563e-05/2.756, allocations: 48.31 kB / 1.204 GB, free: 1.797 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.585e-05/2.756, allocations: 7.625 kB / 1.204 GB, free: 1.797 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.522e-05/2.756, allocations: 20.34 kB / 1.204 GB, free: 1.797 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04477/2.801, allocations: 16.04 MB / 1.22 GB, free: 9.898 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.599e-05/2.801, allocations: 4 kB / 1.22 GB, free: 9.895 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004022/2.805, allocations: 0.7664 MB / 1.221 GB, free: 9.266 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00259/2.808, allocations: 0.7864 MB / 1.221 GB, free: 8.652 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008187/2.808, allocations: 86.52 kB / 1.222 GB, free: 8.574 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01128/2.82, allocations: 8.581 MB / 1.23 GB, free: 424 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/2.82, allocations: 13.41 kB / 1.23 GB, free: 420 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3213/3.141, allocations: 9.533 MB / 1.239 GB, free: 98.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002619/3.144, allocations: 1.093 MB / 1.24 GB, free: 97.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007842/3.145, allocations: 74.91 kB / 1.24 GB, free: 97.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002453/3.147, allocations: 238.1 kB / 1.241 GB, free: 97.98 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006644/3.148, allocations: 276 kB / 1.241 GB, free: 97.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002445/3.148, allocations: 121.5 kB / 1.241 GB, free: 97.97 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006304/3.154, allocations: 3.376 MB / 1.244 GB, free: 97.79 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.31e-07/3.154, allocations: 2.062 kB / 1.244 GB, free: 97.79 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009473/3.164, allocations: 1.996 MB / 1.246 GB, free: 97.79 MB / 0.5261 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 (385): * Single equations (assignments): 379 * 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,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001411/3.165, allocations: 0.6802 MB / 1.247 GB, free: 97.69 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01141/3.177, allocations: 7.728 MB / 1.254 GB, free: 97.02 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.447e-06/3.177, allocations: 1.5 kB / 1.254 GB, free: 97.02 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00549/3.182, allocations: 3.575 MB / 1.258 GB, free: 96.42 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01256/3.195, allocations: 1.308 MB / 1.259 GB, free: 96.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04503/3.24, allocations: 24.57 MB / 1.283 GB, free: 86.29 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01337/3.253, allocations: 7.427 MB / 1.29 GB, free: 85.22 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008867/3.262, allocations: 2.193 MB / 1.293 GB, free: 85.01 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001771/3.264, allocations: 426 kB / 1.293 GB, free: 85.01 MB / 0.5261 GB Notification: Performance of SimCode: time 7.01e-07/3.264, allocations: 0 / 1.293 GB, free: 85.01 MB / 0.5261 GB Notification: Performance of Templates: time 0.1429/3.407, allocations: 79.69 MB / 1.371 GB, free: 58.67 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_model.h:26: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_functions.h:1304: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_CurrentSource_functions.h:1313: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_CurrentSource_functions.h:1322: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_CurrentSource_functions.h:1331: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_CurrentSource.o] Error 1