Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 194.9 MB / 211.2 MB, free: 7.863 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.933e-05/2.92e-05, allocations: 7.891 kB / 258.8 MB, free: 8.184 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.305, allocations: 44.5 MB / 303.3 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.03379/0.3388, allocations: 20.01 MB / 323.3 MB, free: 9.551 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01864/0.3575, allocations: 6.564 MB / 329.9 MB, free: 2.973 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004935/0.3625, allocations: 179.5 kB / 330.1 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006303/0.3688, allocations: 1.383 MB / 331.5 MB, free: 1.406 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01101/0.3799, allocations: 2.352 MB / 333.8 MB, free: 15.05 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006051/0.386, allocations: 1.149 MB / 335 MB, free: 13.9 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02259/0.4086, allocations: 8.554 MB / 343.5 MB, free: 5.328 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04821/0.4569, allocations: 16.6 MB / 360.1 MB, free: 4.648 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008421/0.4654, allocations: 3.212 MB / 363.3 MB, free: 1.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009749/0.4752, allocations: 3.621 MB / 366.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004827/0.4801, allocations: 0.6128 MB / 367.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002822/0.483, allocations: 324 kB / 367.9 MB, free: 12.87 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003839/0.4869, allocations: 1.681 MB / 369.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003868/0.4908, allocations: 0.7188 MB / 370.3 MB, free: 10.46 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03033/0.5212, allocations: 19.54 MB / 389.8 MB, free: 6.867 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.5212, allocations: 0 / 389.8 MB, free: 6.867 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.5212, allocations: 0 / 389.8 MB, free: 6.867 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006032/0.5219, allocations: 0 / 389.8 MB, free: 6.867 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04862/0.5705, allocations: 10.98 MB / 400.8 MB, free: 11.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.5706, allocations: 12.02 kB / 400.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06375/0.6343, allocations: 7.135 MB / 407.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02096/0.6553, allocations: 6.416 MB / 414.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001161/0.6566, allocations: 0.7304 MB / 415.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004783/0.6614, allocations: 0.9569 MB / 416 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5893/1.251, allocations: 16.44 MB / 432.5 MB, free: 81.98 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005502/1.251, allocations: 13.38 kB / 432.5 MB, free: 81.98 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00361/1.255, allocations: 400.5 kB / 432.9 MB, free: 81.68 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009289/1.256, allocations: 0.5967 MB / 433.5 MB, free: 81.61 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04893/1.305, allocations: 15.72 MB / 449.2 MB, free: 74.8 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1194/1.424, allocations: 53.96 MB / 0.4914 GB, free: 25.45 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02965/1.454, allocations: 22.67 MB / 0.5135 GB, free: 0.5391 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03577/1.49, allocations: 11.83 MB / 0.5251 GB, free: 4.629 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.201e-05/1.49, allocations: 69.41 kB / 0.5251 GB, free: 4.551 MB / 378.8 MB Notification: Performance of pre-optimization done (n=365): time 7.644e-06/1.49, allocations: 0 / 0.5251 GB, free: 4.551 MB / 378.8 MB Notification: Performance of matching and sorting (n=370): time 0.07869/1.569, allocations: 18.58 MB / 0.5433 GB, free: 1.75 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/1.569, allocations: 86.28 kB / 0.5434 GB, free: 1.652 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01158/1.58, allocations: 4.22 MB / 0.5475 GB, free: 13.41 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009059/1.581, allocations: 85.7 kB / 0.5476 GB, free: 13.32 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004801/1.586, allocations: 4.294 MB / 0.5518 GB, free: 9.004 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002326/1.589, allocations: 1.277 MB / 0.553 GB, free: 7.734 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008049/1.59, allocations: 120 kB / 0.5531 GB, free: 7.617 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0006744/1.59, allocations: 0.547 MB / 0.5537 GB, free: 7.059 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01028/1.601, allocations: 2.916 MB / 0.5565 GB, free: 4.137 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01612/1.617, allocations: 5.257 MB / 0.5616 GB, free: 13.78 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02777/1.645, allocations: 4.132 MB / 0.5657 GB, free: 9.633 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.007294/1.652, allocations: 27.94 kB / 0.5657 GB, free: 9.605 MB / 426.8 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.05086/1.703, allocations: 9.461 MB / 0.5749 GB, free: 116 kB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001951/1.703, allocations: 69.7 kB / 0.575 GB, free: 40 kB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3157/2.019, allocations: 76.86 kB / 0.5751 GB, free: 134.2 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01193/2.031, allocations: 1.416 MB / 0.5765 GB, free: 134.2 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01452/2.045, allocations: 1.326 MB / 0.5778 GB, free: 134.2 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02764/2.073, allocations: 11.96 MB / 0.5894 GB, free: 128 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007024/2.08, allocations: 367.3 kB / 0.5898 GB, free: 127.9 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/2.082, allocations: 303.6 kB / 0.5901 GB, free: 127.9 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 353 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (693): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009493/2.091, allocations: 3.897 MB / 0.5939 GB, free: 126 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/2.093, allocations: 447.9 kB / 0.5943 GB, free: 126 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02145/2.114, allocations: 6.848 MB / 0.601 GB, free: 123.2 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01585/2.13, allocations: 5.64 MB / 0.6065 GB, free: 121 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.43e-05/2.13, allocations: 13.66 kB / 0.6065 GB, free: 121 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.243e-05/2.13, allocations: 17.91 kB / 0.6065 GB, free: 121 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04005/2.17, allocations: 15.48 MB / 0.6216 GB, free: 110.9 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.12e-05/2.17, allocations: 7.938 kB / 0.6216 GB, free: 110.8 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005905/2.176, allocations: 0.6698 MB / 0.6223 GB, free: 110.2 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005553/2.182, allocations: 1.258 MB / 0.6235 GB, free: 108.9 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006754/2.183, allocations: 87.97 kB / 0.6236 GB, free: 108.8 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0225/2.205, allocations: 10.86 MB / 0.6342 GB, free: 97.89 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/2.205, allocations: 4 kB / 0.6342 GB, free: 97.88 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02664/2.232, allocations: 10.53 MB / 0.6445 GB, free: 87.26 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003526/2.235, allocations: 1.038 MB / 0.6455 GB, free: 86.2 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001673/2.237, allocations: 75.98 kB / 0.6456 GB, free: 86.12 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004925/2.242, allocations: 223.8 kB / 0.6458 GB, free: 85.91 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001272/2.243, allocations: 271.1 kB / 0.6461 GB, free: 85.64 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004422/2.244, allocations: 112 kB / 0.6462 GB, free: 85.53 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.007397/2.251, allocations: 3.17 MB / 0.6493 GB, free: 82.36 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.242e-06/2.251, allocations: 0 / 0.6493 GB, free: 82.36 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.009583/2.261, allocations: 1.689 MB / 0.6509 GB, free: 80.67 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (336): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002164/2.263, allocations: 392.1 kB / 0.6513 GB, free: 80.34 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02768/2.291, allocations: 7.616 MB / 0.6587 GB, free: 72.69 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/2.291, allocations: 4.375 kB / 0.6587 GB, free: 72.68 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01464/2.306, allocations: 3.62 MB / 0.6623 GB, free: 69.04 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009467/2.315, allocations: 0.9111 MB / 0.6632 GB, free: 68.12 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0524/2.368, allocations: 20.88 MB / 0.6835 GB, free: 47.15 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01241/2.38, allocations: 6.531 MB / 0.6899 GB, free: 40.58 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002813/2.383, allocations: 403.3 kB / 0.6903 GB, free: 40.18 MB / 426.8 MB Notification: Performance of SimCode: time 1.513e-06/2.383, allocations: 3.938 kB / 0.6903 GB, free: 40.18 MB / 426.8 MB Notification: Performance of Templates: time 0.9527/3.336, allocations: 215.7 MB / 0.901 GB, free: 152.6 MB / 458.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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_withLossesCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:269:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp529 = 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_withLossesFunctions.cpp:269:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp529 = 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_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1