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.831/1.831, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.25e-05/3.266e-05, allocations: 2.188 kB / 255.4 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07907/0.07912, allocations: 44.49 MB / 299.9 MB, free: 6.609 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4171/0.4963, allocations: 147.2 MB / 447.1 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.4966, allocations: 105.8 kB / 447.2 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.053/2.55, allocations: 458.7 MB / 0.8847 GB, free: 36.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.375e-06/2.55, allocations: 0 / 0.8847 GB, free: 36.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00101/2.551, allocations: 326.9 kB / 0.885 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.05388/2.605, allocations: 13.27 MB / 0.8979 GB, free: 32.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/2.605, allocations: 9.406 kB / 0.8979 GB, free: 32.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04991/2.655, allocations: 6.463 MB / 0.9043 GB, free: 31.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03292/2.688, allocations: 11.52 MB / 0.9155 GB, free: 30.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001396/2.689, allocations: 1.054 MB / 0.9165 GB, free: 30.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005855/2.695, allocations: 1.365 MB / 0.9179 GB, free: 30.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06534/2.761, allocations: 23.21 MB / 0.9405 GB, free: 26.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005774/2.761, allocations: 17.09 kB / 0.9405 GB, free: 26.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005122/2.766, allocations: 0.5869 MB / 0.9411 GB, free: 25.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001232/2.768, allocations: 0.9327 MB / 0.942 GB, free: 25.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05444/2.822, allocations: 20.81 MB / 0.9623 GB, free: 10.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4979/3.32, allocations: 75.17 MB / 1.036 GB, free: 33.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03561/3.356, allocations: 28.17 MB / 1.063 GB, free: 33.91 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01905/3.375, allocations: 9.354 MB / 1.072 GB, free: 33.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06787/3.443, allocations: 29.54 MB / 1.101 GB, free: 26.37 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001083/3.443, allocations: 119.5 kB / 1.101 GB, free: 26.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=934): time 1.576e-05/3.443, allocations: 1.641 kB / 1.101 GB, free: 26.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=942): time 0.07927/3.522, allocations: 33.14 MB / 1.134 GB, free: 10.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/3.522, allocations: 161.9 kB / 1.134 GB, free: 10.74 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009701/3.532, allocations: 4.091 MB / 1.138 GB, free: 9.188 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001809/3.534, allocations: 160 kB / 1.138 GB, free: 9.055 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004872/3.539, allocations: 5.065 MB / 1.143 GB, free: 5.137 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005227/3.544, allocations: 3.103 MB / 1.146 GB, free: 2.719 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001763/3.546, allocations: 167 kB / 1.146 GB, free: 2.59 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001123/3.547, allocations: 0.6981 MB / 1.147 GB, free: 2.105 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01556/3.563, allocations: 6.053 MB / 1.153 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01714/3.58, allocations: 7.796 MB / 1.16 GB, free: 9.195 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01743/3.597, allocations: 7.268 MB / 1.167 GB, free: 2.996 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.608e-05/3.597, allocations: 20 kB / 1.167 GB, free: 2.977 MB / 490.7 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.4079/4.005, allocations: 18.87 MB / 1.186 GB, free: 79.72 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.004e-05/4.005, allocations: 25.88 kB / 1.186 GB, free: 79.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/4.006, allocations: 51.41 kB / 1.186 GB, free: 79.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01688/4.022, allocations: 5.868 MB / 1.192 GB, free: 79.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009182/4.032, allocations: 1.522 MB / 1.193 GB, free: 79.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03001/4.062, allocations: 19.96 MB / 1.213 GB, free: 72.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00844/4.07, allocations: 436.9 kB / 1.213 GB, free: 72.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002475/4.073, allocations: 376.1 kB / 1.213 GB, free: 72.23 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.003241/4.076, allocations: 0.561 MB / 1.214 GB, free: 72.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002469/4.079, allocations: 0.6546 MB / 1.215 GB, free: 72.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04459/4.123, allocations: 18.05 MB / 1.232 GB, free: 71.49 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03121/4.154, allocations: 14.28 MB / 1.246 GB, free: 70.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.867e-05/4.154, allocations: 9.125 kB / 1.246 GB, free: 70.32 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001587/4.155, allocations: 41.86 kB / 1.246 GB, free: 70.32 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08143/4.236, allocations: 35.34 MB / 1.281 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001216/4.236, allocations: 3.719 kB / 1.281 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006917/4.243, allocations: 1.039 MB / 1.282 GB, free: 54.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01618/4.259, allocations: 5.943 MB / 1.288 GB, free: 53.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001986/4.261, allocations: 213.7 kB / 1.288 GB, free: 52.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03163/4.293, allocations: 24.2 MB / 1.311 GB, free: 32.69 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.545e-06/4.293, allocations: 6.906 kB / 1.311 GB, free: 32.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05297/4.346, allocations: 27.05 MB / 1.338 GB, free: 8.688 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006469/4.353, allocations: 2.108 MB / 1.34 GB, free: 6.789 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002843/4.356, allocations: 150.5 kB / 1.34 GB, free: 6.645 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006589/4.362, allocations: 372.3 kB / 1.34 GB, free: 6.375 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002849/4.365, allocations: 0.7063 MB / 1.341 GB, free: 5.926 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001391/4.366, allocations: 262.9 kB / 1.341 GB, free: 5.695 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006746/4.373, allocations: 3.095 MB / 1.344 GB, free: 2.934 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.226e-06/4.373, allocations: 0 / 1.344 GB, free: 2.934 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01592/4.389, allocations: 3.041 MB / 1.347 GB, free: 1.551 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.3307/4.72, allocations: 0.7251 MB / 1.348 GB, free: 78.37 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03686/4.757, allocations: 15.24 MB / 1.363 GB, free: 77.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.092e-06/4.757, allocations: 2.812 kB / 1.363 GB, free: 77.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02121/4.778, allocations: 8.627 MB / 1.371 GB, free: 76.63 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01086/4.789, allocations: 1.483 MB / 1.373 GB, free: 76.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07304/4.862, allocations: 25.47 MB / 1.398 GB, free: 72.55 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0213/4.883, allocations: 9.035 MB / 1.407 GB, free: 71.44 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003609/4.887, allocations: 0.5056 MB / 1.407 GB, free: 71.43 MB / 490.7 MB Notification: Performance of SimCode: time 2.007e-06/4.887, allocations: 0 / 1.407 GB, free: 71.43 MB / 490.7 MB Notification: Performance of Templates: time 3.393/8.28, allocations: 1.098 GB / 2.505 GB, free: 87.26 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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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