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 2.066/2.066, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.139e-05/3.131e-05, allocations: 0 / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1458, allocations: 50.41 MB / 345 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.06498/0.2108, allocations: 38.09 MB / 383.1 MB, free: 2.703 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03371/0.2446, allocations: 11.28 MB / 394.4 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01134/0.256, allocations: 406.9 kB / 394.8 MB, free: 6.996 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01289/0.2689, allocations: 2.494 MB / 397.3 MB, free: 4.488 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02083/0.2898, allocations: 4.206 MB / 401.5 MB, free: 276 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3064/0.5962, allocations: 2.125 MB / 403.6 MB, free: 5.539 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03737/0.6336, allocations: 14.99 MB / 418.6 MB, free: 5.445 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08521/0.7189, allocations: 31 MB / 449.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01806/0.737, allocations: 6.502 MB / 456.1 MB, free: 7.145 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01969/0.7568, allocations: 7.703 MB / 463.8 MB, free: 2.215 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01114/0.768, allocations: 1.041 MB / 464.8 MB, free: 1.18 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006087/0.7741, allocations: 0.6836 MB / 465.5 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008471/0.7826, allocations: 3.583 MB / 469.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009819/0.7925, allocations: 1.648 MB / 470.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.06454/0.8571, allocations: 41.08 MB / 0.4998 GB, free: 3.613 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.8571, allocations: 3.938 kB / 0.4998 GB, free: 3.609 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.8572, allocations: 0 / 0.4998 GB, free: 3.609 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001551/0.8587, allocations: 0 / 0.4998 GB, free: 3.609 MB / 394.7 MB 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.1002/0.959, allocations: 22.09 MB / 0.5214 GB, free: 13.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.9591, allocations: 8.031 kB / 0.5214 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1172/1.076, allocations: 13.85 MB / 0.5349 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04811/1.124, allocations: 14.36 MB / 0.549 GB, free: 2.008 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00266/1.127, allocations: 1.574 MB / 0.5505 GB, free: 464 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01065/1.138, allocations: 2.072 MB / 0.5525 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.773/1.911, allocations: 34.39 MB / 0.5861 GB, free: 98.91 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00113/1.912, allocations: 26.61 kB / 0.5861 GB, free: 98.91 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007909/1.92, allocations: 0.8534 MB / 0.587 GB, free: 98.25 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001589/1.922, allocations: 1.16 MB / 0.5881 GB, free: 98.12 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09476/2.016, allocations: 32.18 MB / 0.6195 GB, free: 83.07 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2588/2.275, allocations: 107.9 MB / 0.7249 GB, free: 11.21 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.7907/3.066, allocations: 50.73 MB / 0.7744 GB, free: 117.6 MB / 0.5107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06858/3.135, allocations: 21.56 MB / 0.7955 GB, free: 109.3 MB / 0.5107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/3.135, allocations: 137.5 kB / 0.7956 GB, free: 109.2 MB / 0.5107 GB Notification: Performance of pre-optimization done (n=904): time 1.289e-05/3.135, allocations: 0 / 0.7956 GB, free: 109.2 MB / 0.5107 GB Notification: Performance of matching and sorting (n=916): time 0.1212/3.256, allocations: 39.83 MB / 0.8345 GB, free: 90.4 MB / 0.5107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/3.256, allocations: 173.7 kB / 0.8347 GB, free: 90.3 MB / 0.5107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02001/3.276, allocations: 7.364 MB / 0.8419 GB, free: 87.6 MB / 0.5107 GB Notification: Performance of collectPreVariables (initialization): time 0.001923/3.278, allocations: 179.8 kB / 0.842 GB, free: 87.45 MB / 0.5107 GB Notification: Performance of collectInitialEqns (initialization): time 0.006325/3.285, allocations: 8.225 MB / 0.8501 GB, free: 81.12 MB / 0.5107 GB Notification: Performance of collectInitialBindings (initialization): time 0.004633/3.289, allocations: 3.081 MB / 0.8531 GB, free: 78.73 MB / 0.5107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002226/3.292, allocations: 238.5 kB / 0.8533 GB, free: 78.55 MB / 0.5107 GB Notification: Performance of setup shared object (initialization): time 0.001107/3.293, allocations: 0.7921 MB / 0.8541 GB, free: 78.02 MB / 0.5107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01736/3.31, allocations: 6.258 MB / 0.8602 GB, free: 75.64 MB / 0.5107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01959/3.33, allocations: 9.936 MB / 0.8699 GB, free: 66.12 MB / 0.5107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02042/3.35, allocations: 8.327 MB / 0.878 GB, free: 58.45 MB / 0.5107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001383/3.35, allocations: 32 kB / 0.878 GB, free: 58.41 MB / 0.5107 GB Notification: Performance of matching and sorting (n=1492) (initialization): time 0.05778/3.408, allocations: 19.9 MB / 0.8975 GB, free: 38.41 MB / 0.5107 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/3.408, allocations: 52 kB / 0.8975 GB, free: 38.36 MB / 0.5107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002063/3.409, allocations: 124.1 kB / 0.8977 GB, free: 38.24 MB / 0.5107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02165/3.43, allocations: 4.13 MB / 0.9017 GB, free: 34.1 MB / 0.5107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02351/3.454, allocations: 2.422 MB / 0.9041 GB, free: 31.68 MB / 0.5107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1136/3.568, allocations: 39.34 MB / 0.9425 GB, free: 7.566 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01402/3.582, allocations: 0.6127 MB / 0.9431 GB, free: 6.953 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003011/3.585, allocations: 0.5117 MB / 0.9436 GB, free: 6.441 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 529 * Number of states: 0 () * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (1238): * Single equations (assignments): 1231 * 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%) 8,(1,100.0%) 1,(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.0229/3.608, allocations: 7.892 MB / 0.9513 GB, free: 14.53 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003922/3.612, allocations: 0.9107 MB / 0.9522 GB, free: 13.61 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05927/3.671, allocations: 17.17 MB / 0.9689 GB, free: 12.3 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/3.671, allocations: 92 kB / 0.969 GB, free: 12.21 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001099/3.671, allocations: 40 kB / 0.9691 GB, free: 12.18 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002593/3.671, allocations: 51.81 kB / 0.9691 GB, free: 12.12 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5024/4.174, allocations: 36.1 MB / 1.004 GB, free: 180.2 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001227/4.174, allocations: 7.844 kB / 1.004 GB, free: 180.2 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01256/4.187, allocations: 1.446 MB / 1.006 GB, free: 180.1 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02116/4.208, allocations: 4.097 MB / 1.01 GB, free: 179.2 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001912/4.21, allocations: 208 kB / 1.01 GB, free: 179 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08087/4.291, allocations: 41.09 MB / 1.05 GB, free: 154.5 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/4.291, allocations: 7.844 kB / 1.05 GB, free: 154.5 MB / 0.5575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06794/4.359, allocations: 26.12 MB / 1.076 GB, free: 140.6 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008119/4.367, allocations: 2.263 MB / 1.078 GB, free: 139.1 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003788/4.371, allocations: 180.5 kB / 1.078 GB, free: 138.9 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01069/4.381, allocations: 0.5008 MB / 1.078 GB, free: 138.5 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003349/4.385, allocations: 0.7068 MB / 1.079 GB, free: 138.1 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002036/4.387, allocations: 258.4 kB / 1.079 GB, free: 137.9 MB / 0.5575 GB Notification: Performance of sorting global known variables: time 0.01517/4.402, allocations: 5.578 MB / 1.085 GB, free: 133.2 MB / 0.5575 GB Notification: Performance of sort global known variables: time 6.11e-07/4.402, allocations: 0 / 1.085 GB, free: 133.2 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.02075/4.423, allocations: 3.811 MB / 1.089 GB, free: 129.4 MB / 0.5575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,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,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (713): * Single equations (assignments): 705 * 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,(2,100.0%) 26,(1,100.0%) 8,(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.002962/4.426, allocations: 456 kB / 1.089 GB, free: 129 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.05313/4.479, allocations: 17.24 MB / 1.106 GB, free: 112.6 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/4.479, allocations: 4.062 kB / 1.106 GB, free: 112.6 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.02804/4.507, allocations: 9.892 MB / 1.116 GB, free: 102.7 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01885/4.526, allocations: 2.3 MB / 1.118 GB, free: 100.4 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1147/4.641, allocations: 45.16 MB / 1.162 GB, free: 55.16 MB / 0.5575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02863/4.67, allocations: 13.15 MB / 1.175 GB, free: 41.96 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00681/4.676, allocations: 0.7492 MB / 1.175 GB, free: 41.21 MB / 0.5575 GB Notification: Performance of SimCode: time 1.923e-06/4.677, allocations: 0 / 1.175 GB, free: 41.21 MB / 0.5575 GB Notification: Performance of Templates: time 3.948/8.625, allocations: 1.06 GB / 2.236 GB, free: 149.3 MB / 0.5575 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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -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:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.cpp:190:44: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp1193 = 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:190:87: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp1193 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.cpp:9201:28: error: use of undeclared identifier 'tmp1161' _transformerData_P_C1_ = tmp1161; ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.cpp:9202:28: error: use of undeclared identifier 'tmp1162' _transformerData_P_C2_ = tmp1162; ^ 4 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