Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadModel(Modelica): time 1.903/1.903, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.986e-05/2.983e-05, allocations: 6.812 kB / 292.2 MB, free: 8.793 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09057/0.09062, allocations: 50.42 MB / 342.6 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4899/0.5806, allocations: 167.4 MB / 0.498 GB, free: 7.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.5809, allocations: 108.8 kB / 0.4981 GB, free: 7.688 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138/4.719, allocations: 0.8622 GB / 1.36 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.105e-06/4.719, allocations: 8.062 kB / 1.36 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001587/4.72, allocations: 476 kB / 1.361 GB, free: 33.88 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.08686/4.807, allocations: 19.51 MB / 1.38 GB, free: 28.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/4.807, allocations: 11.03 kB / 1.38 GB, free: 28.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07167/4.879, allocations: 9.677 MB / 1.389 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04838/4.928, allocations: 16.21 MB / 1.405 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001795/4.929, allocations: 1.518 MB / 1.407 GB, free: 16.09 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009899/4.939, allocations: 2.005 MB / 1.409 GB, free: 14.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5522/5.492, allocations: 33.82 MB / 1.442 GB, free: 30.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001036/5.493, allocations: 34.06 kB / 1.442 GB, free: 30.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00824/5.501, allocations: 0.8604 MB / 1.442 GB, free: 30.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00207/5.503, allocations: 1.483 MB / 1.444 GB, free: 30.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08111/5.584, allocations: 29.27 MB / 1.472 GB, free: 30.79 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.241/5.825, allocations: 107.4 MB / 1.577 GB, free: 1.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0682/5.893, allocations: 50.57 MB / 1.627 GB, free: 9.047 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02235/5.916, allocations: 9.552 MB / 1.636 GB, free: 1.949 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5084/6.424, allocations: 22.73 MB / 1.658 GB, free: 100.2 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001164/6.424, allocations: 130.6 kB / 1.658 GB, free: 100.2 MB / 0.573 GB Notification: Performance of pre-optimization done (n=892): time 1.782e-05/6.424, allocations: 0 / 1.658 GB, free: 100.2 MB / 0.573 GB Notification: Performance of matching and sorting (n=904): time 0.08231/6.507, allocations: 32.67 MB / 1.69 GB, free: 94.71 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.836e-05/6.507, allocations: 174.1 kB / 1.691 GB, free: 94.61 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01879/6.526, allocations: 7.342 MB / 1.698 GB, free: 94.01 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001733/6.528, allocations: 174.2 kB / 1.698 GB, free: 93.98 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005913/6.533, allocations: 8.224 MB / 1.706 GB, free: 89.49 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004073/6.538, allocations: 3.045 MB / 1.709 GB, free: 87.56 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00208/6.54, allocations: 230 kB / 1.709 GB, free: 87.56 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001176/6.541, allocations: 0.7746 MB / 1.71 GB, free: 87.23 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01358/6.554, allocations: 6.005 MB / 1.716 GB, free: 87.2 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01613/6.571, allocations: 9.532 MB / 1.725 GB, free: 83.02 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01673/6.587, allocations: 8.089 MB / 1.733 GB, free: 82.88 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001734/6.588, allocations: 32.66 kB / 1.733 GB, free: 82.88 MB / 0.573 GB Notification: Performance of matching and sorting (n=1468) (initialization): time 0.04884/6.637, allocations: 18.97 MB / 1.751 GB, free: 77.55 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000127/6.637, allocations: 53.75 kB / 1.752 GB, free: 77.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001989/6.637, allocations: 115.2 kB / 1.752 GB, free: 77.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01564/6.653, allocations: 3.815 MB / 1.755 GB, free: 76.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01382/6.666, allocations: 2.372 MB / 1.758 GB, free: 76.51 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0719/6.738, allocations: 37.75 MB / 1.795 GB, free: 50.52 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01225/6.751, allocations: 0.599 MB / 1.795 GB, free: 50.04 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002935/6.754, allocations: 0.5133 MB / 1.796 GB, free: 49.55 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * 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 (1214): * Single equations (assignments): 1207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(28,26.3%) 176} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004571/6.758, allocations: 0.7841 MB / 1.796 GB, free: 48.92 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003294/6.762, allocations: 0.9095 MB / 1.797 GB, free: 48 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04269/6.804, allocations: 16.68 MB / 1.814 GB, free: 34.16 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.899e-05/6.804, allocations: 92 kB / 1.814 GB, free: 34.07 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.139e-05/6.804, allocations: 40 kB / 1.814 GB, free: 34.03 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000217/6.805, allocations: 46.64 kB / 1.814 GB, free: 34.03 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5448/7.349, allocations: 36.1 MB / 1.849 GB, free: 83.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001175/7.35, allocations: 7.031 kB / 1.849 GB, free: 83.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01011/7.36, allocations: 1.413 MB / 1.85 GB, free: 83.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01705/7.377, allocations: 3.812 MB / 1.854 GB, free: 83.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002093/7.379, allocations: 203.4 kB / 1.854 GB, free: 83.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07259/7.452, allocations: 39.49 MB / 1.893 GB, free: 72.77 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.036e-06/7.452, allocations: 9.375 kB / 1.893 GB, free: 72.77 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05715/7.509, allocations: 25.39 MB / 1.918 GB, free: 70.12 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008226/7.517, allocations: 2.252 MB / 1.92 GB, free: 70.02 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004157/7.521, allocations: 180.4 kB / 1.92 GB, free: 70.02 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009289/7.531, allocations: 0.4998 MB / 1.92 GB, free: 70.02 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003225/7.534, allocations: 0.7056 MB / 1.921 GB, free: 70.01 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00206/7.536, allocations: 260.5 kB / 1.921 GB, free: 70.01 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01452/7.551, allocations: 5.542 MB / 1.927 GB, free: 69.72 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.556e-06/7.551, allocations: 6.125 kB / 1.927 GB, free: 69.72 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02151/7.572, allocations: 3.845 MB / 1.931 GB, free: 69.71 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (701): * Single equations (assignments): 693 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(28,26.3%) 176,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003092/7.575, allocations: 0.8959 MB / 1.931 GB, free: 69.57 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03556/7.611, allocations: 16.31 MB / 1.947 GB, free: 68.32 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/7.611, allocations: 1.469 kB / 1.947 GB, free: 68.32 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.02133/7.632, allocations: 9.38 MB / 1.957 GB, free: 64.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0148/7.647, allocations: 2.333 MB / 1.959 GB, free: 63.56 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09178/7.739, allocations: 32.04 MB / 1.99 GB, free: 47.16 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03218/7.771, allocations: 13.14 MB / 2.003 GB, free: 37.35 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00554/7.777, allocations: 0.7459 MB / 2.004 GB, free: 36.64 MB / 0.573 GB Notification: Performance of SimCode: time 1.937e-06/7.777, allocations: 0 / 2.004 GB, free: 36.64 MB / 0.573 GB Notification: Performance of Templates: time 3.701/11.48, allocations: 1.06 GB / 3.063 GB, free: 92.42 MB / 0.6355 GB make -j1 -f Modelica_trunk_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/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_TransformerCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.cpp:587:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp259 = 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_TransformerFunctions.cpp:587:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp259 = 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_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o] Error 1