Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 224.7 MB / 241.1 MB, free: 1.633 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.92e-05, allocations: 0 / 294.6 MB, free: 11.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.114, allocations: 50.41 MB / 345 MB, free: 8.895 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.04397/0.158, allocations: 25.36 MB / 370.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02272/0.1808, allocations: 7.804 MB / 378.2 MB, free: 7.621 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006833/0.1877, allocations: 259.2 kB / 378.4 MB, free: 7.367 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00789/0.1957, allocations: 1.679 MB / 380.1 MB, free: 5.68 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01375/0.2095, allocations: 2.874 MB / 383 MB, free: 2.797 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007885/0.2174, allocations: 1.372 MB / 384.3 MB, free: 1.426 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02586/0.2433, allocations: 9.55 MB / 393.9 MB, free: 7.855 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3673/0.6106, allocations: 14.91 MB / 408.8 MB, free: 8.672 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009708/0.6204, allocations: 3.589 MB / 412.4 MB, free: 8.668 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01091/0.6314, allocations: 4.105 MB / 416.5 MB, free: 8.664 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006068/0.6375, allocations: 0.6521 MB / 417.1 MB, free: 8.664 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003784/0.6414, allocations: 382.3 kB / 417.5 MB, free: 8.664 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00513/0.6465, allocations: 1.871 MB / 419.4 MB, free: 8.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005281/0.6519, allocations: 0.8511 MB / 420.2 MB, free: 8.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04007/0.692, allocations: 21.75 MB / 442 MB, free: 15.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.6921, allocations: 0 / 442 MB, free: 15.87 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.467e-06/0.6921, allocations: 0 / 442 MB, free: 15.87 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007978/0.6929, allocations: 0 / 442 MB, free: 15.87 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.06116/0.7541, allocations: 11.75 MB / 453.7 MB, free: 5.273 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.589e-05/0.7542, allocations: 16.03 kB / 453.8 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08953/0.8437, allocations: 6.683 MB / 460.4 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03388/0.8777, allocations: 7.771 MB / 468.2 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001731/0.8794, allocations: 0.7904 MB / 469 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007054/0.8865, allocations: 1.045 MB / 470 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08022/0.9668, allocations: 17.06 MB / 487.1 MB, free: 8.156 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006293/0.9675, allocations: 11.81 kB / 487.1 MB, free: 8.145 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004779/0.9723, allocations: 444.3 kB / 487.6 MB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001434/0.9738, allocations: 0.6313 MB / 488.2 MB, free: 7.086 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07242/1.046, allocations: 16.24 MB / 0.4926 GB, free: 6.828 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1626/1.209, allocations: 55.89 MB / 0.5472 GB, free: 14.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.6509/1.86, allocations: 31 MB / 0.5775 GB, free: 105.2 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03093/1.891, allocations: 10.14 MB / 0.5874 GB, free: 103.2 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.302e-05/1.891, allocations: 83.36 kB / 0.5874 GB, free: 103.2 MB / 458.8 MB Notification: Performance of pre-optimization done (n=408): time 7.995e-06/1.891, allocations: 0 / 0.5874 GB, free: 103.2 MB / 458.8 MB Notification: Performance of matching and sorting (n=433): time 0.09426/1.985, allocations: 21.92 MB / 0.6088 GB, free: 93.33 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/1.985, allocations: 126.2 kB / 0.609 GB, free: 93.23 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01496/2, allocations: 4.092 MB / 0.613 GB, free: 91.68 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001201/2.002, allocations: 98.98 kB / 0.6131 GB, free: 91.59 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005104/2.007, allocations: 4.406 MB / 0.6174 GB, free: 88.17 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002727/2.01, allocations: 1.489 MB / 0.6188 GB, free: 87.02 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008208/2.011, allocations: 119.2 kB / 0.6189 GB, free: 86.93 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004699/2.011, allocations: 0.5462 MB / 0.6195 GB, free: 86.51 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007785/2.019, allocations: 2.927 MB / 0.6223 GB, free: 85.36 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009696/2.029, allocations: 4.934 MB / 0.6271 GB, free: 81.62 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/2.039, allocations: 3.966 MB / 0.631 GB, free: 79.78 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.698e-05/2.039, allocations: 15.41 kB / 0.631 GB, free: 79.78 MB / 458.8 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02859/2.067, allocations: 9.522 MB / 0.6403 GB, free: 73.76 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.288e-05/2.068, allocations: 32 kB / 0.6404 GB, free: 73.73 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/2.068, allocations: 64 kB / 0.6404 GB, free: 73.66 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007916/2.076, allocations: 1.651 MB / 0.642 GB, free: 72.15 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/2.086, allocations: 1.337 MB / 0.6433 GB, free: 70.81 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03458/2.121, allocations: 16.87 MB / 0.6598 GB, free: 53.43 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00782/2.129, allocations: 339.6 kB / 0.6601 GB, free: 53.09 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001548/2.13, allocations: 284 kB / 0.6604 GB, free: 52.82 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 292 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (677): * Single equations (assignments): 673 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,59.2%) 28,(1,100.0%) 1,(14,38.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01043/2.141, allocations: 3.869 MB / 0.6642 GB, free: 48.93 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00178/2.142, allocations: 0.4901 MB / 0.6647 GB, free: 48.44 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02466/2.167, allocations: 7.911 MB / 0.6724 GB, free: 40.44 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.082e-05/2.167, allocations: 44 kB / 0.6724 GB, free: 40.39 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.683e-05/2.167, allocations: 16 kB / 0.6724 GB, free: 40.38 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001249/2.167, allocations: 23.91 kB / 0.6725 GB, free: 40.36 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04959/2.217, allocations: 17.62 MB / 0.6897 GB, free: 22.59 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.606e-05/2.217, allocations: 8 kB / 0.6897 GB, free: 22.58 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006785/2.224, allocations: 0.7536 MB / 0.6904 GB, free: 21.83 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007254/2.231, allocations: 1.545 MB / 0.6919 GB, free: 20.27 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009738/2.232, allocations: 107.9 kB / 0.692 GB, free: 20.16 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03282/2.265, allocations: 19.87 MB / 0.7114 GB, free: 15.38 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/2.265, allocations: 16 kB / 0.7114 GB, free: 15.37 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03519/2.3, allocations: 12.35 MB / 0.7235 GB, free: 2.621 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004581/2.305, allocations: 1.17 MB / 0.7246 GB, free: 1.426 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002294/2.307, allocations: 88 kB / 0.7247 GB, free: 1.34 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006224/2.314, allocations: 239.8 kB / 0.725 GB, free: 1.105 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001586/2.315, allocations: 339.7 kB / 0.7253 GB, free: 0.7695 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007484/2.316, allocations: 128 kB / 0.7254 GB, free: 0.6445 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.009178/2.325, allocations: 3.085 MB / 0.7284 GB, free: 13.56 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.81e-07/2.325, allocations: 0 / 0.7284 GB, free: 13.56 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01128/2.336, allocations: 1.866 MB / 0.7302 GB, free: 11.7 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (374): * Single equations (assignments): 367 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,41.3%) 44,(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001538/2.338, allocations: 273.5 kB / 0.7305 GB, free: 11.43 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02551/2.364, allocations: 8.216 MB / 0.7385 GB, free: 3.152 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-05/2.364, allocations: 0 / 0.7385 GB, free: 3.152 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.3363/2.7, allocations: 4.699 MB / 0.7431 GB, free: 153.6 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0106/2.711, allocations: 1.187 MB / 0.7443 GB, free: 153.6 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06129/2.772, allocations: 22.69 MB / 0.7664 GB, free: 144.3 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01711/2.789, allocations: 6.747 MB / 0.773 GB, free: 143.3 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003378/2.793, allocations: 424.2 kB / 0.7734 GB, free: 143.3 MB / 490.8 MB Notification: Performance of SimCode: time 1.754e-06/2.793, allocations: 0 / 0.7734 GB, free: 143.3 MB / 490.8 MB Notification: Performance of Templates: time 1.287/4.08, allocations: 431.5 MB / 1.195 GB, free: 89.9 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeFunctions.cpp:113:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp597 = 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_InitializeFunctions.cpp:113:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp597 = 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_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o] Error 1