Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.93/1.93, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.331e-05/2.345e-05, allocations: 4 kB / 249.6 MB, free: 15.26 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2537, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4445/0.6982, allocations: 160.5 MB / 454.6 MB, free: 69.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.6986, allocations: 100.7 kB / 454.7 MB, free: 69.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.69/2.388, allocations: 390.3 MB / 0.8252 GB, free: 38.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.233e-06/2.388, allocations: 0 / 0.8252 GB, free: 38.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007932/2.389, allocations: 261 kB / 0.8254 GB, free: 38.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.04096/2.43, allocations: 10.26 MB / 0.8354 GB, free: 35.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/2.43, allocations: 10.66 kB / 0.8354 GB, free: 35.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03363/2.464, allocations: 4.376 MB / 0.8397 GB, free: 34.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02793/2.492, allocations: 8.843 MB / 0.8483 GB, free: 30.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008169/2.493, allocations: 374.5 kB / 0.8487 GB, free: 30.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004443/2.497, allocations: 0.6423 MB / 0.8493 GB, free: 30.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03448/2.532, allocations: 13.25 MB / 0.8623 GB, free: 18.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05156/2.583, allocations: 15.54 MB / 0.8774 GB, free: 3.477 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005208/2.584, allocations: 15.75 kB / 0.8775 GB, free: 3.461 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003651/2.587, allocations: 8 kB / 0.8775 GB, free: 3.453 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00115/2.589, allocations: 0.6904 MB / 0.8781 GB, free: 2.758 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4222/3.011, allocations: 56.58 MB / 0.9334 GB, free: 35.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02443/3.035, allocations: 17.59 MB / 0.9506 GB, free: 25.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01282/3.048, allocations: 6.286 MB / 0.9567 GB, free: 22.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0454/3.094, allocations: 19.17 MB / 0.9754 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.021e-05/3.094, allocations: 91.31 kB / 0.9755 GB, free: 12.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=624): time 1.21e-05/3.094, allocations: 0 / 0.9755 GB, free: 12.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=657): time 0.07259/3.166, allocations: 25.27 MB / 1 GB, free: 1.844 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/3.166, allocations: 131.9 kB / 1 GB, free: 1.746 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008026/3.175, allocations: 3.357 MB / 1.004 GB, free: 400 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001487/3.176, allocations: 25.7 kB / 1.004 GB, free: 368 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006135/3.182, allocations: 4.524 MB / 1.008 GB, free: 13.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003757/3.186, allocations: 2.114 MB / 1.01 GB, free: 11.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/3.188, allocations: 0 / 1.01 GB, free: 11.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001046/3.189, allocations: 0.6259 MB / 1.011 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009881/3.199, allocations: 4.357 MB / 1.015 GB, free: 9.328 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0132/3.212, allocations: 6.337 MB / 1.021 GB, free: 3.465 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02657/3.238, allocations: 6.923 MB / 1.028 GB, free: 15.39 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001018/3.239, allocations: 16 kB / 1.028 GB, free: 15.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=995) (initialization): time 0.03958/3.278, allocations: 13.37 MB / 1.041 GB, free: 4.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.956e-05/3.278, allocations: 34.44 kB / 1.041 GB, free: 4.039 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/3.278, allocations: 60.44 kB / 1.041 GB, free: 3.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007327/3.286, allocations: 2.375 MB / 1.043 GB, free: 2.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008745/3.295, allocations: 1.556 MB / 1.045 GB, free: 0.832 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3244/3.619, allocations: 10.47 MB / 1.055 GB, free: 65.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008837/3.628, allocations: 436.3 kB / 1.056 GB, free: 65.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002133/3.63, allocations: 345.5 kB / 1.056 GB, free: 65.21 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smeeQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (790): * Single equations (assignments): 721 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.003404/3.633, allocations: 371.1 kB / 1.056 GB, free: 65.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00241/3.636, allocations: 0.517 MB / 1.057 GB, free: 65.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03317/3.669, allocations: 12.18 MB / 1.069 GB, free: 64.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02776/3.697, allocations: 10.99 MB / 1.079 GB, free: 64.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.941e-05/3.697, allocations: 3.281 kB / 1.079 GB, free: 64.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001469/3.697, allocations: 32.03 kB / 1.079 GB, free: 64.04 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07301/3.77, allocations: 29.63 MB / 1.108 GB, free: 62.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.65e-05/3.77, allocations: 3.875 kB / 1.108 GB, free: 62.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005622/3.776, allocations: 0.9141 MB / 1.109 GB, free: 62.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007981/3.784, allocations: 2.631 MB / 1.112 GB, free: 61.25 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001413/3.785, allocations: 72.45 kB / 1.112 GB, free: 61.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02067/3.806, allocations: 15.82 MB / 1.127 GB, free: 50.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004425/3.811, allocations: 2.729 MB / 1.13 GB, free: 48.27 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04064/3.851, allocations: 18.91 MB / 1.148 GB, free: 39.46 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005039/3.856, allocations: 1.571 MB / 1.15 GB, free: 38.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002634/3.859, allocations: 15.2 kB / 1.15 GB, free: 38.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00606/3.865, allocations: 289.3 kB / 1.15 GB, free: 38.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002147/3.867, allocations: 0.4981 MB / 1.151 GB, free: 38.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001305/3.869, allocations: 187.9 kB / 1.151 GB, free: 38.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006197/3.875, allocations: 2.421 MB / 1.153 GB, free: 37.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.293e-06/3.875, allocations: 0 / 1.153 GB, free: 37.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01196/3.887, allocations: 1.851 MB / 1.155 GB, free: 37.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (459): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 43,5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002194/3.889, allocations: 0.5019 MB / 1.156 GB, free: 37.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02285/3.912, allocations: 10.78 MB / 1.166 GB, free: 32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/3.912, allocations: 0 / 1.166 GB, free: 32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0136/3.926, allocations: 5.855 MB / 1.172 GB, free: 26.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007401/3.933, allocations: 0.8358 MB / 1.173 GB, free: 26.19 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05181/3.985, allocations: 18.58 MB / 1.191 GB, free: 9.656 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01574/4.001, allocations: 6.795 MB / 1.197 GB, free: 4.551 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003669/4.005, allocations: 450.1 kB / 1.198 GB, free: 4.152 MB / 458.7 MB Notification: Performance of SimCode: time 2.271e-06/4.005, allocations: 0.8438 kB / 1.198 GB, free: 4.152 MB / 458.7 MB Notification: Performance of Templates: time 2.058/6.062, allocations: 0.6617 GB / 1.86 GB, free: 63.66 MB / 0.4949 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=5 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/cpp/" -I. -I"." -I"." -I"." -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:574:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:574:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ 2 errors generated. : recipe for target 'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1