Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadModel(Modelica): time 1.877/1.877, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.253e-05/3.28e-05, allocations: 6.906 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07751/0.07757, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4141/0.4918, allocations: 147.2 MB / 447 MB, free: 1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.4921, allocations: 108.5 kB / 447.2 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.095/2.587, allocations: 458.7 MB / 0.8846 GB, free: 36.85 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.392e-06/2.587, allocations: 0 / 0.8846 GB, free: 36.85 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009916/2.588, allocations: 333.9 kB / 0.8849 GB, free: 36.82 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.05433/2.642, allocations: 13.27 MB / 0.8979 GB, free: 32.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/2.642, allocations: 11.16 kB / 0.8979 GB, free: 32.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04839/2.691, allocations: 6.471 MB / 0.9042 GB, free: 31.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03446/2.725, allocations: 11.51 MB / 0.9155 GB, free: 30.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001477/2.727, allocations: 1.055 MB / 0.9165 GB, free: 30.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006303/2.733, allocations: 1.369 MB / 0.9178 GB, free: 30.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06695/2.8, allocations: 23.37 MB / 0.9407 GB, free: 26.33 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006034/2.801, allocations: 18.12 kB / 0.9407 GB, free: 26.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0052/2.806, allocations: 0.5894 MB / 0.9412 GB, free: 25.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001174/2.807, allocations: 0.9325 MB / 0.9422 GB, free: 25.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05448/2.862, allocations: 20.99 MB / 0.9627 GB, free: 10.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.529/3.391, allocations: 75.25 MB / 1.036 GB, free: 33.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03584/3.427, allocations: 28.25 MB / 1.064 GB, free: 33.79 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01955/3.446, allocations: 9.358 MB / 1.073 GB, free: 33.68 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06815/3.514, allocations: 29.55 MB / 1.102 GB, free: 26.07 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001087/3.515, allocations: 119.5 kB / 1.102 GB, free: 25.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=934): time 1.528e-05/3.515, allocations: 0 / 1.102 GB, free: 25.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=942): time 0.07789/3.592, allocations: 33.15 MB / 1.134 GB, free: 10.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/3.593, allocations: 160.3 kB / 1.134 GB, free: 10.44 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009924/3.603, allocations: 4.093 MB / 1.138 GB, free: 8.887 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001782/3.604, allocations: 155.7 kB / 1.139 GB, free: 8.754 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004959/3.609, allocations: 5.062 MB / 1.143 GB, free: 4.84 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005306/3.615, allocations: 3.103 MB / 1.146 GB, free: 2.422 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002081/3.617, allocations: 166.4 kB / 1.147 GB, free: 2.293 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001355/3.618, allocations: 0.6948 MB / 1.147 GB, free: 1.812 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01748/3.636, allocations: 6.126 MB / 1.153 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01755/3.653, allocations: 7.845 MB / 1.161 GB, free: 9.211 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01778/3.671, allocations: 7.271 MB / 1.168 GB, free: 3.008 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.361e-05/3.671, allocations: 15.95 kB / 1.168 GB, free: 2.992 MB / 490.7 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.383/4.054, allocations: 19.04 MB / 1.187 GB, free: 79.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.853e-05/4.055, allocations: 29.09 kB / 1.187 GB, free: 79.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001136/4.055, allocations: 48.44 kB / 1.187 GB, free: 79.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01658/4.071, allocations: 5.868 MB / 1.192 GB, free: 79.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008602/4.08, allocations: 1.521 MB / 1.194 GB, free: 79.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02916/4.109, allocations: 19.98 MB / 1.213 GB, free: 71.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008072/4.117, allocations: 432.4 kB / 1.214 GB, free: 71.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002384/4.12, allocations: 372.2 kB / 1.214 GB, free: 71.93 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (800): * Single equations (assignments): 747 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.004011/4.124, allocations: 0.5671 MB / 1.215 GB, free: 71.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003015/4.127, allocations: 0.6567 MB / 1.215 GB, free: 71.82 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04489/4.172, allocations: 18.04 MB / 1.233 GB, free: 71.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03194/4.204, allocations: 14.28 MB / 1.247 GB, free: 70.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-05/4.204, allocations: 8.781 kB / 1.247 GB, free: 70.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001588/4.204, allocations: 41.3 kB / 1.247 GB, free: 70.05 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08554/4.289, allocations: 35.35 MB / 1.282 GB, free: 54.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000136/4.29, allocations: 3.531 kB / 1.282 GB, free: 54.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007174/4.297, allocations: 1.045 MB / 1.283 GB, free: 54.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01712/4.314, allocations: 5.951 MB / 1.288 GB, free: 52.82 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002112/4.316, allocations: 211 kB / 1.289 GB, free: 52.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03397/4.35, allocations: 24.21 MB / 1.312 GB, free: 32.43 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.304e-06/4.35, allocations: 10.75 kB / 1.312 GB, free: 32.43 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05815/4.408, allocations: 27.04 MB / 1.339 GB, free: 8.426 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006968/4.415, allocations: 2.11 MB / 1.341 GB, free: 6.523 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0033/4.419, allocations: 146.8 kB / 1.341 GB, free: 6.383 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007158/4.426, allocations: 373.9 kB / 1.341 GB, free: 6.109 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003031/4.429, allocations: 0.7058 MB / 1.342 GB, free: 5.664 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002122/4.431, allocations: 258.9 kB / 1.342 GB, free: 5.434 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007778/4.439, allocations: 3.102 MB / 1.345 GB, free: 2.664 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.491e-06/4.439, allocations: 0 / 1.345 GB, free: 2.664 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01688/4.456, allocations: 2.963 MB / 1.348 GB, free: 1.121 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (552): * Single equations (assignments): 498 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.3335/4.789, allocations: 0.7314 MB / 1.349 GB, free: 78.08 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03547/4.825, allocations: 15.39 MB / 1.364 GB, free: 77.14 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.712e-06/4.825, allocations: 0 / 1.364 GB, free: 77.14 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02056/4.846, allocations: 8.712 MB / 1.372 GB, free: 76.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01069/4.856, allocations: 1.481 MB / 1.374 GB, free: 76.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0692/4.926, allocations: 25.51 MB / 1.399 GB, free: 72.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02145/4.947, allocations: 9.033 MB / 1.408 GB, free: 70.99 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003848/4.951, allocations: 0.5052 MB / 1.408 GB, free: 70.98 MB / 490.7 MB Notification: Performance of SimCode: time 2.452e-06/4.951, allocations: 0 / 1.408 GB, free: 70.98 MB / 490.7 MB Notification: Performance of Templates: time 3.372/8.323, allocations: 1.099 GB / 2.507 GB, free: 89.39 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:508:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp330 = 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.InductionMachines.IMC_DOLFunctions.cpp:508:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp330 = 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.InductionMachines.IMC_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o] Error 1