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.864/1.864, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.757e-05/2.761e-05, allocations: 4 kB / 255.4 MB, free: 3.156 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07768/0.07772, allocations: 44.5 MB / 299.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4359/0.5137, allocations: 161.8 MB / 461.7 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.5141, allocations: 103.6 kB / 461.8 MB, free: 2.324 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.049/4.563, allocations: 0.8628 GB / 1.314 GB, free: 13.82 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.787e-06/4.563, allocations: 0 / 1.314 GB, free: 13.82 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.002129/4.565, allocations: 483.4 kB / 1.314 GB, free: 13.35 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.8655/5.431, allocations: 19.57 MB / 1.333 GB, free: 14.71 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/5.431, allocations: 11.41 kB / 1.333 GB, free: 14.71 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07547/5.506, allocations: 10.32 MB / 1.343 GB, free: 13.59 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04732/5.554, allocations: 15.84 MB / 1.359 GB, free: 12.21 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002398/5.556, allocations: 1.548 MB / 1.36 GB, free: 12.17 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009784/5.566, allocations: 2.009 MB / 1.362 GB, free: 12.16 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1072/5.673, allocations: 35.26 MB / 1.397 GB, free: 9.875 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000992/5.674, allocations: 33.73 kB / 1.397 GB, free: 9.863 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008446/5.683, allocations: 0.8617 MB / 1.398 GB, free: 9.863 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001927/5.685, allocations: 1.388 MB / 1.399 GB, free: 9.816 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08321/5.768, allocations: 31.86 MB / 1.43 GB, free: 3.582 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.14/6.908, allocations: 112.3 MB / 1.54 GB, free: 54.38 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05918/6.967, allocations: 43.84 MB / 1.583 GB, free: 34.72 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0356/7.003, allocations: 16.32 MB / 1.599 GB, free: 34.56 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1402/7.143, allocations: 50.39 MB / 1.648 GB, free: 33.23 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/7.143, allocations: 178.9 kB / 1.648 GB, free: 33.18 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=1576): time 4.361e-05/7.144, allocations: 3.984 kB / 1.648 GB, free: 33.18 MB / 0.5263 GB Notification: Performance of matching and sorting (n=1588): time 0.1553/7.299, allocations: 57.18 MB / 1.704 GB, free: 3.102 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/7.299, allocations: 216 kB / 1.704 GB, free: 2.867 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02293/7.322, allocations: 6.286 MB / 1.71 GB, free: 14.53 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 0.003285/7.325, allocations: 249.7 kB / 1.71 GB, free: 14.28 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.00712/7.332, allocations: 6.914 MB / 1.717 GB, free: 8.086 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.009341/7.342, allocations: 5.202 MB / 1.722 GB, free: 3.383 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003438/7.345, allocations: 256 kB / 1.723 GB, free: 3.133 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.002023/7.347, allocations: 0.9147 MB / 1.723 GB, free: 2.379 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5508/7.898, allocations: 12.42 MB / 1.736 GB, free: 84.55 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0278/7.926, allocations: 12.28 MB / 1.748 GB, free: 82.62 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02779/7.954, allocations: 12.12 MB / 1.759 GB, free: 82.45 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/7.954, allocations: 17.39 kB / 1.759 GB, free: 82.45 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.07794/8.032, allocations: 30.68 MB / 1.789 GB, free: 81.89 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 8.119e-05/8.032, allocations: 28.56 kB / 1.789 GB, free: 81.89 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/8.032, allocations: 49.59 kB / 1.789 GB, free: 81.89 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04262/8.075, allocations: 14.61 MB / 1.804 GB, free: 81.36 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01271/8.088, allocations: 2.083 MB / 1.806 GB, free: 81.36 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06179/8.149, allocations: 35.62 MB / 1.841 GB, free: 66.58 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01258/8.162, allocations: 0.6243 MB / 1.841 GB, free: 66.38 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004064/8.166, allocations: 0.5255 MB / 1.842 GB, free: 66.27 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.007183/8.173, allocations: 0.7693 MB / 1.842 GB, free: 65.77 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005308/8.179, allocations: 1.006 MB / 1.843 GB, free: 65.77 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08172/8.261, allocations: 31.93 MB / 1.875 GB, free: 52.3 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005599/8.261, allocations: 383.6 kB / 1.875 GB, free: 52.11 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.84e-05/8.261, allocations: 13.25 kB / 1.875 GB, free: 52.11 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002755/8.261, allocations: 65.67 kB / 1.875 GB, free: 52.11 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5854/8.847, allocations: 61.48 MB / 1.935 GB, free: 67.73 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002102/8.847, allocations: 5.547 kB / 1.935 GB, free: 67.73 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01126/8.858, allocations: 1.632 MB / 1.937 GB, free: 67.73 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04392/8.902, allocations: 14.79 MB / 1.951 GB, free: 67.19 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003878/8.906, allocations: 342.5 kB / 1.951 GB, free: 67.19 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06712/8.974, allocations: 39.87 MB / 1.99 GB, free: 55.29 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.671e-06/8.974, allocations: 6.984 kB / 1.99 GB, free: 55.29 MB / 0.5419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1109/9.085, allocations: 47.39 MB / 2.037 GB, free: 53.31 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01198/9.097, allocations: 3.49 MB / 2.04 GB, free: 52 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005659/9.102, allocations: 241.3 kB / 2.04 GB, free: 51.82 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01144/9.114, allocations: 0.6247 MB / 2.041 GB, free: 51.65 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005154/9.119, allocations: 1.167 MB / 2.042 GB, free: 51.41 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003824/9.123, allocations: 420.2 kB / 2.042 GB, free: 51.31 MB / 0.5419 GB Notification: Performance of sorting global known variables: time 0.01197/9.135, allocations: 4.525 MB / 2.047 GB, free: 49.61 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.227e-06/9.135, allocations: 1.969 kB / 2.047 GB, free: 49.61 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.02193/9.157, allocations: 3.903 MB / 2.051 GB, free: 49.2 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.004682/9.162, allocations: 0.9353 MB / 2.052 GB, free: 48.87 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.06644/9.228, allocations: 25.89 MB / 2.077 GB, free: 38.56 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.621e-05/9.228, allocations: 6.203 kB / 2.077 GB, free: 38.55 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.04502/9.273, allocations: 14.82 MB / 2.091 GB, free: 29.69 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01647/9.29, allocations: 2.333 MB / 2.094 GB, free: 27.89 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1125/9.402, allocations: 40.16 MB / 2.133 GB, free: 8.191 MB / 0.5575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.458/9.86, allocations: 14.09 MB / 2.147 GB, free: 94.68 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006827/9.867, allocations: 0.7234 MB / 2.147 GB, free: 94.68 MB / 0.5575 GB Notification: Performance of SimCode: time 2.402e-06/9.867, allocations: 0 / 2.147 GB, free: 94.68 MB / 0.5575 GB Notification: Performance of Templates: time 5.883/15.75, allocations: 1.772 GB / 3.919 GB, free: 110 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/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_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