Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics") Notification: Performance of loadModel(Modelica): time 2.08/2.08, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.114e-05/3.102e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 50.42 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.03541/0.1468, allocations: 20.83 MB / 365.8 MB, free: 4.008 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01969/0.1666, allocations: 6.955 MB / 372.8 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005592/0.1722, allocations: 207.4 kB / 373 MB, free: 12.83 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007186/0.1795, allocations: 1.5 MB / 374.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01215/0.1917, allocations: 2.563 MB / 377.1 MB, free: 8.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006577/0.1983, allocations: 1.237 MB / 378.3 MB, free: 7.516 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02242/0.2207, allocations: 9.058 MB / 387.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3643/0.5851, allocations: 16.85 MB / 404.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01126/0.5964, allocations: 3.474 MB / 407.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01425/0.6107, allocations: 3.955 MB / 411.6 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00752/0.6183, allocations: 0.6267 MB / 412.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004355/0.6227, allocations: 351.4 kB / 412.6 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005479/0.6283, allocations: 1.718 MB / 414.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005811/0.6341, allocations: 0.799 MB / 415.1 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03428/0.6685, allocations: 20.89 MB / 436 MB, free: 1.805 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.6685, allocations: 1.75 kB / 436 MB, free: 1.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.687e-06/0.6686, allocations: 0 / 436 MB, free: 1.805 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0007462/0.6693, allocations: 4 kB / 436 MB, free: 1.801 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: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.05202/0.7214, allocations: 11.79 MB / 447.8 MB, free: 10.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.7214, allocations: 12.02 kB / 447.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07449/0.7959, allocations: 8.241 MB / 456.1 MB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02402/0.82, allocations: 7.373 MB / 463.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001277/0.8213, allocations: 0.8086 MB / 464.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005707/0.8271, allocations: 1.063 MB / 465.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06677/0.8939, allocations: 18.13 MB / 483.4 MB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000671/0.8946, allocations: 19.89 kB / 483.5 MB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004791/0.8994, allocations: 449.3 kB / 483.9 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001208/0.9007, allocations: 0.6672 MB / 484.6 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07209/0.9728, allocations: 17.47 MB / 0.4903 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1683/1.141, allocations: 58.82 MB / 0.5477 GB, free: 15.72 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4061/1.547, allocations: 37.43 MB / 0.5843 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001108/1.548, allocations: 201.1 kB / 0.5844 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001157/1.549, allocations: 87.8 kB / 0.5845 GB, free: 104.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=524): time 9.699e-06/1.549, allocations: 0 / 0.5845 GB, free: 104.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=530): time 0.1061/1.655, allocations: 22.15 MB / 0.6062 GB, free: 98.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.441e-05/1.655, allocations: 108.1 kB / 0.6063 GB, free: 98.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00934/1.664, allocations: 3.676 MB / 0.6099 GB, free: 96.84 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001117/1.665, allocations: 113 kB / 0.61 GB, free: 96.74 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003658/1.669, allocations: 4.357 MB / 0.6142 GB, free: 93.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002753/1.672, allocations: 1.793 MB / 0.616 GB, free: 92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009502/1.673, allocations: 139.3 kB / 0.6161 GB, free: 91.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006092/1.674, allocations: 0.6009 MB / 0.6167 GB, free: 91.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009858/1.683, allocations: 3.472 MB / 0.6201 GB, free: 90.14 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01191/1.695, allocations: 5.89 MB / 0.6258 GB, free: 85.72 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/1.708, allocations: 4.803 MB / 0.6305 GB, free: 83.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-05/1.708, allocations: 23.5 kB / 0.6305 GB, free: 83.56 MB / 458.7 MB Notification: Performance of matching and sorting (n=916) (initialization): time 0.03298/1.741, allocations: 10.81 MB / 0.6411 GB, free: 77.61 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.149e-05/1.741, allocations: 36 kB / 0.6411 GB, free: 77.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000144/1.741, allocations: 80 kB / 0.6412 GB, free: 77.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006457/1.748, allocations: 1.405 MB / 0.6426 GB, free: 76.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01145/1.759, allocations: 1.612 MB / 0.6442 GB, free: 75.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02539/1.785, allocations: 10.89 MB / 0.6548 GB, free: 65.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008362/1.793, allocations: 427.2 kB / 0.6552 GB, free: 64.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001785/1.795, allocations: 332 kB / 0.6555 GB, free: 64.48 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (843): * Single equations (assignments): 838 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01079/1.806, allocations: 4.149 MB / 0.6596 GB, free: 60.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001511/1.807, allocations: 474.2 kB / 0.66 GB, free: 59.85 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0254/1.833, allocations: 8.573 MB / 0.6684 GB, free: 51.19 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.021/1.854, allocations: 7.156 MB / 0.6754 GB, free: 43.95 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.664e-05/1.854, allocations: 8 kB / 0.6754 GB, free: 43.94 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001614/1.854, allocations: 27.91 kB / 0.6754 GB, free: 43.91 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.056/1.91, allocations: 19.4 MB / 0.6944 GB, free: 24.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.359e-05/1.91, allocations: 0 / 0.6944 GB, free: 24.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007745/1.918, allocations: 0.9442 MB / 0.6953 GB, free: 23.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005804/1.924, allocations: 1.238 MB / 0.6965 GB, free: 22.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001064/1.925, allocations: 116 kB / 0.6966 GB, free: 21.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02212/1.947, allocations: 9.631 MB / 0.706 GB, free: 12.19 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/1.947, allocations: 0 / 0.706 GB, free: 12.19 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03167/1.979, allocations: 12.64 MB / 0.7184 GB, free: 15.28 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004725/1.984, allocations: 1.167 MB / 0.7195 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001886/1.986, allocations: 95.95 kB / 0.7196 GB, free: 14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005656/1.991, allocations: 279.8 kB / 0.7199 GB, free: 13.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001472/1.993, allocations: 348.5 kB / 0.7202 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006413/1.993, allocations: 151.9 kB / 0.7203 GB, free: 13.23 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008076/2.002, allocations: 2.752 MB / 0.723 GB, free: 10.47 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.21e-07/2.002, allocations: 0 / 0.723 GB, free: 10.47 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01105/2.013, allocations: 1.939 MB / 0.7249 GB, free: 8.535 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (imsQS.rotor.stray.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (502): * Single equations (assignments): 497 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001568/2.014, allocations: 316 kB / 0.7252 GB, free: 8.227 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02566/2.04, allocations: 8.794 MB / 0.7338 GB, free: 15.36 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/2.04, allocations: 8.125 kB / 0.7338 GB, free: 15.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01352/2.054, allocations: 4.213 MB / 0.7379 GB, free: 11.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008779/2.062, allocations: 0.9937 MB / 0.7389 GB, free: 10.14 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4306/2.493, allocations: 22.69 MB / 0.761 GB, free: 155.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01784/2.511, allocations: 6.969 MB / 0.7679 GB, free: 154.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003501/2.515, allocations: 468.9 kB / 0.7683 GB, free: 154.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.333e-06/2.515, allocations: 0 / 0.7683 GB, free: 154.4 MB / 490.7 MB Notification: Performance of Templates: time 0.6421/3.157, allocations: 173.8 MB / 0.938 GB, free: 147.1 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.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.IMS_CharacteristicsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsFunctions.cpp:221:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp583 = 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.IMS_CharacteristicsFunctions.cpp:221:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp583 = 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.IMS_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.o] Error 1