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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadModel(Modelica): time 2.225/2.225, allocations: 224.8 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.612e-05/2.633e-05, allocations: 4 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1132, allocations: 50.41 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.05103/0.1643, allocations: 29.58 MB / 374.6 MB, free: 11.24 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02656/0.1909, allocations: 8.726 MB / 383.3 MB, free: 2.488 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007943/0.1989, allocations: 319.1 kB / 383.6 MB, free: 2.176 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00913/0.2081, allocations: 1.962 MB / 385.6 MB, free: 208 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01571/0.2239, allocations: 3.174 MB / 388.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009055/0.2329, allocations: 1.578 MB / 390.3 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02903/0.262, allocations: 11.25 MB / 401.6 MB, free: 172 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.364/0.626, allocations: 20.9 MB / 422.5 MB, free: 5.949 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.6364, allocations: 4.518 MB / 427 MB, free: 5.945 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01151/0.648, allocations: 5.204 MB / 432.2 MB, free: 5.938 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006733/0.6548, allocations: 0.7654 MB / 433 MB, free: 5.77 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004356/0.6592, allocations: 472 kB / 433.4 MB, free: 5.309 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005315/0.6646, allocations: 2.342 MB / 435.8 MB, free: 4.582 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005492/0.6701, allocations: 1.098 MB / 436.9 MB, free: 3.484 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04133/0.7115, allocations: 26.97 MB / 463.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.7115, allocations: 0 / 463.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.7116, allocations: 3.75 kB / 463.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0008637/0.7124, allocations: 0 / 463.9 MB, free: 12.74 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: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.06546/0.7779, allocations: 15.03 MB / 478.9 MB, free: 15.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.778, allocations: 12.03 kB / 478.9 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07341/0.8514, allocations: 8.2 MB / 487.1 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03417/0.8856, allocations: 9.783 MB / 496.9 MB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001909/0.8876, allocations: 1.057 MB / 497.9 MB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007665/0.8953, allocations: 1.398 MB / 499.3 MB, free: 12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08406/0.9794, allocations: 22.54 MB / 0.5096 GB, free: 5.402 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009599/0.9805, allocations: 23.8 kB / 0.5097 GB, free: 5.379 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006042/0.9865, allocations: 0.5768 MB / 0.5102 GB, free: 4.816 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001414/0.988, allocations: 0.7832 MB / 0.511 GB, free: 4.031 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08271/1.071, allocations: 20.94 MB / 0.5314 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.83/1.901, allocations: 73.02 MB / 0.6027 GB, free: 96.63 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04691/1.948, allocations: 42.35 MB / 0.6441 GB, free: 56.62 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03786/1.986, allocations: 12.41 MB / 0.6562 GB, free: 48.35 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.836e-05/1.986, allocations: 92.98 kB / 0.6563 GB, free: 48.26 MB / 458.8 MB Notification: Performance of pre-optimization done (n=512): time 8.576e-06/1.986, allocations: 4 kB / 0.6563 GB, free: 48.26 MB / 458.8 MB Notification: Performance of matching and sorting (n=520): time 0.1033/2.089, allocations: 27.33 MB / 0.683 GB, free: 27.61 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/2.089, allocations: 133.4 kB / 0.6831 GB, free: 27.46 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01286/2.102, allocations: 5.041 MB / 0.6881 GB, free: 22.44 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001244/2.104, allocations: 109.7 kB / 0.6882 GB, free: 22.33 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004577/2.108, allocations: 5.855 MB / 0.6939 GB, free: 16.44 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002592/2.111, allocations: 1.776 MB / 0.6956 GB, free: 14.68 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009539/2.112, allocations: 152 kB / 0.6958 GB, free: 14.53 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0005684/2.112, allocations: 0.6132 MB / 0.6964 GB, free: 13.91 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009681/2.122, allocations: 3.688 MB / 0.7 GB, free: 10.21 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01226/2.134, allocations: 6.501 MB / 0.7063 GB, free: 2.422 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01358/2.148, allocations: 5.067 MB / 0.7113 GB, free: 13.34 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/2.148, allocations: 31.95 kB / 0.7113 GB, free: 13.31 MB / 474.8 MB Notification: Performance of matching and sorting (n=974) (initialization): time 0.04095/2.189, allocations: 11.91 MB / 0.7229 GB, free: 1.34 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/2.189, allocations: 45.56 kB / 0.723 GB, free: 1.297 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001867/2.189, allocations: 92 kB / 0.7231 GB, free: 1.207 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008545/2.198, allocations: 1.603 MB / 0.7246 GB, free: 15.59 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01305/2.211, allocations: 1.677 MB / 0.7263 GB, free: 13.91 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04537/2.257, allocations: 18.63 MB / 0.7445 GB, free: 10.63 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009474/2.266, allocations: 435.5 kB / 0.7449 GB, free: 10.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002108/2.268, allocations: 375.9 kB / 0.7452 GB, free: 9.836 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 421 * 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 (874): * Single equations (assignments): 864 * 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,52.8%) 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.01708/2.285, allocations: 5.156 MB / 0.7503 GB, free: 4.664 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002647/2.288, allocations: 0.5981 MB / 0.7508 GB, free: 4.059 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.383/2.671, allocations: 9.548 MB / 0.7602 GB, free: 161.5 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02069/2.692, allocations: 5.991 MB / 0.766 GB, free: 161.2 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-05/2.692, allocations: 21.19 kB / 0.766 GB, free: 161.2 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001628/2.692, allocations: 27.7 kB / 0.7661 GB, free: 161.2 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06245/2.755, allocations: 21.27 MB / 0.7868 GB, free: 152.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.337e-05/2.755, allocations: 7.062 kB / 0.7868 GB, free: 152.7 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007839/2.763, allocations: 0.8855 MB / 0.7877 GB, free: 152.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008149/2.771, allocations: 1.624 MB / 0.7893 GB, free: 152.2 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001349/2.772, allocations: 128.3 kB / 0.7894 GB, free: 152.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03819/2.81, allocations: 21.79 MB / 0.8107 GB, free: 137 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.906e-06/2.811, allocations: 11.5 kB / 0.8107 GB, free: 137 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03815/2.849, allocations: 14.87 MB / 0.8252 GB, free: 125.3 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004978/2.854, allocations: 1.369 MB / 0.8266 GB, free: 124.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002511/2.856, allocations: 105.4 kB / 0.8267 GB, free: 124.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006727/2.863, allocations: 297.7 kB / 0.8269 GB, free: 123.8 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00192/2.865, allocations: 418.7 kB / 0.8273 GB, free: 123.4 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007692/2.866, allocations: 156 kB / 0.8275 GB, free: 123.3 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009462/2.875, allocations: 3.796 MB / 0.8312 GB, free: 119.5 MB / 0.4949 GB Notification: Performance of sort global known variables: time 9.62e-07/2.875, allocations: 0 / 0.8312 GB, free: 119.5 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01256/2.888, allocations: 2.341 MB / 0.8335 GB, free: 117.2 MB / 0.4949 GB 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.2%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001676/2.89, allocations: 332.1 kB / 0.8338 GB, free: 116.9 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02499/2.915, allocations: 10 MB / 0.8436 GB, free: 106.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-05/2.915, allocations: 0 / 0.8436 GB, free: 106.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01485/2.93, allocations: 5.536 MB / 0.849 GB, free: 101.3 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01237/2.942, allocations: 1.48 MB / 0.8504 GB, free: 99.82 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06908/3.011, allocations: 29.29 MB / 0.879 GB, free: 70.43 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01858/3.03, allocations: 8.795 MB / 0.8876 GB, free: 61.59 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003628/3.034, allocations: 0.5072 MB / 0.8881 GB, free: 61.09 MB / 0.4949 GB Notification: Performance of SimCode: time 1.653e-06/3.034, allocations: 0 / 0.8881 GB, free: 61.09 MB / 0.4949 GB Notification: Performance of Templates: time 2.356/5.389, allocations: 0.6266 GB / 1.515 GB, free: 169.4 MB / 0.5262 GB make -j1 -f Modelica_trunk_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:221:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp793 = 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.IMC_DOLFunctions.cpp:221:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp793 = 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.IMC_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o] Error 1