Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.269e-05/3.266e-05, allocations: 7.938 kB / 258.8 MB, free: 8.684 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3127, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.04536/0.3582, allocations: 26.14 MB / 329.5 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0245/0.3827, allocations: 7.752 MB / 337.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006753/0.3895, allocations: 239.3 kB / 337.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008152/0.3977, allocations: 1.702 MB / 339.1 MB, free: 9.789 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01574/0.4135, allocations: 2.975 MB / 342.1 MB, free: 6.805 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007991/0.4216, allocations: 1.369 MB / 343.5 MB, free: 5.438 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02639/0.448, allocations: 9.595 MB / 353.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04457/0.4926, allocations: 14.92 MB / 368 MB, free: 12.83 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009685/0.5024, allocations: 3.632 MB / 371.6 MB, free: 9.188 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01043/0.5129, allocations: 4.166 MB / 375.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005737/0.5187, allocations: 0.6559 MB / 376.5 MB, free: 4.352 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003229/0.5219, allocations: 388 kB / 376.8 MB, free: 3.973 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004355/0.5263, allocations: 1.915 MB / 378.7 MB, free: 2.051 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004626/0.531, allocations: 0.8594 MB / 379.6 MB, free: 1.191 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0339/0.565, allocations: 21.04 MB / 400.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.565, allocations: 0 / 400.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.5651, allocations: 0 / 400.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006923/0.5658, allocations: 0 / 400.6 MB, free: 12.09 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.05279/0.6186, allocations: 11.89 MB / 412.5 MB, free: 104 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.6186, allocations: 12.03 kB / 412.5 MB, free: 92 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06918/0.6878, allocations: 7.676 MB / 420.2 MB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02418/0.7121, allocations: 7.213 MB / 427.4 MB, free: 1.102 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001355/0.7135, allocations: 0.8027 MB / 428.2 MB, free: 304 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.5352/1.249, allocations: 1.054 MB / 429.3 MB, free: 84.48 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06351/1.312, allocations: 17.51 MB / 446.8 MB, free: 77.75 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005934/1.313, allocations: 14.83 kB / 446.8 MB, free: 77.74 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00383/1.317, allocations: 447.6 kB / 447.3 MB, free: 77.41 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009667/1.318, allocations: 0.6632 MB / 447.9 MB, free: 77.27 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0488/1.367, allocations: 16.91 MB / 464.8 MB, free: 63.33 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1305/1.497, allocations: 57.25 MB / 0.5098 GB, free: 5.402 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06614/1.563, allocations: 39.95 MB / 0.5489 GB, free: 8.449 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0796/1.643, allocations: 12.44 MB / 0.561 GB, free: 12.02 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/1.643, allocations: 81.84 kB / 0.5611 GB, free: 11.93 MB / 426.8 MB Notification: Performance of pre-optimization done (n=408): time 1.086e-05/1.643, allocations: 0 / 0.5611 GB, free: 11.93 MB / 426.8 MB Notification: Performance of matching and sorting (n=433): time 0.1065/1.75, allocations: 22.19 MB / 0.5828 GB, free: 5.375 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/1.75, allocations: 132.7 kB / 0.5829 GB, free: 5.227 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01708/1.767, allocations: 4.215 MB / 0.587 GB, free: 1.012 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001138/1.768, allocations: 97.7 kB / 0.5871 GB, free: 0.9102 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.2988/2.067, allocations: 4.56 MB / 0.5915 GB, free: 148.5 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002607/2.07, allocations: 1.487 MB / 0.593 GB, free: 147.6 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009997/2.071, allocations: 126.9 kB / 0.5931 GB, free: 147.6 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.00062/2.071, allocations: 0.5569 MB / 0.5937 GB, free: 147.3 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008707/2.08, allocations: 2.993 MB / 0.5966 GB, free: 146.6 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01024/2.09, allocations: 5.215 MB / 0.6017 GB, free: 142.5 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/2.101, allocations: 4.091 MB / 0.6057 GB, free: 140.7 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.915e-05/2.101, allocations: 19.81 kB / 0.6057 GB, free: 140.7 MB / 442.8 MB Notification: Performance of matching and sorting (n=809) (initialization): time 0.02891/2.13, allocations: 9.83 MB / 0.6153 GB, free: 136.7 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.606e-05/2.13, allocations: 35.53 kB / 0.6153 GB, free: 136.7 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/2.13, allocations: 71.25 kB / 0.6154 GB, free: 136.7 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008025/2.138, allocations: 1.685 MB / 0.617 GB, free: 136.3 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01097/2.149, allocations: 1.416 MB / 0.6184 GB, free: 136.2 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03484/2.184, allocations: 16.87 MB / 0.6349 GB, free: 125.4 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008008/2.192, allocations: 342.9 kB / 0.6352 GB, free: 125.2 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001665/2.194, allocations: 304.9 kB / 0.6355 GB, free: 124.9 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (716): * Single equations (assignments): 712 * 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,(8,56.2%) 27,(1,100.0%) 1,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0103/2.204, allocations: 3.934 MB / 0.6394 GB, free: 121.5 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001739/2.206, allocations: 0.4936 MB / 0.6398 GB, free: 121 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02623/2.232, allocations: 7.917 MB / 0.6476 GB, free: 113.9 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.4e-05/2.232, allocations: 44 kB / 0.6476 GB, free: 113.9 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.626e-05/2.232, allocations: 16 kB / 0.6476 GB, free: 113.9 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001468/2.232, allocations: 23.91 kB / 0.6476 GB, free: 113.9 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06443/2.297, allocations: 17.71 MB / 0.6649 GB, free: 96.02 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.589e-05/2.297, allocations: 4 kB / 0.6649 GB, free: 96.02 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008793/2.306, allocations: 0.7534 MB / 0.6657 GB, free: 95.26 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00887/2.315, allocations: 1.548 MB / 0.6672 GB, free: 93.7 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009839/2.316, allocations: 115.9 kB / 0.6673 GB, free: 93.59 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03419/2.35, allocations: 19.87 MB / 0.6867 GB, free: 72.81 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/2.35, allocations: 4 kB / 0.6867 GB, free: 72.81 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03179/2.382, allocations: 12.38 MB / 0.6988 GB, free: 60.04 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004147/2.386, allocations: 1.182 MB / 0.6999 GB, free: 58.84 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002146/2.388, allocations: 92.17 kB / 0.7 GB, free: 58.75 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005896/2.394, allocations: 243.8 kB / 0.7003 GB, free: 58.51 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001481/2.396, allocations: 343.6 kB / 0.7006 GB, free: 58.17 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006758/2.396, allocations: 132 kB / 0.7007 GB, free: 58.04 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.008071/2.405, allocations: 3.161 MB / 0.7038 GB, free: 54.89 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.122e-06/2.405, allocations: 0 / 0.7038 GB, free: 54.89 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01093/2.416, allocations: 1.901 MB / 0.7057 GB, free: 52.99 MB / 442.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.strayReluctance.Phi.re,imc.stator.strayReluctance.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.001336/2.417, allocations: 274 kB / 0.7059 GB, free: 52.72 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02264/2.44, allocations: 8.298 MB / 0.714 GB, free: 44.36 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/2.44, allocations: 4 kB / 0.714 GB, free: 44.36 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01308/2.453, allocations: 4.7 MB / 0.7186 GB, free: 39.57 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009372/2.462, allocations: 1.188 MB / 0.7198 GB, free: 38.38 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05226/2.514, allocations: 22.99 MB / 0.7422 GB, free: 15.27 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3148/2.829, allocations: 6.827 MB / 0.7489 GB, free: 134.8 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003193/2.833, allocations: 439.7 kB / 0.7493 GB, free: 134.8 MB / 442.8 MB Notification: Performance of SimCode: time 1.402e-06/2.833, allocations: 0 / 0.7493 GB, free: 134.8 MB / 442.8 MB Notification: Performance of Templates: time 1.322/4.155, allocations: 436.5 MB / 1.176 GB, free: 64.86 MB / 458.8 MB make -j1 -f Modelica_3.2.2_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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeFunctions.cpp:113:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp609 = 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_InitializeFunctions.cpp:113:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp609 = 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_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o] Error 1