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 2.011/2.011, allocations: 194.9 MB / 211.2 MB, free: 7.867 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.826e-05/2.826e-05, allocations: 0 / 258.8 MB, free: 8.191 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3314, allocations: 44.5 MB / 303.3 MB, free: 12.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.06909/0.4006, allocations: 39.54 MB / 342.9 MB, free: 5.965 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03493/0.4356, allocations: 11.24 MB / 354.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01135/0.447, allocations: 382.9 kB / 354.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0151/0.4621, allocations: 2.533 MB / 357 MB, free: 7.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02658/0.4888, allocations: 4.299 MB / 361.3 MB, free: 3.457 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01409/0.5029, allocations: 2.086 MB / 363.4 MB, free: 1.375 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.04422/0.5471, allocations: 15.1 MB / 378.5 MB, free: 2.25 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09435/0.6416, allocations: 30.98 MB / 409.5 MB, free: 3.176 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01667/0.6583, allocations: 6.555 MB / 416 MB, free: 12.61 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01931/0.6776, allocations: 7.787 MB / 423.8 MB, free: 4.793 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009381/0.6871, allocations: 1.042 MB / 424.9 MB, free: 3.75 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006347/0.6935, allocations: 0.6875 MB / 425.5 MB, free: 3.062 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.5722/1.266, allocations: 3.633 MB / 429.2 MB, free: 34.36 MB / 362.8 MB Notification: Performance of NFVerifyModel.verify: time 0.009518/1.275, allocations: 1.664 MB / 430.8 MB, free: 34.36 MB / 362.8 MB Notification: Performance of NFConvertDAE.convert: time 0.05302/1.328, allocations: 40.99 MB / 471.8 MB, free: 14.42 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/1.328, allocations: 0 / 471.8 MB, free: 14.42 MB / 362.8 MB Notification: Performance of FrontEnd: time 5.009e-06/1.328, allocations: 0 / 471.8 MB, free: 14.42 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.001637/1.33, allocations: 2.297 kB / 471.8 MB, free: 14.42 MB / 362.8 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.09819/1.428, allocations: 22.2 MB / 494 MB, free: 1.691 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/1.428, allocations: 12.03 kB / 494 MB, free: 1.68 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1266/1.555, allocations: 14.84 MB / 0.497 GB, free: 3.844 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04392/1.599, allocations: 13.16 MB / 0.5098 GB, free: 12.21 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00254/1.602, allocations: 1.583 MB / 0.5113 GB, free: 11.31 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01089/1.612, allocations: 2.091 MB / 0.5134 GB, free: 9.914 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1296/1.742, allocations: 34.83 MB / 0.5474 GB, free: 1.02 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001278/1.743, allocations: 30.8 kB / 0.5474 GB, free: 0.9922 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009294/1.753, allocations: 0.8715 MB / 0.5483 GB, free: 148 kB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002032/1.755, allocations: 1.177 MB / 0.5494 GB, free: 14.96 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5522/2.307, allocations: 32.85 MB / 0.5815 GB, free: 118.7 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3741/2.681, allocations: 109.2 MB / 0.6882 GB, free: 45.16 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06979/2.751, allocations: 55.75 MB / 0.7426 GB, free: 1.73 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4578/3.209, allocations: 26.3 MB / 0.7683 GB, free: 139.6 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001215/3.209, allocations: 135.7 kB / 0.7684 GB, free: 139.6 MB / 474.8 MB Notification: Performance of pre-optimization done (n=904): time 1.372e-05/3.209, allocations: 2.094 kB / 0.7684 GB, free: 139.6 MB / 474.8 MB Notification: Performance of matching and sorting (n=916): time 0.1087/3.318, allocations: 39.89 MB / 0.8074 GB, free: 123.8 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/3.318, allocations: 176 kB / 0.8076 GB, free: 123.7 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01903/3.337, allocations: 7.495 MB / 0.8149 GB, free: 120.9 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001823/3.339, allocations: 176.2 kB / 0.815 GB, free: 120.8 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006311/3.345, allocations: 8.378 MB / 0.8232 GB, free: 114.3 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00435/3.35, allocations: 3.091 MB / 0.8262 GB, free: 112 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001742/3.351, allocations: 235.1 kB / 0.8265 GB, free: 111.8 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0009948/3.352, allocations: 0.7919 MB / 0.8272 GB, free: 111.2 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01665/3.369, allocations: 6.322 MB / 0.8334 GB, free: 106.3 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01998/3.389, allocations: 10.23 MB / 0.8434 GB, free: 95.57 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0208/3.41, allocations: 8.445 MB / 0.8516 GB, free: 88.07 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000135/3.41, allocations: 36 kB / 0.8517 GB, free: 88.04 MB / 474.8 MB Notification: Performance of matching and sorting (n=1531) (initialization): time 0.05858/3.469, allocations: 20.22 MB / 0.8714 GB, free: 70.51 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/3.469, allocations: 56 kB / 0.8715 GB, free: 70.46 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000226/3.469, allocations: 126.6 kB / 0.8716 GB, free: 70.34 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02172/3.491, allocations: 4.143 MB / 0.8756 GB, free: 67.19 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01934/3.51, allocations: 2.507 MB / 0.8781 GB, free: 65.06 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08513/3.596, allocations: 39.34 MB / 0.9165 GB, free: 25.15 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01473/3.61, allocations: 0.6283 MB / 0.9171 GB, free: 24.52 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00312/3.613, allocations: 0.5351 MB / 0.9177 GB, free: 23.98 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (1277): * Single equations (assignments): 1270 * 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.7%) 176} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02217/3.636, allocations: 7.95 MB / 0.9254 GB, free: 16.02 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003636/3.639, allocations: 0.9185 MB / 0.9263 GB, free: 15.09 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.557/4.196, allocations: 17.18 MB / 0.9431 GB, free: 130.4 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001715/4.197, allocations: 92.69 kB / 0.9432 GB, free: 130.4 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002662/4.197, allocations: 47.27 kB / 0.9432 GB, free: 130.4 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003046/4.197, allocations: 48.38 kB / 0.9433 GB, free: 130.4 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.159/4.356, allocations: 36.21 MB / 0.9786 GB, free: 116.5 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001977/4.357, allocations: 5.078 kB / 0.9786 GB, free: 116.5 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01602/4.373, allocations: 1.443 MB / 0.98 GB, free: 116.4 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02237/4.395, allocations: 4.114 MB / 0.9841 GB, free: 115 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00234/4.397, allocations: 201.9 kB / 0.9843 GB, free: 114.8 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08827/4.486, allocations: 41.05 MB / 1.024 GB, free: 77.94 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/4.486, allocations: 12.31 kB / 1.024 GB, free: 77.93 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07152/4.557, allocations: 26.15 MB / 1.05 GB, free: 53.1 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009018/4.566, allocations: 2.284 MB / 1.052 GB, free: 51.29 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004919/4.571, allocations: 176 kB / 1.052 GB, free: 51.11 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01165/4.583, allocations: 0.5072 MB / 1.053 GB, free: 50.61 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003372/4.587, allocations: 0.7115 MB / 1.053 GB, free: 49.89 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002088/4.589, allocations: 267.9 kB / 1.054 GB, free: 49.63 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01562/4.604, allocations: 5.661 MB / 1.059 GB, free: 43.98 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.32e-07/4.604, allocations: 0 / 1.059 GB, free: 43.98 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.02261/4.627, allocations: 3.838 MB / 1.063 GB, free: 40.15 MB / 474.8 MB 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,25.9%) 176,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(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.003023/4.63, allocations: 440.2 kB / 1.063 GB, free: 39.74 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.05948/4.69, allocations: 17.36 MB / 1.08 GB, free: 22.35 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-05/4.69, allocations: 0 / 1.08 GB, free: 22.35 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.03582/4.726, allocations: 9.853 MB / 1.09 GB, free: 12.46 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01943/4.745, allocations: 2.321 MB / 1.092 GB, free: 10.14 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4695/5.215, allocations: 45.48 MB / 1.137 GB, free: 124.8 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03308/5.248, allocations: 13.24 MB / 1.15 GB, free: 123.6 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006991/5.255, allocations: 0.7617 MB / 1.15 GB, free: 123.5 MB / 490.8 MB Notification: Performance of SimCode: time 1.763e-06/5.255, allocations: 0 / 1.15 GB, free: 123.5 MB / 490.8 MB Notification: Performance of Templates: time 4.077/9.332, allocations: 1.066 GB / 2.216 GB, free: 158.3 MB / 0.5262 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 -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"." -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:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.cpp:178:44: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp1205 = 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:178:87: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp1205 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:36: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.cpp:9209:28: error: use of undeclared identifier 'tmp1173' _transformerData_P_C1_ = tmp1173; ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.cpp:9210:28: error: use of undeclared identifier 'tmp1174' _transformerData_P_C2_ = tmp1174; ^ 4 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