Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|Itr|Iqs|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imsQS.rotor.electroMagneticConverter.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaE.phi|loadInertiaE.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadModel(Modelica): time 2.103/2.103, allocations: 224.7 MB / 241.1 MB, free: 1.652 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.512e-05, allocations: 0 / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 50.42 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.05931/0.1703, allocations: 34.93 MB / 379.9 MB, free: 5.875 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03001/0.2004, allocations: 10.31 MB / 390.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009103/0.2095, allocations: 382.9 kB / 390.6 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01047/0.22, allocations: 2.331 MB / 393 MB, free: 8.816 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01927/0.2394, allocations: 3.801 MB / 396.8 MB, free: 5.004 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01074/0.2501, allocations: 1.955 MB / 398.7 MB, free: 3.051 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.3611/0.6113, allocations: 13.49 MB / 412.2 MB, free: 5.742 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07294/0.6843, allocations: 27.19 MB / 439.4 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01778/0.7022, allocations: 5.91 MB / 445.3 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01669/0.7189, allocations: 6.648 MB / 451.9 MB, free: 9.32 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009013/0.728, allocations: 0.9021 MB / 452.8 MB, free: 8.512 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005255/0.7333, allocations: 0.5938 MB / 453.4 MB, free: 7.918 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007105/0.7405, allocations: 3.04 MB / 456.5 MB, free: 6.355 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008597/0.7491, allocations: 1.418 MB / 457.9 MB, free: 4.938 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.05493/0.8041, allocations: 34.83 MB / 492.7 MB, free: 4.613 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.8042, allocations: 4 kB / 492.7 MB, free: 4.609 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.41e-06/0.8042, allocations: 0 / 492.7 MB, free: 4.609 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001159/0.8053, allocations: 3.938 kB / 492.7 MB, free: 4.605 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.08596/0.8913, allocations: 19.16 MB / 0.4999 GB, free: 1.449 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.8914, allocations: 8.031 kB / 0.4999 GB, free: 1.441 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09729/0.9887, allocations: 11.13 MB / 0.5108 GB, free: 6.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04403/1.033, allocations: 12.85 MB / 0.5233 GB, free: 10.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002291/1.035, allocations: 1.362 MB / 0.5246 GB, free: 8.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008843/1.044, allocations: 1.789 MB / 0.5264 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1102/1.154, allocations: 29.31 MB / 0.555 GB, free: 9.516 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001089/1.155, allocations: 27.08 kB / 0.555 GB, free: 9.492 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007237/1.163, allocations: 0.7403 MB / 0.5558 GB, free: 8.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001708/1.164, allocations: 0.9984 MB / 0.5567 GB, free: 7.766 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7515/1.916, allocations: 27.18 MB / 0.5833 GB, free: 111.8 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2192/2.135, allocations: 94.27 MB / 0.6754 GB, free: 34.97 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0663/2.202, allocations: 51.91 MB / 0.726 GB, free: 10.17 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06796/2.27, allocations: 16.42 MB / 0.7421 GB, free: 9.816 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001451/2.27, allocations: 116.6 kB / 0.7422 GB, free: 9.691 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=695): time 1.141e-05/2.27, allocations: 0 / 0.7422 GB, free: 9.691 MB / 0.4949 GB Notification: Performance of matching and sorting (n=703): time 0.8637/3.134, allocations: 39.06 MB / 0.7803 GB, free: 143.2 MB / 0.495 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.607e-05/3.134, allocations: 153.5 kB / 0.7805 GB, free: 143.1 MB / 0.495 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01719/3.151, allocations: 6.231 MB / 0.7866 GB, free: 140.8 MB / 0.495 GB Notification: Performance of collectPreVariables (initialization): time 0.001536/3.153, allocations: 141.2 kB / 0.7867 GB, free: 140.7 MB / 0.495 GB Notification: Performance of collectInitialEqns (initialization): time 0.006/3.159, allocations: 7.398 MB / 0.7939 GB, free: 135 MB / 0.495 GB Notification: Performance of collectInitialBindings (initialization): time 0.00371/3.162, allocations: 2.387 MB / 0.7963 GB, free: 133.1 MB / 0.495 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001958/3.164, allocations: 194.2 kB / 0.7964 GB, free: 133 MB / 0.495 GB Notification: Performance of setup shared object (initialization): time 0.001142/3.165, allocations: 0.702 MB / 0.7971 GB, free: 132.5 MB / 0.495 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01417/3.18, allocations: 4.927 MB / 0.8019 GB, free: 130.6 MB / 0.495 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01645/3.196, allocations: 8.35 MB / 0.8101 GB, free: 124.3 MB / 0.495 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01647/3.213, allocations: 6.634 MB / 0.8166 GB, free: 121.3 MB / 0.495 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001345/3.213, allocations: 31.62 kB / 0.8166 GB, free: 121.3 MB / 0.495 GB Notification: Performance of matching and sorting (n=1249) (initialization): time 0.04552/3.258, allocations: 15.83 MB / 0.8321 GB, free: 111.1 MB / 0.495 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/3.259, allocations: 52.62 kB / 0.8321 GB, free: 111.1 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001946/3.259, allocations: 112 kB / 0.8322 GB, free: 110.9 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0111/3.27, allocations: 2.553 MB / 0.8347 GB, free: 109 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0159/3.286, allocations: 2.114 MB / 0.8368 GB, free: 107.2 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05384/3.34, allocations: 29.31 MB / 0.8654 GB, free: 77.04 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01177/3.352, allocations: 0.5405 MB / 0.8659 GB, free: 76.5 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002327/3.354, allocations: 456 kB / 0.8664 GB, free: 76.05 MB / 0.495 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 507 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1100): * Single equations (assignments): 1087 * 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: 8 * 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: 8 {(1,100.0%) 1,(18,41.7%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01793/3.372, allocations: 6.726 MB / 0.8729 GB, free: 69.31 MB / 0.495 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003329/3.375, allocations: 0.7679 MB / 0.8737 GB, free: 68.54 MB / 0.495 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05945/3.435, allocations: 13.31 MB / 0.8867 GB, free: 55.02 MB / 0.495 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03603/3.471, allocations: 8.359 MB / 0.8948 GB, free: 46.57 MB / 0.495 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001424/3.471, allocations: 28 kB / 0.8949 GB, free: 46.54 MB / 0.495 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002382/3.471, allocations: 35.86 kB / 0.8949 GB, free: 46.5 MB / 0.495 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1155/3.587, allocations: 28.33 MB / 0.9226 GB, free: 17.99 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.164e-05/3.587, allocations: 4 kB / 0.9226 GB, free: 17.99 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01372/3.601, allocations: 1.135 MB / 0.9237 GB, free: 16.85 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01689/3.618, allocations: 2.623 MB / 0.9262 GB, free: 14.2 MB / 0.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001994/3.62, allocations: 152 kB / 0.9264 GB, free: 14.05 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4404/4.06, allocations: 33.82 MB / 0.9594 GB, free: 122.4 MB / 0.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/4.06, allocations: 15.39 kB / 0.9594 GB, free: 122.4 MB / 0.495 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05303/4.113, allocations: 19.69 MB / 0.9787 GB, free: 113.6 MB / 0.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006567/4.12, allocations: 1.775 MB / 0.9804 GB, free: 113 MB / 0.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003603/4.124, allocations: 135.2 kB / 0.9805 GB, free: 112.9 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008876/4.133, allocations: 407 kB / 0.9809 GB, free: 112.8 MB / 0.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00265/4.135, allocations: 0.5297 MB / 0.9814 GB, free: 112.8 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00165/4.137, allocations: 198.9 kB / 0.9816 GB, free: 112.7 MB / 0.495 GB Notification: Performance of sorting global known variables: time 0.01299/4.15, allocations: 4.695 MB / 0.9862 GB, free: 111 MB / 0.495 GB Notification: Performance of sort global known variables: time 9.31e-07/4.15, allocations: 0 / 0.9862 GB, free: 111 MB / 0.495 GB Notification: Performance of remove unused functions: time 0.0173/4.167, allocations: 3.065 MB / 0.9892 GB, free: 110.7 MB / 0.495 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (575): * Single equations (assignments): 560 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,41.0%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002167/4.17, allocations: 373.3 kB / 0.9895 GB, free: 110.5 MB / 0.495 GB Notification: Performance of simCode: created initialization part: time 0.03389/4.204, allocations: 13.53 MB / 1.003 GB, free: 104.7 MB / 0.495 GB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/4.204, allocations: 2.906 kB / 1.003 GB, free: 104.7 MB / 0.495 GB Notification: Performance of simCode: created simulation system equations: time 0.02054/4.224, allocations: 7.691 MB / 1.01 GB, free: 99.46 MB / 0.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01576/4.24, allocations: 1.938 MB / 1.012 GB, free: 97.88 MB / 0.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09122/4.331, allocations: 37.96 MB / 1.049 GB, free: 62.85 MB / 0.495 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02506/4.356, allocations: 11.29 MB / 1.06 GB, free: 52.88 MB / 0.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005101/4.361, allocations: 0.6321 MB / 1.061 GB, free: 52.24 MB / 0.495 GB Notification: Performance of SimCode: time 1.183e-06/4.362, allocations: 0 / 1.061 GB, free: 52.24 MB / 0.495 GB Notification: Performance of Templates: time 3.991/8.353, allocations: 1.15 GB / 2.211 GB, free: 114.8 MB / 0.5575 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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_StartCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartFunctions.cpp:221:44: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp1012 = 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_StartFunctions.cpp:221:87: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp1012 = 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_StartCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o] Error 1