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 1.92/1.92, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.016e-05/3.035e-05, allocations: 4 kB / 292.2 MB, free: 8.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09207/0.09213, allocations: 50.41 MB / 342.6 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.532, allocations: 131.9 MB / 474.5 MB, free: 11.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/0.5324, allocations: 101.4 kB / 474.6 MB, free: 11.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.671/2.204, allocations: 379.2 MB / 0.8338 GB, free: 14.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.483e-06/2.204, allocations: 0 / 0.8338 GB, free: 14.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006612/2.204, allocations: 239.8 kB / 0.834 GB, free: 14.39 MB / 442.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.03985/2.244, allocations: 10.17 MB / 0.8439 GB, free: 4.129 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/2.244, allocations: 16.03 kB / 0.8439 GB, free: 4.113 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04166/2.286, allocations: 5.636 MB / 0.8494 GB, free: 14.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02898/2.315, allocations: 8.919 MB / 0.8582 GB, free: 5.445 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001169/2.316, allocations: 0.7707 MB / 0.8589 GB, free: 4.672 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004792/2.321, allocations: 1.011 MB / 0.8599 GB, free: 3.664 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6742/2.995, allocations: 17.71 MB / 0.8772 GB, free: 36.54 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005162/2.996, allocations: 17.83 kB / 0.8772 GB, free: 36.54 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004123/3, allocations: 448.6 kB / 0.8776 GB, free: 36.54 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001408/3.001, allocations: 0.864 MB / 0.8785 GB, free: 36.52 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04301/3.044, allocations: 15.91 MB / 0.894 GB, free: 36.47 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.118/3.163, allocations: 58.44 MB / 0.9511 GB, free: 16.62 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0387/3.201, allocations: 37.15 MB / 0.9873 GB, free: 15.46 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008577/3.21, allocations: 4.114 MB / 0.9914 GB, free: 13.83 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006813/3.211, allocations: 189.8 kB / 0.9915 GB, free: 13.72 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/3.211, allocations: 94.05 kB / 0.9916 GB, free: 13.64 MB / 490.8 MB Notification: Performance of pre-optimization done (n=524): time 1.12e-05/3.211, allocations: 0 / 0.9916 GB, free: 13.64 MB / 490.8 MB Notification: Performance of matching and sorting (n=530): time 0.04115/3.252, allocations: 15.54 MB / 1.007 GB, free: 6.715 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.332e-05/3.252, allocations: 106.4 kB / 1.007 GB, free: 6.645 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008684/3.261, allocations: 3.553 MB / 1.01 GB, free: 5.25 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009276/3.262, allocations: 112.3 kB / 1.01 GB, free: 5.152 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004339/3.266, allocations: 4.364 MB / 1.015 GB, free: 1.789 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002885/3.269, allocations: 1.794 MB / 1.017 GB, free: 416 kB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/3.27, allocations: 145.9 kB / 1.017 GB, free: 300 kB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0008057/3.271, allocations: 0.6028 MB / 1.017 GB, free: 15.85 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007722/3.279, allocations: 3.361 MB / 1.021 GB, free: 14.55 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01108/3.29, allocations: 5.746 MB / 1.026 GB, free: 9.031 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/3.301, allocations: 4.726 MB / 1.031 GB, free: 5.047 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.241e-05/3.301, allocations: 20 kB / 1.031 GB, free: 5.027 MB / 0.4949 GB Notification: Performance of matching and sorting (n=917) (initialization): time 0.03106/3.332, allocations: 10.51 MB / 1.041 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/3.332, allocations: 39.28 kB / 1.041 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/3.333, allocations: 80 kB / 1.041 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00514/3.338, allocations: 1.394 MB / 1.042 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008725/3.346, allocations: 1.612 MB / 1.044 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02321/3.37, allocations: 10.54 MB / 1.054 GB, free: 1.105 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006869/3.377, allocations: 419.4 kB / 1.055 GB, free: 0.7734 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001956/3.379, allocations: 329.3 kB / 1.055 GB, free: 472 kB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 356 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (844): * Single equations (assignments): 839 * 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.3%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00291/3.382, allocations: 0.5424 MB / 1.056 GB, free: 20 kB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3288/3.71, allocations: 472.8 kB / 1.056 GB, free: 96.18 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03406/3.745, allocations: 8.362 MB / 1.064 GB, free: 95.88 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03343/3.778, allocations: 6.943 MB / 1.071 GB, free: 95.61 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.819e-05/3.778, allocations: 11.5 kB / 1.071 GB, free: 95.61 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001838/3.778, allocations: 32.11 kB / 1.071 GB, free: 95.61 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06236/3.841, allocations: 19.67 MB / 1.09 GB, free: 93.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.355e-05/3.841, allocations: 0 / 1.09 GB, free: 93.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005607/3.846, allocations: 0.9244 MB / 1.091 GB, free: 93.58 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004146/3.851, allocations: 1.217 MB / 1.092 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009995/3.852, allocations: 109.1 kB / 1.092 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01798/3.87, allocations: 9.135 MB / 1.101 GB, free: 92.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/3.87, allocations: 3.844 kB / 1.101 GB, free: 92.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02554/3.895, allocations: 12.23 MB / 1.113 GB, free: 91.39 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003945/3.899, allocations: 1.156 MB / 1.114 GB, free: 91.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001971/3.901, allocations: 99.09 kB / 1.115 GB, free: 91.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004516/3.906, allocations: 284.4 kB / 1.115 GB, free: 91.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00135/3.907, allocations: 346.5 kB / 1.115 GB, free: 91.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005888/3.908, allocations: 154.5 kB / 1.115 GB, free: 91.15 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006095/3.914, allocations: 2.649 MB / 1.118 GB, free: 90.95 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.33e-06/3.914, allocations: 0 / 1.118 GB, free: 90.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01026/3.924, allocations: 1.971 MB / 1.12 GB, free: 90.95 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * 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.001911/3.926, allocations: 0.6713 MB / 1.12 GB, free: 90.81 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01844/3.945, allocations: 8.385 MB / 1.129 GB, free: 90.46 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/3.945, allocations: 3.219 kB / 1.129 GB, free: 90.46 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009585/3.954, allocations: 4.042 MB / 1.133 GB, free: 89.29 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006749/3.961, allocations: 0.9908 MB / 1.134 GB, free: 89 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04318/4.004, allocations: 16.26 MB / 1.149 GB, free: 82.89 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01456/4.019, allocations: 6.987 MB / 1.156 GB, free: 80.36 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002725/4.022, allocations: 463.5 kB / 1.157 GB, free: 80.33 MB / 0.5105 GB Notification: Performance of SimCode: time 1.884e-06/4.022, allocations: 6.312 kB / 1.157 GB, free: 80.33 MB / 0.5105 GB Notification: Performance of Templates: time 0.6025/4.624, allocations: 173.6 MB / 1.326 GB, free: 81.11 MB / 0.5105 GB 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 -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -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:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsFunctions.cpp:540:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp178 = 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:540:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp178 = 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