Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadModel(Modelica): time 2.132/2.132, allocations: 194.9 MB / 211.2 MB, free: 8.34 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.574e-05/2.573e-05, allocations: 3.938 kB / 258.8 MB, free: 8.672 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3076, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.05224/0.3599, allocations: 30.62 MB / 333.9 MB, free: 14.96 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02629/0.3862, allocations: 8.661 MB / 342.6 MB, free: 6.285 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007646/0.394, allocations: 299.1 kB / 342.9 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009471/0.4035, allocations: 1.989 MB / 344.9 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01605/0.4196, allocations: 3.263 MB / 348.2 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008559/0.4282, allocations: 1.574 MB / 349.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02896/0.4572, allocations: 11.31 MB / 361 MB, free: 3.809 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05941/0.5166, allocations: 20.89 MB / 381.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01166/0.5284, allocations: 4.564 MB / 386.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01293/0.5413, allocations: 5.283 MB / 391.8 MB, free: 4.961 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006591/0.548, allocations: 0.7729 MB / 392.6 MB, free: 4.188 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004211/0.5523, allocations: 484 kB / 393 MB, free: 3.715 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005679/0.558, allocations: 2.389 MB / 395.4 MB, free: 1.316 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005835/0.5639, allocations: 1.109 MB / 396.5 MB, free: 212 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04384/0.6078, allocations: 26.95 MB / 423.5 MB, free: 5.184 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.6079, allocations: 4 kB / 423.5 MB, free: 5.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.198e-06/0.6079, allocations: 4 kB / 423.5 MB, free: 5.176 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.001029/0.6089, allocations: 3.938 kB / 423.5 MB, free: 5.172 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.7128/1.322, allocations: 15.15 MB / 438.6 MB, free: 80.59 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/1.322, allocations: 11.84 kB / 438.6 MB, free: 80.59 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08657/1.408, allocations: 9.181 MB / 447.8 MB, free: 75.04 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02734/1.436, allocations: 9.026 MB / 456.9 MB, free: 66.02 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001442/1.437, allocations: 1.074 MB / 457.9 MB, free: 64.96 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006541/1.444, allocations: 1.409 MB / 459.3 MB, free: 63.56 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07486/1.519, allocations: 23.01 MB / 482.3 MB, free: 40.5 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008608/1.52, allocations: 23.8 kB / 482.4 MB, free: 40.48 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005808/1.526, allocations: 0.5808 MB / 483 MB, free: 39.91 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001128/1.527, allocations: 0.807 MB / 483.8 MB, free: 39.11 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0656/1.592, allocations: 21.61 MB / 0.4935 GB, free: 17.47 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1964/1.789, allocations: 74.29 MB / 0.5661 GB, free: 6 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3686/2.158, allocations: 53.49 MB / 0.6183 GB, free: 99.12 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04692/2.205, allocations: 15.25 MB / 0.6332 GB, free: 93.49 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.628e-05/2.205, allocations: 86.41 kB / 0.6333 GB, free: 93.41 MB / 442.8 MB Notification: Performance of pre-optimization done (n=512): time 9.167e-06/2.205, allocations: 0 / 0.6333 GB, free: 93.41 MB / 442.8 MB Notification: Performance of matching and sorting (n=520): time 0.1007/2.305, allocations: 27.25 MB / 0.6599 GB, free: 81.43 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.686e-05/2.306, allocations: 129.5 kB / 0.66 GB, free: 81.33 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01305/2.319, allocations: 5.169 MB / 0.6651 GB, free: 78.82 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001048/2.32, allocations: 105.7 kB / 0.6652 GB, free: 78.71 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004625/2.324, allocations: 6.003 MB / 0.671 GB, free: 73.34 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002636/2.327, allocations: 1.791 MB / 0.6728 GB, free: 71.73 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001252/2.328, allocations: 160 kB / 0.6729 GB, free: 71.57 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0007043/2.329, allocations: 0.6247 MB / 0.6735 GB, free: 71.04 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009845/2.339, allocations: 3.739 MB / 0.6772 GB, free: 67.31 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.012/2.351, allocations: 6.793 MB / 0.6838 GB, free: 59.11 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/2.364, allocations: 5.193 MB / 0.6889 GB, free: 53.91 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/2.364, allocations: 28 kB / 0.6889 GB, free: 53.88 MB / 442.8 MB Notification: Performance of matching and sorting (n=1013) (initialization): time 0.03406/2.398, allocations: 12.22 MB / 0.7009 GB, free: 41.6 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.873e-05/2.399, allocations: 48.62 kB / 0.7009 GB, free: 41.55 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/2.399, allocations: 100 kB / 0.701 GB, free: 41.46 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00753/2.406, allocations: 1.612 MB / 0.7026 GB, free: 39.84 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01253/2.419, allocations: 1.767 MB / 0.7043 GB, free: 38.07 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03512/2.454, allocations: 18.63 MB / 0.7225 GB, free: 18.79 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009358/2.463, allocations: 451.5 kB / 0.7229 GB, free: 18.35 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001836/2.465, allocations: 392 kB / 0.7233 GB, free: 17.97 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 460 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (913): * Single equations (assignments): 903 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(12,54.2%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01336/2.479, allocations: 5.215 MB / 0.7284 GB, free: 12.74 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002117/2.481, allocations: 0.6175 MB / 0.729 GB, free: 12.11 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02915/2.51, allocations: 9.56 MB / 0.7383 GB, free: 2.461 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01852/2.529, allocations: 5.997 MB / 0.7442 GB, free: 12.44 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.128e-05/2.529, allocations: 16 kB / 0.7442 GB, free: 12.42 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001587/2.529, allocations: 23.91 kB / 0.7442 GB, free: 12.4 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3813/2.91, allocations: 21.36 MB / 0.7651 GB, free: 143.3 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.181e-05/2.91, allocations: 5.047 kB / 0.7651 GB, free: 143.3 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007824/2.918, allocations: 0.885 MB / 0.7659 GB, free: 143.3 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007942/2.926, allocations: 1.622 MB / 0.7675 GB, free: 142.9 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001185/2.927, allocations: 129.8 kB / 0.7676 GB, free: 142.8 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03831/2.966, allocations: 21.75 MB / 0.7889 GB, free: 127.7 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-05/2.966, allocations: 14.19 kB / 0.7889 GB, free: 127.7 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03691/3.003, allocations: 14.91 MB / 0.8035 GB, free: 120.6 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005261/3.008, allocations: 1.383 MB / 0.8048 GB, free: 120.1 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002978/3.011, allocations: 111 kB / 0.8049 GB, free: 120 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006897/3.018, allocations: 294.9 kB / 0.8052 GB, free: 119.9 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001792/3.02, allocations: 419.2 kB / 0.8056 GB, free: 119.9 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007217/3.021, allocations: 155.1 kB / 0.8057 GB, free: 119.8 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.00904/3.03, allocations: 3.875 MB / 0.8095 GB, free: 117.9 MB / 458.8 MB Notification: Performance of sort global known variables: time 8.21e-07/3.03, allocations: 4 kB / 0.8095 GB, free: 117.9 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01273/3.043, allocations: 2.375 MB / 0.8119 GB, free: 115.5 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (449): * Single equations (assignments): 438 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12,(1,100.0%) 1,(12,54.9%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001586/3.044, allocations: 313.4 kB / 0.8122 GB, free: 115.2 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02415/3.068, allocations: 10.15 MB / 0.8221 GB, free: 106.3 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/3.068, allocations: 0 / 0.8221 GB, free: 106.3 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01377/3.082, allocations: 5.529 MB / 0.8275 GB, free: 101.4 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01143/3.094, allocations: 1.485 MB / 0.8289 GB, free: 100.2 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06594/3.16, allocations: 29.62 MB / 0.8578 GB, free: 71.41 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01746/3.177, allocations: 8.886 MB / 0.8665 GB, free: 62.48 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003551/3.181, allocations: 0.5189 MB / 0.867 GB, free: 61.96 MB / 458.8 MB Notification: Performance of SimCode: time 1.242e-06/3.181, allocations: 0 / 0.867 GB, free: 61.96 MB / 458.8 MB Notification: Performance of Templates: time 2.458/5.639, allocations: 0.632 GB / 1.499 GB, free: 109.6 MB / 474.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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_DOLCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:221:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp805 = 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_DOLFunctions.cpp:221:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp805 = 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_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o] Error 1