Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.179e-05, allocations: 6.031 kB / 292.2 MB, free: 8.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.09353, allocations: 50.42 MB / 342.6 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.496/0.5896, allocations: 147.6 MB / 490.2 MB, free: 11.47 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.5899, allocations: 108 kB / 490.3 MB, free: 11.41 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.525/2.114, allocations: 349.3 MB / 0.8199 GB, free: 45.96 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.564e-06/2.114, allocations: 0 / 0.8199 GB, free: 45.96 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008313/2.115, allocations: 247.7 kB / 0.8202 GB, free: 45.72 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: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04196/2.157, allocations: 10.19 MB / 0.8301 GB, free: 35.45 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/2.157, allocations: 8.031 kB / 0.8301 GB, free: 35.44 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04564/2.203, allocations: 4.731 MB / 0.8347 GB, free: 30.69 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04939/2.252, allocations: 9.48 MB / 0.844 GB, free: 21.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001416/2.254, allocations: 0.7707 MB / 0.8447 GB, free: 20.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006919/2.261, allocations: 1.031 MB / 0.8458 GB, free: 19.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05743/2.318, allocations: 16.66 MB / 0.862 GB, free: 2.328 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005305/2.319, allocations: 22.23 kB / 0.862 GB, free: 2.309 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003901/2.323, allocations: 444 kB / 0.8625 GB, free: 1.875 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001233/2.324, allocations: 0.7446 MB / 0.8632 GB, free: 1.125 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3497/2.674, allocations: 14.89 MB / 0.8777 GB, free: 46.56 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.117/2.791, allocations: 55.87 MB / 0.9323 GB, free: 33.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0303/2.821, allocations: 30.87 MB / 0.9624 GB, free: 5.887 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008711/2.83, allocations: 4.236 MB / 0.9666 GB, free: 4.258 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02584/2.856, allocations: 10.47 MB / 0.9768 GB, free: 15.22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.496e-05/2.856, allocations: 85.75 kB / 0.9769 GB, free: 15.15 MB / 474.7 MB Notification: Performance of pre-optimization done (n=396): time 8.522e-06/2.856, allocations: 0 / 0.9769 GB, free: 15.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=421): time 0.04385/2.9, allocations: 15.98 MB / 0.9925 GB, free: 7.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/2.9, allocations: 128.1 kB / 0.9926 GB, free: 6.988 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009928/2.91, allocations: 4.076 MB / 0.9966 GB, free: 5.398 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008067/2.911, allocations: 96.17 kB / 0.9967 GB, free: 5.312 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00445/2.915, allocations: 4.448 MB / 1.001 GB, free: 1.859 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002278/2.918, allocations: 1.437 MB / 1.002 GB, free: 0.75 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009321/2.919, allocations: 125.7 kB / 1.003 GB, free: 0.6562 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006744/2.919, allocations: 0.545 MB / 1.003 GB, free: 244 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01102/2.93, allocations: 3.027 MB / 1.006 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009082/2.94, allocations: 4.785 MB / 1.011 GB, free: 12.33 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008694/2.948, allocations: 3.876 MB / 1.014 GB, free: 10.04 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.881e-05/2.948, allocations: 20 kB / 1.015 GB, free: 10.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.04399/2.992, allocations: 9.085 MB / 1.023 GB, free: 2.469 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001583/2.993, allocations: 32 kB / 1.023 GB, free: 2.438 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002266/2.993, allocations: 68 kB / 1.023 GB, free: 2.371 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01244/3.005, allocations: 1.656 MB / 1.025 GB, free: 1.066 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01396/3.019, allocations: 1.309 MB / 1.026 GB, free: 40 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04976/3.069, allocations: 16.43 MB / 1.042 GB, free: 0.9336 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006993/3.076, allocations: 334.7 kB / 1.043 GB, free: 0.668 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002119/3.078, allocations: 276.7 kB / 1.043 GB, free: 416 kB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (669): * Single equations (assignments): 665 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,67.3%) 28,(1,100.0%) 1,(14,40.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003065/3.081, allocations: 468.8 kB / 1.043 GB, free: 28 kB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3216/3.403, allocations: 0.4946 MB / 1.044 GB, free: 87.63 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02111/3.424, allocations: 7.632 MB / 1.051 GB, free: 87.19 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-05/3.424, allocations: 43.67 kB / 1.051 GB, free: 87.19 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.893e-05/3.424, allocations: 17.28 kB / 1.051 GB, free: 87.19 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001136/3.425, allocations: 22.08 kB / 1.051 GB, free: 87.19 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04473/3.469, allocations: 17.26 MB / 1.068 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.245e-05/3.469, allocations: 11.86 kB / 1.068 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005002/3.474, allocations: 0.7213 MB / 1.069 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00637/3.481, allocations: 1.555 MB / 1.071 GB, free: 85.95 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008599/3.482, allocations: 101.6 kB / 1.071 GB, free: 85.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02903/3.511, allocations: 19.42 MB / 1.09 GB, free: 76.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.19e-06/3.511, allocations: 9.812 kB / 1.09 GB, free: 76.81 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02443/3.535, allocations: 11.91 MB / 1.101 GB, free: 74.92 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003829/3.539, allocations: 1.154 MB / 1.102 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001826/3.541, allocations: 88.3 kB / 1.102 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00467/3.546, allocations: 243.8 kB / 1.103 GB, free: 74.82 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001356/3.547, allocations: 326.4 kB / 1.103 GB, free: 74.81 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004798/3.548, allocations: 136 kB / 1.103 GB, free: 74.81 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007523/3.555, allocations: 3.066 MB / 1.106 GB, free: 74.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.447e-06/3.555, allocations: 0 / 1.106 GB, free: 74.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01032/3.566, allocations: 1.91 MB / 1.108 GB, free: 74.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 355 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,(14,39.8%) 44,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001748/3.567, allocations: 0.6739 MB / 1.109 GB, free: 74.46 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01721/3.585, allocations: 7.693 MB / 1.116 GB, free: 73.87 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/3.585, allocations: 0 / 1.116 GB, free: 73.87 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01519/3.6, allocations: 4.442 MB / 1.121 GB, free: 73.03 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01228/3.612, allocations: 1.179 MB / 1.122 GB, free: 72.84 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06704/3.679, allocations: 16.13 MB / 1.137 GB, free: 66.41 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02117/3.7, allocations: 6.745 MB / 1.144 GB, free: 63.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002552/3.703, allocations: 425.7 kB / 1.144 GB, free: 63.95 MB / 0.4948 GB Notification: Performance of SimCode: time 2.096e-06/3.703, allocations: 0 / 1.144 GB, free: 63.95 MB / 0.4948 GB Notification: Performance of Templates: time 1.208/4.912, allocations: 431.7 MB / 1.566 GB, free: 32.07 MB / 0.5261 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_InitializeCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeFunctions.cpp:418:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp133 = 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_InitializeFunctions.cpp:418:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp133 = 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_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o] Error 1