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.001426/0.001426, allocations: 180.5 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.615/1.615, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008479/0.0008479, allocations: 90.53 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002625, allocations: 11.94 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.248, allocations: 50.39 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.674, allocations: 157.2 MB / 0.5456 GB, free: 44.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.6743, allocations: 108.5 kB / 0.5457 GB, free: 44.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.245/1.919, allocations: 375.3 MB / 0.9122 GB, free: 42 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.919, allocations: 0 / 0.9122 GB, free: 42 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008048/1.92, allocations: 286 kB / 0.9125 GB, free: 41.95 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.04051/1.96, allocations: 11.4 MB / 0.9236 GB, free: 38.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/1.961, allocations: 7.531 kB / 0.9236 GB, free: 38.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0254/1.986, allocations: 4.427 MB / 0.928 GB, free: 37.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02631/2.012, allocations: 9.36 MB / 0.9371 GB, free: 36.01 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001063/2.013, allocations: 0.8732 MB / 0.938 GB, free: 35.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005477/2.019, allocations: 1.155 MB / 0.9391 GB, free: 35.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04911/2.068, allocations: 18.42 MB / 0.9571 GB, free: 24.78 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006111/2.069, allocations: 22.7 kB / 0.9571 GB, free: 24.77 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003999/2.073, allocations: 0.4957 MB / 0.9576 GB, free: 24.28 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001007/2.074, allocations: 0.8133 MB / 0.9584 GB, free: 23.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03907/2.113, allocations: 15.53 MB / 0.9735 GB, free: 9.992 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4411/2.554, allocations: 59.12 MB / 1.031 GB, free: 29.21 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0257/2.58, allocations: 32.77 MB / 1.063 GB, free: 33.47 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/2.596, allocations: 8.623 MB / 1.072 GB, free: 32.64 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.446e-05/2.596, allocations: 76.39 kB / 1.072 GB, free: 32.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=361): time 4.789e-06/2.596, allocations: 0 / 1.072 GB, free: 32.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=401): time 0.03412/2.63, allocations: 17.68 MB / 1.089 GB, free: 30.05 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/2.631, allocations: 92.7 kB / 1.089 GB, free: 29.99 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00741/2.638, allocations: 4.298 MB / 1.093 GB, free: 29.58 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000697/2.639, allocations: 90.36 kB / 1.093 GB, free: 29.55 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002982/2.642, allocations: 5.44 MB / 1.099 GB, free: 26.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001443/2.643, allocations: 1.394 MB / 1.1 GB, free: 25.74 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003503/2.643, allocations: 143.9 kB / 1.1 GB, free: 25.74 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003432/2.644, allocations: 0.5827 MB / 1.101 GB, free: 25.42 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003766/2.648, allocations: 2.876 MB / 1.104 GB, free: 25.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005871/2.654, allocations: 5.887 MB / 1.109 GB, free: 21.66 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006501/2.66, allocations: 4.214 MB / 1.113 GB, free: 21.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.773e-05/2.66, allocations: 29.12 kB / 1.113 GB, free: 21.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.01602/2.676, allocations: 9.826 MB / 1.123 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.413e-05/2.676, allocations: 47.62 kB / 1.123 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/2.677, allocations: 106.5 kB / 1.123 GB, free: 20.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0024/2.679, allocations: 0.9447 MB / 1.124 GB, free: 20.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005734/2.685, allocations: 1.608 MB / 1.126 GB, free: 20.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/2.696, allocations: 9.632 MB / 1.135 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006117/2.702, allocations: 415.5 kB / 1.136 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001128/2.704, allocations: 358.6 kB / 1.136 GB, free: 14.07 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (829): * Single equations (assignments): 823 * 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.008472/2.712, allocations: 4.258 MB / 1.14 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/2.713, allocations: 0.5177 MB / 1.141 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01024/2.724, allocations: 6.485 MB / 1.147 GB, free: 9.148 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.957e-05/2.724, allocations: 44.89 kB / 1.147 GB, free: 9.145 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/2.724, allocations: 9.562 kB / 1.147 GB, free: 9.145 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.371e-05/2.724, allocations: 23.92 kB / 1.147 GB, free: 9.145 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02596/2.75, allocations: 15.71 MB / 1.162 GB, free: 2.832 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/2.75, allocations: 6.219 kB / 1.162 GB, free: 2.832 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003299/2.753, allocations: 0.7661 MB / 1.163 GB, free: 2.805 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/2.755, allocations: 0.7755 MB / 1.164 GB, free: 2.598 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000366/2.756, allocations: 88.16 kB / 1.164 GB, free: 2.543 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009386/2.765, allocations: 8.801 MB / 1.172 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/2.765, allocations: 9.812 kB / 1.172 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0155/2.78, allocations: 9.8 MB / 1.182 GB, free: 3.863 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003514/2.784, allocations: 1.053 MB / 1.183 GB, free: 2.898 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001292/2.785, allocations: 72 kB / 1.183 GB, free: 2.828 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003127/2.788, allocations: 239.8 kB / 1.183 GB, free: 2.664 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005653/2.789, allocations: 270.7 kB / 1.184 GB, free: 2.496 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002884/2.789, allocations: 115.2 kB / 1.184 GB, free: 2.391 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007658/2.797, allocations: 3.284 MB / 1.187 GB, free: 0 / 0.5105 GB Notification: Performance of sort global known variables: time 3.4e-07/2.797, allocations: 336 / 1.187 GB, free: 0 / 0.5105 GB Notification: Performance of remove unused functions: time 0.02191/2.819, allocations: 2.835 MB / 1.19 GB, free: 0 / 0.5105 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 (379): * Single equations (assignments): 373 * 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 Backend phase and start with SimCode phase: time 0.2975/3.116, allocations: 0.5985 MB / 1.19 GB, free: 94.89 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01182/3.128, allocations: 7.653 MB / 1.198 GB, free: 94.22 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/3.128, allocations: 3.812 kB / 1.198 GB, free: 94.22 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005729/3.134, allocations: 3.551 MB / 1.201 GB, free: 93.62 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006466/3.141, allocations: 1.166 MB / 1.202 GB, free: 93.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.039/3.18, allocations: 24.52 MB / 1.226 GB, free: 83.73 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01093/3.191, allocations: 7.522 MB / 1.234 GB, free: 82.66 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007573/3.198, allocations: 2.143 MB / 1.236 GB, free: 82.47 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/3.2, allocations: 408.3 kB / 1.236 GB, free: 82.46 MB / 0.5105 GB Notification: Performance of SimCode: time 1.102e-06/3.2, allocations: 0 / 1.236 GB, free: 82.46 MB / 0.5105 GB Notification: Performance of Templates: time 0.1234/3.323, allocations: 74.16 MB / 1.309 GB, free: 68.54 MB / 0.5105 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 -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_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:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_functions.h:1235: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:1244: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:1253: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:1262: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