Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadModel(Modelica): time 2.077/2.077, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.94e-05, allocations: 6.797 kB / 292.2 MB, free: 8.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09231/0.09236, allocations: 50.42 MB / 342.6 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.528/0.6204, allocations: 162.9 MB / 0.4937 GB, free: 12.53 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.6207, allocations: 102.3 kB / 0.4938 GB, free: 12.48 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.001/3.621, allocations: 0.5723 GB / 1.066 GB, free: 24.41 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.953e-06/3.621, allocations: 0.5625 kB / 1.066 GB, free: 24.41 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001769/3.623, allocations: 419.7 kB / 1.066 GB, free: 24.37 MB / 490.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.07666/3.7, allocations: 16.91 MB / 1.083 GB, free: 19.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/3.7, allocations: 10.53 kB / 1.083 GB, free: 19.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06091/3.761, allocations: 7.832 MB / 1.091 GB, free: 18.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04403/3.805, allocations: 14.82 MB / 1.105 GB, free: 16.63 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00162/3.807, allocations: 1.31 MB / 1.106 GB, free: 16.59 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007608/3.814, allocations: 1.726 MB / 1.108 GB, free: 16.58 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08184/3.896, allocations: 28.62 MB / 1.136 GB, free: 14.43 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007842/3.897, allocations: 25.59 kB / 1.136 GB, free: 14.43 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006342/3.903, allocations: 0.7477 MB / 1.137 GB, free: 14.42 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001638/3.905, allocations: 1.268 MB / 1.138 GB, free: 14.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0675/3.973, allocations: 24.66 MB / 1.162 GB, free: 14.16 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5968/4.569, allocations: 94.27 MB / 1.254 GB, free: 57.97 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05053/4.62, allocations: 51.48 MB / 1.304 GB, free: 33.68 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01424/4.634, allocations: 7.025 MB / 1.311 GB, free: 33.59 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03975/4.674, allocations: 16.38 MB / 1.327 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.857e-05/4.674, allocations: 112.2 kB / 1.327 GB, free: 32.75 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=687): time 1.893e-05/4.674, allocations: 0 / 1.327 GB, free: 32.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=695): time 0.06115/4.735, allocations: 25.74 MB / 1.353 GB, free: 27.4 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/4.735, allocations: 150.9 kB / 1.353 GB, free: 27.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01545/4.751, allocations: 6.117 MB / 1.359 GB, free: 26.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001266/4.752, allocations: 140.5 kB / 1.359 GB, free: 26.74 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.005212/4.757, allocations: 7.36 MB / 1.366 GB, free: 22.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003035/4.761, allocations: 2.347 MB / 1.368 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001315/4.762, allocations: 187.2 kB / 1.368 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000922/4.763, allocations: 0.6943 MB / 1.369 GB, free: 20.88 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01004/4.773, allocations: 4.708 MB / 1.374 GB, free: 20.86 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/4.786, allocations: 7.907 MB / 1.381 GB, free: 16.99 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0128/4.798, allocations: 6.418 MB / 1.388 GB, free: 16.86 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001397/4.799, allocations: 29.47 kB / 1.388 GB, free: 16.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.03631/4.835, allocations: 14.91 MB / 1.402 GB, free: 16.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/4.835, allocations: 50.97 kB / 1.402 GB, free: 16.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/4.835, allocations: 109.2 kB / 1.402 GB, free: 16.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008616/4.844, allocations: 2.447 MB / 1.405 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01136/4.855, allocations: 2.039 MB / 1.407 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0477/4.903, allocations: 28.11 MB / 1.434 GB, free: 15.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01031/4.913, allocations: 0.5381 MB / 1.435 GB, free: 15.63 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002588/4.916, allocations: 446.6 kB / 1.435 GB, free: 15.21 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 initialization (1064): * Single equations (assignments): 1051 * 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%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(18,41.0%) 100} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003892/4.92, allocations: 0.6943 MB / 1.436 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002687/4.923, allocations: 0.759 MB / 1.437 GB, free: 13.89 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03572/4.958, allocations: 12.89 MB / 1.449 GB, free: 3.039 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4107/5.369, allocations: 8.16 MB / 1.457 GB, free: 88.87 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.029e-05/5.369, allocations: 26.19 kB / 1.457 GB, free: 88.87 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001794/5.369, allocations: 39.16 kB / 1.457 GB, free: 88.87 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07707/5.447, allocations: 27.99 MB / 1.485 GB, free: 87.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.129e-05/5.447, allocations: 3.469 kB / 1.485 GB, free: 87.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006983/5.454, allocations: 1.106 MB / 1.486 GB, free: 87.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009138/5.463, allocations: 2.525 MB / 1.488 GB, free: 87.13 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001429/5.464, allocations: 151.9 kB / 1.488 GB, free: 87.13 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04627/5.511, allocations: 32.56 MB / 1.52 GB, free: 72.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/5.511, allocations: 6.875 kB / 1.52 GB, free: 72.89 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04167/5.552, allocations: 19.1 MB / 1.539 GB, free: 70.93 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006793/5.559, allocations: 1.771 MB / 1.54 GB, free: 70.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003453/5.563, allocations: 128.3 kB / 1.541 GB, free: 70.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007365/5.57, allocations: 427.4 kB / 1.541 GB, free: 70.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002341/5.572, allocations: 0.5342 MB / 1.542 GB, free: 70.83 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001461/5.574, allocations: 194.7 kB / 1.542 GB, free: 70.83 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01224/5.586, allocations: 4.6 MB / 1.546 GB, free: 70.58 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.508e-06/5.586, allocations: 0 / 1.546 GB, free: 70.58 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0185/5.605, allocations: 3.096 MB / 1.549 GB, free: 70.58 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi) * 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,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 simulation (567): * Single equations (assignments): 552 * 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%) 1,(18,38.0%) 100,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002718/5.608, allocations: 0.8738 MB / 1.55 GB, free: 70.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02691/5.634, allocations: 12.75 MB / 1.563 GB, free: 67.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/5.635, allocations: 3.781 kB / 1.563 GB, free: 67.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01578/5.65, allocations: 7.313 MB / 1.57 GB, free: 64.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01279/5.663, allocations: 1.962 MB / 1.572 GB, free: 63.71 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07836/5.742, allocations: 26.7 MB / 1.598 GB, free: 52.66 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02524/5.767, allocations: 11.3 MB / 1.609 GB, free: 44.21 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003818/5.771, allocations: 0.6218 MB / 1.609 GB, free: 43.62 MB / 0.5573 GB Notification: Performance of SimCode: time 1.965e-06/5.771, allocations: 0 / 1.609 GB, free: 43.62 MB / 0.5573 GB Notification: Performance of Templates: time 3.842/9.613, allocations: 1.15 GB / 2.76 GB, free: 96.54 MB / 0.5886 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 -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -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:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartFunctions.cpp:612:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp242 = 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:612:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp242 = 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