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 1.815/1.815, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.762e-05/2.787e-05, allocations: 0 / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.0805, allocations: 44.51 MB / 299.9 MB, free: 6.605 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4263/0.5069, allocations: 156.9 MB / 456.8 MB, free: 7.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.5072, allocations: 99.44 kB / 456.9 MB, free: 7.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.851/3.358, allocations: 0.5736 GB / 1.02 GB, free: 37.93 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.139e-06/3.358, allocations: 0 / 1.02 GB, free: 37.93 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001467/3.36, allocations: 428.7 kB / 1.02 GB, free: 37.88 MB / 458.7 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.07289/3.433, allocations: 17 MB / 1.037 GB, free: 32.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/3.433, allocations: 7.094 kB / 1.037 GB, free: 32.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0609/3.494, allocations: 8.467 MB / 1.045 GB, free: 31.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04473/3.539, allocations: 14.55 MB / 1.059 GB, free: 30.03 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002034/3.541, allocations: 1.342 MB / 1.061 GB, free: 29.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008625/3.549, allocations: 1.748 MB / 1.062 GB, free: 29.98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09008/3.639, allocations: 30.35 MB / 1.092 GB, free: 25.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008027/3.64, allocations: 28.47 kB / 1.092 GB, free: 25.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007611/3.648, allocations: 0.7479 MB / 1.093 GB, free: 25.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001523/3.649, allocations: 1.195 MB / 1.094 GB, free: 25.13 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07455/3.724, allocations: 27.14 MB / 1.12 GB, free: 4.469 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5879/4.312, allocations: 98.7 MB / 1.217 GB, free: 31.23 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04787/4.36, allocations: 35.33 MB / 1.251 GB, free: 30.01 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02701/4.387, allocations: 12.77 MB / 1.264 GB, free: 24.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1406/4.528, allocations: 39.3 MB / 1.302 GB, free: 5.715 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/4.528, allocations: 156.7 kB / 1.302 GB, free: 5.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1269): time 2.127e-05/4.528, allocations: 0 / 1.302 GB, free: 5.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=1277): time 0.5651/5.093, allocations: 45.9 MB / 1.347 GB, free: 77.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/5.093, allocations: 190.9 kB / 1.347 GB, free: 77.39 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0122/5.105, allocations: 4.97 MB / 1.352 GB, free: 76.99 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002371/5.108, allocations: 201.4 kB / 1.352 GB, free: 76.96 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004416/5.112, allocations: 6.279 MB / 1.358 GB, free: 73.86 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005673/5.118, allocations: 4.186 MB / 1.362 GB, free: 71.13 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001795/5.12, allocations: 215 kB / 1.363 GB, free: 71.13 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001211/5.121, allocations: 0.8083 MB / 1.363 GB, free: 70.79 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01761/5.139, allocations: 8.149 MB / 1.371 GB, free: 70.77 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0204/5.159, allocations: 10.3 MB / 1.381 GB, free: 68.66 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0218/5.181, allocations: 9.779 MB / 1.391 GB, free: 68.49 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/5.181, allocations: 17 kB / 1.391 GB, free: 68.49 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.06044/5.241, allocations: 24.54 MB / 1.415 GB, free: 63.25 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.065e-05/5.242, allocations: 30.17 kB / 1.415 GB, free: 63.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000137/5.242, allocations: 54.69 kB / 1.415 GB, free: 63.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.025/5.267, allocations: 8.951 MB / 1.424 GB, free: 60.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01151/5.278, allocations: 1.868 MB / 1.426 GB, free: 60.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04404/5.322, allocations: 30.39 MB / 1.455 GB, free: 40.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0109/5.333, allocations: 0.5536 MB / 1.456 GB, free: 40.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003113/5.336, allocations: 469.2 kB / 1.456 GB, free: 40.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 248 * 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 (982): * Single equations (assignments): 918 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(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} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.005214/5.342, allocations: 0.6766 MB / 1.457 GB, free: 39.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003727/5.345, allocations: 0.8526 MB / 1.458 GB, free: 39.31 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06132/5.407, allocations: 25.33 MB / 1.483 GB, free: 22.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0442/5.451, allocations: 20.04 MB / 1.502 GB, free: 4.914 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-05/5.451, allocations: 8 kB / 1.502 GB, free: 4.906 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002188/5.451, allocations: 58.28 kB / 1.502 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4886/5.94, allocations: 49.28 MB / 1.55 GB, free: 74.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001629/5.94, allocations: 3.781 kB / 1.55 GB, free: 74.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008757/5.949, allocations: 1.352 MB / 1.552 GB, free: 74.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02609/5.975, allocations: 9.062 MB / 1.56 GB, free: 74.27 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003076/5.978, allocations: 269 kB / 1.561 GB, free: 74.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05142/6.03, allocations: 36.51 MB / 1.596 GB, free: 58.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.153e-06/6.03, allocations: 5.062 kB / 1.596 GB, free: 58.74 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08559/6.115, allocations: 37.7 MB / 1.633 GB, free: 41.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009504/6.125, allocations: 2.82 MB / 1.636 GB, free: 40.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004444/6.129, allocations: 189.1 kB / 1.636 GB, free: 40.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009952/6.139, allocations: 0.509 MB / 1.637 GB, free: 40.45 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004116/6.144, allocations: 0.9716 MB / 1.638 GB, free: 40.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002808/6.146, allocations: 338.2 kB / 1.638 GB, free: 40.18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00898/6.155, allocations: 3.784 MB / 1.642 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.587e-06/6.155, allocations: 2.531 kB / 1.642 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01718/6.173, allocations: 3.245 MB / 1.645 GB, free: 34.68 MB / 0.4948 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 (716): * Single equations (assignments): 650 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.003697/6.176, allocations: 0.866 MB / 1.646 GB, free: 34.05 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04666/6.223, allocations: 21.07 MB / 1.666 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.356e-05/6.223, allocations: 4 kB / 1.666 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02887/6.252, allocations: 12.17 MB / 1.678 GB, free: 4.293 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01378/6.266, allocations: 1.972 MB / 1.68 GB, free: 2.777 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4635/6.729, allocations: 34.22 MB / 1.713 GB, free: 81.98 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02706/6.756, allocations: 11.57 MB / 1.725 GB, free: 80.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00461/6.761, allocations: 0.6282 MB / 1.725 GB, free: 80.93 MB / 0.5105 GB Notification: Performance of SimCode: time 2.289e-06/6.761, allocations: 0 / 1.725 GB, free: 80.93 MB / 0.5105 GB Notification: Performance of Templates: time 5.588/12.35, allocations: 1.762 GB / 3.488 GB, free: 129.3 MB / 0.5573 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 -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_StartFunctions.cpp:588:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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:588:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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