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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadModel(Modelica): time 2.426/2.426, allocations: 194.9 MB / 211.2 MB, free: 9.32 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.026e-05/3.032e-05, allocations: 7.906 kB / 258.8 MB, free: 9.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.308, allocations: 44.51 MB / 303.3 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.06853/0.3766, allocations: 36.24 MB / 339.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03155/0.4082, allocations: 10.19 MB / 349.7 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009586/0.4178, allocations: 358.9 kB / 350.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01102/0.4289, allocations: 2.37 MB / 352.5 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01934/0.4483, allocations: 3.879 MB / 356.3 MB, free: 8.617 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01092/0.4592, allocations: 1.881 MB / 358.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.04163/0.5009, allocations: 13.56 MB / 371.8 MB, free: 9.16 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1144/0.6154, allocations: 27.15 MB / 398.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01842/0.6339, allocations: 5.791 MB / 404.7 MB, free: 8.121 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0231/0.6571, allocations: 6.731 MB / 411.5 MB, free: 1.367 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01064/0.6678, allocations: 0.8941 MB / 412.4 MB, free: 484 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006994/0.6748, allocations: 0.5938 MB / 412.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009352/0.6842, allocations: 3.086 MB / 416 MB, free: 12.78 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009811/0.6941, allocations: 1.43 MB / 417.5 MB, free: 11.35 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.688/1.382, allocations: 34.75 MB / 452.2 MB, free: 25.96 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/1.382, allocations: 3.938 kB / 452.2 MB, free: 25.96 MB / 362.8 MB Notification: Performance of FrontEnd: time 4.278e-06/1.382, allocations: 0 / 452.2 MB, free: 25.96 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.001437/1.384, allocations: 0 / 452.2 MB, free: 25.96 MB / 362.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.08211/1.466, allocations: 19.29 MB / 471.5 MB, free: 16.67 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/1.466, allocations: 7.625 kB / 471.5 MB, free: 16.67 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1134/1.579, allocations: 12.11 MB / 483.6 MB, free: 9.492 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04136/1.621, allocations: 11.87 MB / 495.5 MB, free: 2.395 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002129/1.623, allocations: 1.369 MB / 496.9 MB, free: 1.617 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008894/1.632, allocations: 1.808 MB / 498.7 MB, free: 424 kB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1189/1.751, allocations: 29.83 MB / 0.5161 GB, free: 12.85 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001179/1.752, allocations: 19.81 kB / 0.5161 GB, free: 12.83 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009257/1.761, allocations: 0.7469 MB / 0.5169 GB, free: 12.11 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00234/1.764, allocations: 1.034 MB / 0.5179 GB, free: 11.07 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.102/1.866, allocations: 27.85 MB / 0.5451 GB, free: 15.2 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5522/2.418, allocations: 95.63 MB / 0.6385 GB, free: 108.5 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0638/2.482, allocations: 63.36 MB / 0.7003 GB, free: 52.64 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06045/2.542, allocations: 20.19 MB / 0.7201 GB, free: 39.08 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001074/2.543, allocations: 116.5 kB / 0.7202 GB, free: 38.95 MB / 458.8 MB Notification: Performance of pre-optimization done (n=695): time 1.085e-05/2.543, allocations: 0 / 0.7202 GB, free: 38.95 MB / 458.8 MB Notification: Performance of matching and sorting (n=703): time 0.1933/2.736, allocations: 39.21 MB / 0.7585 GB, free: 15.02 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001921/2.736, allocations: 159.1 kB / 0.7586 GB, free: 14.84 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02683/2.763, allocations: 6.358 MB / 0.7648 GB, free: 8.508 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001933/2.765, allocations: 137.7 kB / 0.7649 GB, free: 8.367 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.01117/2.776, allocations: 7.541 MB / 0.7723 GB, free: 0.7812 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.3194/3.096, allocations: 2.384 MB / 0.7746 GB, free: 159.9 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002099/3.098, allocations: 202.8 kB / 0.7748 GB, free: 159.9 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001116/3.099, allocations: 0.714 MB / 0.7755 GB, free: 159.5 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01489/3.114, allocations: 4.984 MB / 0.7804 GB, free: 159.5 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01718/3.131, allocations: 8.641 MB / 0.7888 GB, free: 153.6 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01719/3.148, allocations: 6.754 MB / 0.7954 GB, free: 150.6 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001514/3.149, allocations: 33.69 kB / 0.7955 GB, free: 150.6 MB / 474.8 MB Notification: Performance of matching and sorting (n=1288) (initialization): time 0.04785/3.196, allocations: 16.15 MB / 0.8112 GB, free: 144.1 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/3.197, allocations: 56.12 kB / 0.8113 GB, free: 144.1 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000229/3.197, allocations: 123.6 kB / 0.8114 GB, free: 144.1 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01143/3.208, allocations: 2.607 MB / 0.814 GB, free: 143.4 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01616/3.225, allocations: 2.191 MB / 0.8161 GB, free: 142.4 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05563/3.28, allocations: 29.31 MB / 0.8447 GB, free: 115.3 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01236/3.293, allocations: 0.5438 MB / 0.8452 GB, free: 114.9 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002606/3.295, allocations: 487.3 kB / 0.8457 GB, free: 114.4 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 546 * 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 (1139): * Single equations (assignments): 1126 * 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,38.9%) 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.0183/3.314, allocations: 6.79 MB / 0.8523 GB, free: 108.6 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003249/3.317, allocations: 0.7804 MB / 0.8531 GB, free: 108.1 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04137/3.358, allocations: 13.33 MB / 0.8661 GB, free: 95.39 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02484/3.383, allocations: 8.378 MB / 0.8743 GB, free: 86.93 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.461e-05/3.383, allocations: 28 kB / 0.8743 GB, free: 86.9 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001991/3.384, allocations: 38.81 kB / 0.8744 GB, free: 86.86 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08022/3.464, allocations: 28.41 MB / 0.9021 GB, free: 58.26 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.799e-05/3.464, allocations: 7.953 kB / 0.9021 GB, free: 58.25 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01022/3.474, allocations: 1.131 MB / 0.9032 GB, free: 57.12 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01158/3.486, allocations: 2.638 MB / 0.9058 GB, free: 54.45 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001679/3.488, allocations: 160 kB / 0.9059 GB, free: 54.29 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4414/3.929, allocations: 33.8 MB / 0.939 GB, free: 142.2 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/3.929, allocations: 5.5 kB / 0.939 GB, free: 142.2 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06751/3.997, allocations: 19.72 MB / 0.9582 GB, free: 139.1 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006661/4.003, allocations: 1.794 MB / 0.96 GB, free: 138.5 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003504/4.007, allocations: 128.2 kB / 0.9601 GB, free: 138.4 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008833/4.016, allocations: 412.3 kB / 0.9605 GB, free: 138.3 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002303/4.018, allocations: 0.5333 MB / 0.961 GB, free: 138.3 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000787/4.019, allocations: 200 kB / 0.9612 GB, free: 138.2 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01158/4.03, allocations: 4.777 MB / 0.9659 GB, free: 136.5 MB / 474.8 MB Notification: Performance of sort global known variables: time 7.62e-07/4.031, allocations: 0 / 0.9659 GB, free: 136.5 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01616/4.047, allocations: 3.094 MB / 0.9689 GB, free: 136.2 MB / 474.8 MB 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.strayReluctance.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.7%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002113/4.049, allocations: 366.5 kB / 0.9692 GB, free: 136 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03267/4.082, allocations: 13.68 MB / 0.9826 GB, free: 130.1 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/4.082, allocations: 4 kB / 0.9826 GB, free: 130.1 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01832/4.1, allocations: 7.687 MB / 0.9901 GB, free: 123.3 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01544/4.115, allocations: 1.952 MB / 0.992 GB, free: 121.7 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1731/4.289, allocations: 38.3 MB / 1.029 GB, free: 86.42 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03242/4.321, allocations: 11.38 MB / 1.041 GB, free: 77.02 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006309/4.327, allocations: 0.6478 MB / 1.041 GB, free: 76.38 MB / 474.8 MB Notification: Performance of SimCode: time 1.373e-06/4.328, allocations: 0 / 1.041 GB, free: 76.38 MB / 474.8 MB Notification: Performance of Templates: time 4.278/8.606, allocations: 1.157 GB / 2.198 GB, free: 149.2 MB / 0.4949 GB make -j1 -f Modelica_3.2.2_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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartFunctions.cpp:221:44: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp1024 = 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_StartFunctions.cpp:221:87: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp1024 = 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_StartCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartCalcHelperMain.o] Error 1