Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics") Notification: Performance of loadModel(Modelica): time 2.016/2.016, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.504e-05/3.497e-05, allocations: 8 kB / 258.8 MB, free: 8.676 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3244, allocations: 44.49 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.04704/0.3715, allocations: 21.67 MB / 325 MB, free: 7.973 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02006/0.3916, allocations: 6.863 MB / 331.9 MB, free: 1.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005681/0.3974, allocations: 191.5 kB / 332 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007204/0.4046, allocations: 1.519 MB / 333.6 MB, free: 15.37 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01269/0.4174, allocations: 2.601 MB / 336.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006737/0.4241, allocations: 1.237 MB / 337.4 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02348/0.4476, allocations: 9.126 MB / 346.5 MB, free: 2.391 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05562/0.5033, allocations: 16.86 MB / 363.4 MB, free: 1.473 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0113/0.5147, allocations: 3.523 MB / 366.9 MB, free: 13.94 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01293/0.5276, allocations: 4.018 MB / 370.9 MB, free: 9.91 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006163/0.5339, allocations: 0.6285 MB / 371.6 MB, free: 9.281 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003272/0.5372, allocations: 356 kB / 371.9 MB, free: 8.934 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004092/0.5413, allocations: 1.771 MB / 373.7 MB, free: 7.156 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004276/0.5456, allocations: 0.8086 MB / 374.5 MB, free: 6.348 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03296/0.5786, allocations: 20.87 MB / 395.4 MB, free: 1.418 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.5787, allocations: 0 / 395.4 MB, free: 1.418 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.5787, allocations: 0 / 395.4 MB, free: 1.418 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006983/0.5794, allocations: 4 kB / 395.4 MB, free: 1.414 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: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.05284/0.6323, allocations: 11.92 MB / 407.3 MB, free: 5.395 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.6324, allocations: 12.03 kB / 407.3 MB, free: 5.383 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08243/0.7148, allocations: 9.241 MB / 416.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02236/0.7372, allocations: 6.808 MB / 423.3 MB, free: 5.227 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00134/0.7386, allocations: 0.8187 MB / 424.2 MB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005294/0.7439, allocations: 1.074 MB / 425.2 MB, free: 3.332 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6361/1.38, allocations: 18.59 MB / 443.8 MB, free: 77.4 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006458/1.381, allocations: 14.86 kB / 443.8 MB, free: 77.4 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004194/1.385, allocations: 452.7 kB / 444.3 MB, free: 77.06 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001135/1.386, allocations: 0.7034 MB / 445 MB, free: 76.98 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0531/1.439, allocations: 18.15 MB / 463.1 MB, free: 64.59 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1318/1.571, allocations: 60.11 MB / 0.511 GB, free: 3.648 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0608/1.632, allocations: 46.67 MB / 0.5566 GB, free: 15.99 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03816/1.67, allocations: 12.55 MB / 0.5688 GB, free: 3.477 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.157e-05/1.67, allocations: 73.64 kB / 0.5689 GB, free: 3.395 MB / 426.8 MB Notification: Performance of pre-optimization done (n=395): time 7.303e-06/1.67, allocations: 4 kB / 0.5689 GB, free: 3.391 MB / 426.8 MB Notification: Performance of matching and sorting (n=401): time 0.3915/2.062, allocations: 19.77 MB / 0.5882 GB, free: 148.8 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/2.062, allocations: 95.16 kB / 0.5883 GB, free: 148.8 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009764/2.072, allocations: 3.823 MB / 0.592 GB, free: 148.3 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000894/2.073, allocations: 85.39 kB / 0.5921 GB, free: 148.2 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003094/2.076, allocations: 4.669 MB / 0.5967 GB, free: 145.3 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001868/2.078, allocations: 1.382 MB / 0.598 GB, free: 144.3 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006149/2.078, allocations: 127.7 kB / 0.5981 GB, free: 144.2 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0004007/2.079, allocations: 0.5818 MB / 0.5987 GB, free: 143.7 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007468/2.086, allocations: 3.157 MB / 0.6018 GB, free: 142.5 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00907/2.095, allocations: 5.765 MB / 0.6074 GB, free: 138 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009894/2.105, allocations: 4.447 MB / 0.6118 GB, free: 136 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.611e-05/2.106, allocations: 25.22 kB / 0.6118 GB, free: 136 MB / 442.8 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02671/2.132, allocations: 10.17 MB / 0.6217 GB, free: 132 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.442e-05/2.132, allocations: 45.02 kB / 0.6217 GB, free: 132 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/2.133, allocations: 86.27 kB / 0.6218 GB, free: 132 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006074/2.139, allocations: 1.42 MB / 0.6232 GB, free: 131.7 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01029/2.149, allocations: 1.466 MB / 0.6246 GB, free: 131.6 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02519/2.174, allocations: 10.86 MB / 0.6353 GB, free: 125.9 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007622/2.182, allocations: 406.6 kB / 0.6356 GB, free: 125.8 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/2.183, allocations: 331.8 kB / 0.636 GB, free: 125.6 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 396 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (759): * Single equations (assignments): 754 * 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.009636/2.193, allocations: 4.16 MB / 0.64 GB, free: 122 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/2.194, allocations: 450.1 kB / 0.6405 GB, free: 121.6 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0201/2.215, allocations: 7.47 MB / 0.6477 GB, free: 114.2 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01597/2.231, allocations: 6.136 MB / 0.6537 GB, free: 108.1 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.331e-05/2.231, allocations: 19.92 kB / 0.6538 GB, free: 108 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.86e-05/2.231, allocations: 23.88 kB / 0.6538 GB, free: 108 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04288/2.274, allocations: 16.54 MB / 0.6699 GB, free: 91.48 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-05/2.274, allocations: 0 / 0.6699 GB, free: 91.48 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006624/2.28, allocations: 0.7409 MB / 0.6707 GB, free: 90.74 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005925/2.286, allocations: 1.238 MB / 0.6719 GB, free: 89.5 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000977/2.287, allocations: 87.97 kB / 0.6719 GB, free: 89.41 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0226/2.31, allocations: 9.622 MB / 0.6813 GB, free: 79.66 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/2.31, allocations: 4 kB / 0.6813 GB, free: 79.66 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02827/2.338, allocations: 10.8 MB / 0.6919 GB, free: 68.78 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003833/2.342, allocations: 1.069 MB / 0.6929 GB, free: 67.68 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001949/2.344, allocations: 72 kB / 0.693 GB, free: 67.61 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005392/2.35, allocations: 263.8 kB / 0.6933 GB, free: 67.36 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001361/2.351, allocations: 271.6 kB / 0.6935 GB, free: 67.09 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005957/2.352, allocations: 120 kB / 0.6936 GB, free: 66.97 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.00698/2.359, allocations: 2.838 MB / 0.6964 GB, free: 64.12 MB / 442.8 MB Notification: Performance of sort global known variables: time 9.92e-07/2.359, allocations: 4 kB / 0.6964 GB, free: 64.12 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.009755/2.369, allocations: 1.845 MB / 0.6982 GB, free: 62.28 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (imsQS.rotor.strayReluctance.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 (367): * Single equations (assignments): 362 * 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,40.3%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001326/2.37, allocations: 262.6 kB / 0.6985 GB, free: 62.03 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02146/2.391, allocations: 8.025 MB / 0.7063 GB, free: 53.99 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/2.391, allocations: 0 / 0.7063 GB, free: 53.99 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01105/2.403, allocations: 3.713 MB / 0.7099 GB, free: 50.27 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00813/2.411, allocations: 0.99 MB / 0.7109 GB, free: 49.28 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05362/2.464, allocations: 22.18 MB / 0.7326 GB, free: 27.04 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01515/2.48, allocations: 6.993 MB / 0.7394 GB, free: 19.99 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003167/2.483, allocations: 423.3 kB / 0.7398 GB, free: 19.58 MB / 442.8 MB Notification: Performance of SimCode: time 1.944e-06/2.483, allocations: 0 / 0.7398 GB, free: 19.58 MB / 442.8 MB Notification: Performance of Templates: time 0.928/3.411, allocations: 172 MB / 0.9077 GB, free: 137.8 MB / 458.8 MB make -j1 -f Modelica_3.2.2_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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsFunctions.cpp:221:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp585 = 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.IMS_CharacteristicsFunctions.cpp:221:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp585 = 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.IMS_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.o] Error 1