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.SMR_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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000901/0.0009011, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.289/1.289, allocations: 223.3 MB / 241.4 MB, free: 11.73 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.0008144/0.0008144, allocations: 98.39 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003252, allocations: 8 kB / 352.4 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2411, allocations: 50.38 MB / 402.8 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3987/0.6398, allocations: 157.6 MB / 0.5472 GB, free: 44.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.6401, allocations: 108.2 kB / 0.5473 GB, free: 44.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.199/1.839, allocations: 373.3 MB / 0.9118 GB, free: 41.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.839, allocations: 3.969 kB / 0.9118 GB, free: 41.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001338/1.841, allocations: 280.2 kB / 0.9121 GB, free: 41.22 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04088/1.881, allocations: 11.27 MB / 0.9231 GB, free: 37.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/1.882, allocations: 9.469 kB / 0.9231 GB, free: 37.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0242/1.906, allocations: 4.425 MB / 0.9274 GB, free: 36.75 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02431/1.93, allocations: 8.746 MB / 0.936 GB, free: 35.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001194/1.931, allocations: 0.8725 MB / 0.9368 GB, free: 35.16 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005963/1.937, allocations: 1.154 MB / 0.938 GB, free: 35.14 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05136/1.989, allocations: 18.52 MB / 0.956 GB, free: 25.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006846/1.989, allocations: 19.12 kB / 0.9561 GB, free: 25.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004571/1.994, allocations: 0.4954 MB / 0.9565 GB, free: 25.11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000913/1.995, allocations: 0.8103 MB / 0.9573 GB, free: 24.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0391/2.034, allocations: 15.52 MB / 0.9725 GB, free: 10.84 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4081/2.442, allocations: 59.17 MB / 1.03 GB, free: 27.39 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02743/2.47, allocations: 32.78 MB / 1.062 GB, free: 31.64 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005621/2.475, allocations: 3.672 MB / 1.066 GB, free: 31.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01459/2.49, allocations: 8.533 MB / 1.074 GB, free: 30.94 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.38e-05/2.49, allocations: 74.66 kB / 1.074 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=351): time 5.099e-06/2.49, allocations: 0 / 1.074 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=391): time 0.03424/2.524, allocations: 17.4 MB / 1.091 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/2.524, allocations: 91.62 kB / 1.091 GB, free: 28.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007399/2.532, allocations: 4.851 MB / 1.096 GB, free: 27.96 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007798/2.533, allocations: 89.27 kB / 1.096 GB, free: 27.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002655/2.535, allocations: 5.457 MB / 1.102 GB, free: 24.97 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001449/2.537, allocations: 1.362 MB / 1.103 GB, free: 24.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00033/2.537, allocations: 140.5 kB / 1.103 GB, free: 24.12 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003687/2.537, allocations: 0.5821 MB / 1.104 GB, free: 23.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003808/2.541, allocations: 2.844 MB / 1.106 GB, free: 23.79 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004983/2.546, allocations: 5.908 MB / 1.112 GB, free: 19.99 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/2.557, allocations: 9.453 MB / 1.121 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/2.557, allocations: 30.94 kB / 1.121 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=873) (initialization): time 0.02149/2.578, allocations: 9.773 MB / 1.131 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/2.578, allocations: 46.66 kB / 1.131 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002121/2.579, allocations: 105 kB / 1.131 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003224/2.582, allocations: 0.9236 MB / 1.132 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007425/2.589, allocations: 1.592 MB / 1.133 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01489/2.604, allocations: 9.415 MB / 1.143 GB, free: 7.734 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007884/2.612, allocations: 415 kB / 1.143 GB, free: 7.594 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001884/2.614, allocations: 358.2 kB / 1.143 GB, free: 7.539 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * 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 (823): * Single equations (assignments): 817 * 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 prepare postOptimizeDAE: time 0.01223/2.626, allocations: 4.258 MB / 1.148 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001645/2.628, allocations: 0.5045 MB / 1.148 GB, free: 21.24 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/2.639, allocations: 6.385 MB / 1.154 GB, free: 18.59 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.736e-05/2.64, allocations: 49.8 kB / 1.154 GB, free: 18.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/2.64, allocations: 6.312 kB / 1.154 GB, free: 18.59 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.815e-05/2.64, allocations: 19.73 kB / 1.154 GB, free: 18.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03189/2.671, allocations: 15.52 MB / 1.17 GB, free: 12.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/2.672, allocations: 2.531 kB / 1.17 GB, free: 12.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003283/2.675, allocations: 0.7394 MB / 1.17 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002106/2.677, allocations: 0.7795 MB / 1.171 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005093/2.677, allocations: 87.48 kB / 1.171 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/2.688, allocations: 8.583 MB / 1.179 GB, free: 4.598 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/2.688, allocations: 4 kB / 1.179 GB, free: 4.594 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01739/2.705, allocations: 9.348 MB / 1.189 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004007/2.709, allocations: 1.047 MB / 1.19 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001697/2.711, allocations: 68 kB / 1.19 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003502/2.714, allocations: 232.3 kB / 1.19 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007321/2.715, allocations: 262.1 kB / 1.19 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003/2.715, allocations: 116.4 kB / 1.19 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006791/2.722, allocations: 3.211 MB / 1.193 GB, free: 8.383 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.61e-07/2.722, allocations: 4 kB / 1.193 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008857/2.731, allocations: 1.923 MB / 1.195 GB, free: 6.465 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (369): * Single equations (assignments): 363 * 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,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00136/2.733, allocations: 0.5732 MB / 1.196 GB, free: 5.988 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.2617/2.994, allocations: 7.804 MB / 1.203 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/2.994, allocations: 1.25 kB / 1.203 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005409/3, allocations: 3.489 MB / 1.207 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007361/3.007, allocations: 1.203 MB / 1.208 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0342/3.041, allocations: 23.93 MB / 1.231 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008038/3.049, allocations: 7.32 MB / 1.239 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006641/3.056, allocations: 2.149 MB / 1.241 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/3.057, allocations: 411.3 kB / 1.241 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of SimCode: time 8.71e-07/3.057, allocations: 0 / 1.241 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.1284/3.186, allocations: 74.63 MB / 1.314 GB, free: 91.28 MB / 0.5261 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.SMR_CurrentSource.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_model.h:26: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1157: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.SMR_CurrentSource_functions.h:1166: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.SMR_CurrentSource_functions.h:1175: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.SMR_CurrentSource_functions.h:1184: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.SMR_CurrentSource.o] Error 1