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.001284/0.001284, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 227.2 MB / 245 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009336/0.0009339, allocations: 104.2 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002593/0.0002594, allocations: 11.98 kB / 358 MB, free: 9.281 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2174, allocations: 51.47 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3723/0.5898, allocations: 164.9 MB / 0.5609 GB, free: 30.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.5901, allocations: 105.9 kB / 0.561 GB, free: 30.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.213/1.803, allocations: 404.9 MB / 0.9565 GB, free: 41.09 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.687e-06/1.804, allocations: 0 / 0.9565 GB, free: 41.09 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001485/1.805, allocations: 286.2 kB / 0.9567 GB, free: 41.06 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.04056/1.846, allocations: 11.74 MB / 0.9682 GB, free: 37.11 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/1.846, allocations: 11.16 kB / 0.9682 GB, free: 37.11 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02626/1.872, allocations: 4.51 MB / 0.9726 GB, free: 36.43 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02285/1.895, allocations: 9.603 MB / 0.982 GB, free: 32.92 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007687/1.896, allocations: 0.8978 MB / 0.9829 GB, free: 32.52 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00389/1.9, allocations: 1.184 MB / 0.984 GB, free: 32.12 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03942/1.939, allocations: 18.78 MB / 1.002 GB, free: 16.64 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004107/1.939, allocations: 27.33 kB / 1.002 GB, free: 16.61 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002771/1.942, allocations: 0.505 MB / 1.003 GB, free: 16.12 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007672/1.943, allocations: 0.8211 MB / 1.004 GB, free: 15.39 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03477/1.978, allocations: 15.79 MB / 1.019 GB, free: 1.258 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3997/2.377, allocations: 61.86 MB / 1.08 GB, free: 35.29 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02417/2.402, allocations: 33.41 MB / 1.112 GB, free: 39.05 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01889/2.421, allocations: 9.093 MB / 1.121 GB, free: 38.03 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.628e-05/2.421, allocations: 82.73 kB / 1.121 GB, free: 37.98 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=373): time 5.1e-06/2.421, allocations: 0 / 1.121 GB, free: 37.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=415): time 0.03493/2.456, allocations: 18.2 MB / 1.139 GB, free: 35.37 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.009e-05/2.456, allocations: 94.81 kB / 1.139 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00753/2.463, allocations: 4.531 MB / 1.143 GB, free: 34.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007417/2.464, allocations: 95.08 kB / 1.143 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00259/2.467, allocations: 5.608 MB / 1.149 GB, free: 31.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001307/2.468, allocations: 1.44 MB / 1.15 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/2.468, allocations: 141.3 kB / 1.151 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003447/2.469, allocations: 0.5887 MB / 1.151 GB, free: 30.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003709/2.472, allocations: 2.943 MB / 1.154 GB, free: 30.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005083/2.478, allocations: 6.023 MB / 1.16 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005373/2.483, allocations: 4.302 MB / 1.164 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-05/2.483, allocations: 34.97 kB / 1.164 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=903) (initialization): time 0.01581/2.499, allocations: 10.07 MB / 1.174 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.095e-05/2.499, allocations: 51.5 kB / 1.174 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001755/2.499, allocations: 101.8 kB / 1.174 GB, free: 20.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002399/2.502, allocations: 0.9506 MB / 1.175 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00543/2.507, allocations: 1.653 MB / 1.177 GB, free: 19.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/2.518, allocations: 9.662 MB / 1.186 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00738/2.525, allocations: 424.5 kB / 1.186 GB, free: 13.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001704/2.527, allocations: 373.4 kB / 1.187 GB, free: 13.2 MB / 0.5105 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.01096/2.538, allocations: 4.305 MB / 1.191 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002253/2.54, allocations: 0.5394 MB / 1.192 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/2.555, allocations: 6.674 MB / 1.198 GB, free: 8.012 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/2.555, allocations: 47.38 kB / 1.198 GB, free: 8.008 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.553e-05/2.555, allocations: 7.125 kB / 1.198 GB, free: 8.008 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-05/2.555, allocations: 19.92 kB / 1.198 GB, free: 8.008 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03023/2.585, allocations: 16.23 MB / 1.214 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/2.585, allocations: 4 kB / 1.214 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003376/2.589, allocations: 0.7956 MB / 1.215 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/2.591, allocations: 0.7762 MB / 1.216 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003754/2.591, allocations: 90.8 kB / 1.216 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009139/2.6, allocations: 8.804 MB / 1.224 GB, free: 5.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/2.6, allocations: 4 kB / 1.224 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3256/2.926, allocations: 10.31 MB / 1.234 GB, free: 98.11 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004558/2.93, allocations: 1.099 MB / 1.235 GB, free: 98.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/2.932, allocations: 73.06 kB / 1.235 GB, free: 98.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002503/2.934, allocations: 250.7 kB / 1.236 GB, free: 98.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005264/2.935, allocations: 280 kB / 1.236 GB, free: 98.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002444/2.935, allocations: 119.2 kB / 1.236 GB, free: 98.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00517/2.94, allocations: 3.373 MB / 1.239 GB, free: 97.84 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.62e-07/2.94, allocations: 0 / 1.239 GB, free: 97.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009618/2.95, allocations: 2.01 MB / 1.241 GB, free: 97.84 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 (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.001573/2.952, allocations: 0.6915 MB / 1.242 GB, free: 97.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01232/2.964, allocations: 7.808 MB / 1.25 GB, free: 97.06 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/2.964, allocations: 4.812 kB / 1.25 GB, free: 97.06 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005252/2.969, allocations: 3.608 MB / 1.253 GB, free: 96.46 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006418/2.976, allocations: 1.272 MB / 1.254 GB, free: 96.44 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03943/3.015, allocations: 25.27 MB / 1.279 GB, free: 86.32 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009365/3.025, allocations: 7.628 MB / 1.286 GB, free: 85.26 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006758/3.031, allocations: 2.193 MB / 1.289 GB, free: 85.05 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/3.033, allocations: 424.4 kB / 1.289 GB, free: 85.05 MB / 0.5261 GB Notification: Performance of SimCode: time 8.62e-07/3.033, allocations: 0 / 1.289 GB, free: 85.05 MB / 0.5261 GB Notification: Performance of Templates: time 0.1305/3.163, allocations: 79.17 MB / 1.366 GB, free: 61.2 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 -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_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:24: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_functions.h:1392: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:1401: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:1410: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:1419: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