Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadModel(Modelica): time 1.839/1.839, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.617e-05/3.635e-05, allocations: 3.984 kB / 255.4 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 44.5 MB / 299.9 MB, free: 6.598 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4257/0.5298, allocations: 161.8 MB / 461.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.5302, allocations: 105.6 kB / 461.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.986/4.517, allocations: 0.8629 GB / 1.314 GB, free: 13.96 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.453e-06/4.517, allocations: 0 / 1.314 GB, free: 13.96 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001759/4.518, allocations: 471.5 kB / 1.314 GB, free: 13.5 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: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.8766/5.395, allocations: 19.58 MB / 1.333 GB, free: 14.58 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/5.395, allocations: 9.719 kB / 1.333 GB, free: 14.58 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07465/5.47, allocations: 10.32 MB / 1.343 GB, free: 13.45 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04786/5.518, allocations: 15.82 MB / 1.359 GB, free: 12.09 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002262/5.52, allocations: 1.55 MB / 1.36 GB, free: 12.05 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009874/5.53, allocations: 2.011 MB / 1.362 GB, free: 12.04 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1081/5.638, allocations: 35.51 MB / 1.397 GB, free: 9.672 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001059/5.639, allocations: 32.3 kB / 1.397 GB, free: 9.66 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009028/5.648, allocations: 0.8683 MB / 1.398 GB, free: 9.66 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001909/5.65, allocations: 1.387 MB / 1.399 GB, free: 9.613 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08455/5.735, allocations: 32.13 MB / 1.431 GB, free: 3.223 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.132/6.867, allocations: 112.5 MB / 1.541 GB, free: 54.01 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0591/6.926, allocations: 43.98 MB / 1.584 GB, free: 34.3 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03616/6.962, allocations: 16.32 MB / 1.599 GB, free: 34.15 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1235/7.086, allocations: 50.4 MB / 1.649 GB, free: 32.84 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001591/7.086, allocations: 179 kB / 1.649 GB, free: 32.78 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=1576): time 2.339e-05/7.086, allocations: 1.562 kB / 1.649 GB, free: 32.78 MB / 0.5263 GB Notification: Performance of matching and sorting (n=1588): time 0.1473/7.233, allocations: 57.18 MB / 1.705 GB, free: 2.43 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/7.234, allocations: 220 kB / 1.705 GB, free: 2.195 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02832/7.262, allocations: 6.566 MB / 1.711 GB, free: 14.53 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.003282/7.265, allocations: 249.7 kB / 1.712 GB, free: 14.28 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.006927/7.272, allocations: 6.916 MB / 1.718 GB, free: 8.082 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.009164/7.281, allocations: 5.198 MB / 1.723 GB, free: 3.383 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00358/7.285, allocations: 256 kB / 1.724 GB, free: 3.133 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.002216/7.287, allocations: 0.9092 MB / 1.725 GB, free: 2.383 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5392/7.827, allocations: 12.23 MB / 1.736 GB, free: 84.33 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02709/7.854, allocations: 12.36 MB / 1.749 GB, free: 82.36 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02783/7.882, allocations: 12.12 MB / 1.76 GB, free: 82.18 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/7.882, allocations: 16.17 kB / 1.76 GB, free: 82.18 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.07974/7.961, allocations: 30.81 MB / 1.79 GB, free: 81.63 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 8.62e-05/7.962, allocations: 30.28 kB / 1.79 GB, free: 81.63 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/7.962, allocations: 56 kB / 1.791 GB, free: 81.63 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04637/8.008, allocations: 14.61 MB / 1.805 GB, free: 81.1 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01217/8.02, allocations: 2.083 MB / 1.807 GB, free: 81.1 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06172/8.082, allocations: 35.63 MB / 1.842 GB, free: 65.96 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01916/8.101, allocations: 0.6247 MB / 1.842 GB, free: 65.75 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006641/8.108, allocations: 0.5233 MB / 1.843 GB, free: 65.64 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1058): * Single equations (assignments): 1018 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of prepare postOptimizeDAE: time 0.0109/8.119, allocations: 0.7594 MB / 1.844 GB, free: 65.15 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008477/8.128, allocations: 1.016 MB / 1.845 GB, free: 65.14 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1034/8.231, allocations: 31.92 MB / 1.876 GB, free: 51.67 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005355/8.232, allocations: 383.9 kB / 1.876 GB, free: 51.48 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.458e-05/8.232, allocations: 14.78 kB / 1.876 GB, free: 51.48 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002694/8.232, allocations: 67.73 kB / 1.876 GB, free: 51.48 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5776/8.81, allocations: 61.75 MB / 1.936 GB, free: 67.95 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002112/8.81, allocations: 3.5 kB / 1.936 GB, free: 67.95 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01083/8.821, allocations: 1.625 MB / 1.938 GB, free: 67.95 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04383/8.865, allocations: 14.8 MB / 1.952 GB, free: 67.41 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003688/8.868, allocations: 339.7 kB / 1.953 GB, free: 67.41 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0647/8.933, allocations: 39.87 MB / 1.992 GB, free: 55.51 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.831e-06/8.933, allocations: 11.14 kB / 1.992 GB, free: 55.51 MB / 0.5419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1105/9.044, allocations: 47.39 MB / 2.038 GB, free: 53.46 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01178/9.055, allocations: 3.485 MB / 2.041 GB, free: 52.11 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006062/9.061, allocations: 245.4 kB / 2.042 GB, free: 51.93 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01164/9.073, allocations: 0.6311 MB / 2.042 GB, free: 51.75 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005273/9.078, allocations: 1.162 MB / 2.043 GB, free: 51.51 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003635/9.082, allocations: 422.2 kB / 2.044 GB, free: 51.41 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.01167/9.094, allocations: 4.531 MB / 2.048 GB, free: 49.7 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.24e-06/9.094, allocations: 1.719 kB / 2.048 GB, free: 49.7 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.02125/9.115, allocations: 3.9 MB / 2.052 GB, free: 49.29 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (820): * Single equations (assignments): 779 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of Backend phase and start with SimCode phase: time 0.004638/9.12, allocations: 0.9196 MB / 2.053 GB, free: 48.97 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.06132/9.181, allocations: 26.14 MB / 2.078 GB, free: 38.55 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/9.181, allocations: 3.859 kB / 2.078 GB, free: 38.55 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.03667/9.218, allocations: 14.95 MB / 2.093 GB, free: 29.03 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01688/9.235, allocations: 2.327 MB / 2.095 GB, free: 27.23 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5617/9.797, allocations: 40.31 MB / 2.135 GB, free: 92.2 MB / 0.5575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03598/9.833, allocations: 13.47 MB / 2.148 GB, free: 91.1 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005641/9.838, allocations: 0.7184 MB / 2.149 GB, free: 91.1 MB / 0.5575 GB Notification: Performance of SimCode: time 2.561e-06/9.838, allocations: 0 / 2.149 GB, free: 91.1 MB / 0.5575 GB Notification: Performance of Templates: time 5.841/15.68, allocations: 1.773 GB / 3.922 GB, free: 107.9 MB / 0.6044 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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_TransformerCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.cpp:587:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp376 = 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_TransformerFunctions.cpp:587:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp376 = 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_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o] Error 1