Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadModel(Modelica): time 2.146/2.146, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.533e-05/2.547e-05, allocations: 2.812 kB / 292.2 MB, free: 8.789 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09179/0.09184, allocations: 50.41 MB / 342.6 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4655/0.5574, allocations: 154 MB / 496.6 MB, free: 5.125 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.5578, allocations: 104.1 kB / 496.7 MB, free: 5.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154/2.712, allocations: 456.8 MB / 0.9312 GB, free: 38.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.013e-06/2.712, allocations: 0 / 0.9312 GB, free: 38.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001104/2.713, allocations: 334.3 kB / 0.9315 GB, free: 38.14 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.05582/2.769, allocations: 13.18 MB / 0.9444 GB, free: 34.11 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/2.769, allocations: 10.69 kB / 0.9444 GB, free: 34.11 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04508/2.814, allocations: 5.833 MB / 0.9501 GB, free: 33.32 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03429/2.848, allocations: 11.68 MB / 0.9615 GB, free: 31.98 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001216/2.849, allocations: 1.028 MB / 0.9625 GB, free: 31.95 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005984/2.855, allocations: 1.353 MB / 0.9638 GB, free: 31.94 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06934/2.925, allocations: 22 MB / 0.9853 GB, free: 27.87 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001005/2.926, allocations: 26.56 kB / 0.9853 GB, free: 27.86 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007866/2.934, allocations: 0.5786 MB / 0.9859 GB, free: 27.42 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002184/2.936, allocations: 0.9705 MB / 0.9868 GB, free: 27.21 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08175/3.018, allocations: 18.99 MB / 1.005 GB, free: 15.62 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5129/3.531, allocations: 72.72 MB / 1.076 GB, free: 29.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06264/3.594, allocations: 42.06 MB / 1.117 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01677/3.61, allocations: 5.068 MB / 1.122 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03827/3.649, allocations: 12.77 MB / 1.135 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.835e-05/3.649, allocations: 87.81 kB / 1.135 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=502): time 1.045e-05/3.649, allocations: 0 / 1.135 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=510): time 0.04857/3.697, allocations: 18.83 MB / 1.153 GB, free: 21.31 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/3.698, allocations: 130.5 kB / 1.153 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01284/3.71, allocations: 5.003 MB / 1.158 GB, free: 20.78 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009586/3.711, allocations: 110.5 kB / 1.158 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003998/3.715, allocations: 5.872 MB / 1.164 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002269/3.718, allocations: 1.743 MB / 1.166 GB, free: 16.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001125/3.719, allocations: 151 kB / 1.166 GB, free: 16.39 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007276/3.72, allocations: 0.6085 MB / 1.167 GB, free: 16.06 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007716/3.727, allocations: 3.517 MB / 1.17 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009552/3.737, allocations: 6.253 MB / 1.176 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/3.747, allocations: 4.921 MB / 1.181 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.774e-05/3.747, allocations: 27.03 kB / 1.181 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=960) (initialization): time 0.02871/3.776, allocations: 11.24 MB / 1.192 GB, free: 8.953 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.3e-05/3.776, allocations: 45.72 kB / 1.192 GB, free: 8.953 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001427/3.776, allocations: 90.72 kB / 1.192 GB, free: 8.953 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005778/3.782, allocations: 1.501 MB / 1.194 GB, free: 8.578 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009261/3.791, allocations: 1.647 MB / 1.195 GB, free: 8.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03096/3.822, allocations: 17.82 MB / 1.213 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008029/3.83, allocations: 435 kB / 1.213 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002071/3.832, allocations: 362.6 kB / 1.213 GB, free: 12.52 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 417 * 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 (860): * Single equations (assignments): 850 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(12,52.8%) 64} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002106/3.835, allocations: 0.5745 MB / 1.214 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001737/3.836, allocations: 0.6008 MB / 1.215 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02425/3.861, allocations: 9.147 MB / 1.223 GB, free: 8.148 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01497/3.876, allocations: 5.765 MB / 1.229 GB, free: 3.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.724e-05/3.876, allocations: 20 kB / 1.229 GB, free: 3.891 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001186/3.876, allocations: 32 kB / 1.229 GB, free: 3.887 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4577/4.334, allocations: 20.88 MB / 1.25 GB, free: 91.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.126e-05/4.334, allocations: 10.92 kB / 1.25 GB, free: 91.19 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005464/4.339, allocations: 0.8544 MB / 1.25 GB, free: 91.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006827/4.346, allocations: 1.543 MB / 1.252 GB, free: 91.12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001127/4.347, allocations: 128.4 kB / 1.252 GB, free: 91.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03236/4.38, allocations: 21 MB / 1.272 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/4.38, allocations: 9 kB / 1.272 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02977/4.409, allocations: 14.29 MB / 1.286 GB, free: 79.75 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004865/4.414, allocations: 1.355 MB / 1.288 GB, free: 79.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002444/4.417, allocations: 109.5 kB / 1.288 GB, free: 79.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005622/4.423, allocations: 300.6 kB / 1.288 GB, free: 79.66 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00175/4.424, allocations: 411.5 kB / 1.289 GB, free: 79.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000931/4.425, allocations: 155.8 kB / 1.289 GB, free: 79.65 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009542/4.435, allocations: 3.756 MB / 1.292 GB, free: 79.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.207e-06/4.435, allocations: 0 / 1.292 GB, free: 79.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01343/4.448, allocations: 2.371 MB / 1.295 GB, free: 79.45 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (439): * Single equations (assignments): 428 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(12,52.1%) 64,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002058/4.45, allocations: 0.7441 MB / 1.295 GB, free: 79.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0203/4.471, allocations: 9.38 MB / 1.305 GB, free: 78.48 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/4.471, allocations: 2.312 kB / 1.305 GB, free: 78.48 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01193/4.483, allocations: 5.241 MB / 1.31 GB, free: 77.65 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009567/4.492, allocations: 1.495 MB / 1.311 GB, free: 77.61 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05982/4.552, allocations: 20.63 MB / 1.331 GB, free: 72.48 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02069/4.573, allocations: 8.803 MB / 1.34 GB, free: 69.44 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003176/4.576, allocations: 0.5021 MB / 1.34 GB, free: 69.41 MB / 0.5261 GB Notification: Performance of SimCode: time 3.41e-06/4.576, allocations: 0 / 1.34 GB, free: 69.41 MB / 0.5261 GB Notification: Performance of Templates: time 1.906/6.482, allocations: 0.6264 GB / 1.967 GB, free: 63.63 MB / 0.573 GB make -j1 -f Modelica_trunk_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:532:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp197 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:532:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp197 = 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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o] Error 1