Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL") Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 194.9 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.000351, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1015, allocations: 44.5 MB / 309 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5143/0.6159, allocations: 147.3 MB / 456.3 MB, free: 8.711 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003828/0.6163, allocations: 115.4 kB / 456.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.295/2.911, allocations: 458.9 MB / 0.8938 GB, free: 33.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.876e-06/2.912, allocations: 4 kB / 0.8938 GB, free: 33.48 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001369/2.913, allocations: 330.4 kB / 0.8942 GB, free: 33.45 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.06888/2.982, allocations: 14.07 MB / 0.9079 GB, free: 29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/2.982, allocations: 6.812 kB / 0.9079 GB, free: 29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05342/3.035, allocations: 6.502 MB / 0.9143 GB, free: 28.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0405/3.076, allocations: 11.57 MB / 0.9256 GB, free: 26.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001823/3.078, allocations: 1.049 MB / 0.9266 GB, free: 26.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007611/3.085, allocations: 1.361 MB / 0.9279 GB, free: 26.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07984/3.165, allocations: 23.78 MB / 0.9511 GB, free: 25.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007859/3.166, allocations: 26.83 kB / 0.9512 GB, free: 25.08 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005856/3.172, allocations: 0.5872 MB / 0.9517 GB, free: 25.08 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001482/3.174, allocations: 0.928 MB / 0.9526 GB, free: 25.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06511/3.239, allocations: 21.38 MB / 0.9735 GB, free: 18.44 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6328/3.871, allocations: 75.89 MB / 1.048 GB, free: 28.53 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04662/3.918, allocations: 28.44 MB / 1.075 GB, free: 29.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08927/4.007, allocations: 29.21 MB / 1.104 GB, free: 28.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001368/4.008, allocations: 118.3 kB / 1.104 GB, free: 28.05 MB / 474.7 MB Notification: Performance of pre-optimization done (n=944): time 1.427e-05/4.008, allocations: 0 / 1.104 GB, free: 28.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=952): time 0.3282/4.336, allocations: 67.58 MB / 1.17 GB, free: 10.03 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/4.336, allocations: 164.5 kB / 1.17 GB, free: 9.918 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0116/4.348, allocations: 4.655 MB / 1.175 GB, free: 8.203 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002339/4.35, allocations: 157.2 kB / 1.175 GB, free: 8.07 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005186/4.355, allocations: 5.049 MB / 1.18 GB, free: 3.586 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006236/4.362, allocations: 3.132 MB / 1.183 GB, free: 0.7578 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002438/4.364, allocations: 172 kB / 1.183 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001344/4.365, allocations: 0.6935 MB / 1.184 GB, free: 0 / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01879/4.384, allocations: 6.11 MB / 1.19 GB, free: 10.76 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02138/4.406, allocations: 8.022 MB / 1.198 GB, free: 3.051 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4019/4.808, allocations: 8.371 MB / 1.206 GB, free: 72.74 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.015e-05/4.808, allocations: 13.16 kB / 1.206 GB, free: 72.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.05601/4.864, allocations: 18.38 MB / 1.224 GB, free: 72.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.299e-05/4.864, allocations: 26.47 kB / 1.224 GB, free: 72.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001441/4.864, allocations: 52.41 kB / 1.224 GB, free: 72.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01984/4.884, allocations: 5.917 MB / 1.23 GB, free: 72.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01211/4.896, allocations: 1.541 MB / 1.231 GB, free: 72.17 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03207/4.928, allocations: 20.09 MB / 1.251 GB, free: 64.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009983/4.938, allocations: 434.7 kB / 1.251 GB, free: 64.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002502/4.941, allocations: 375.6 kB / 1.251 GB, free: 64.86 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 755 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.01522/4.956, allocations: 5.203 MB / 1.256 GB, free: 64.74 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002955/4.959, allocations: 0.6619 MB / 1.257 GB, free: 64.74 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05189/5.011, allocations: 18.3 MB / 1.275 GB, free: 64.11 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0362/5.047, allocations: 14.37 MB / 1.289 GB, free: 58.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.628e-05/5.047, allocations: 3.688 kB / 1.289 GB, free: 58.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001989/5.048, allocations: 46.89 kB / 1.289 GB, free: 58.07 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09479/5.142, allocations: 35.84 MB / 1.324 GB, free: 42.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001576/5.143, allocations: 6.359 kB / 1.324 GB, free: 42.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00957/5.152, allocations: 1.058 MB / 1.325 GB, free: 42.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0202/5.172, allocations: 6.001 MB / 1.331 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002349/5.175, allocations: 209.8 kB / 1.331 GB, free: 40.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03823/5.213, allocations: 24.46 MB / 1.355 GB, free: 19.62 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/5.213, allocations: 5 kB / 1.355 GB, free: 19.62 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4553/5.668, allocations: 28.95 MB / 1.383 GB, free: 67.34 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007832/5.676, allocations: 2.116 MB / 1.385 GB, free: 67.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003231/5.679, allocations: 151.7 kB / 1.386 GB, free: 67.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008669/5.688, allocations: 375.8 kB / 1.386 GB, free: 67.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003282/5.692, allocations: 0.715 MB / 1.387 GB, free: 67.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00185/5.693, allocations: 260.2 kB / 1.387 GB, free: 67.24 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008531/5.702, allocations: 3.143 MB / 1.39 GB, free: 67.06 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.21e-07/5.702, allocations: 0.875 kB / 1.39 GB, free: 67.06 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01514/5.717, allocations: 2.511 MB / 1.392 GB, free: 67.06 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (562): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.003348/5.721, allocations: 0.6166 MB / 1.393 GB, free: 66.96 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04264/5.763, allocations: 15.73 MB / 1.408 GB, free: 66.02 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/5.763, allocations: 1.219 kB / 1.408 GB, free: 66.02 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02485/5.788, allocations: 8.895 MB / 1.417 GB, free: 65.08 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0139/5.802, allocations: 1.472 MB / 1.418 GB, free: 65.06 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08674/5.889, allocations: 34.89 MB / 1.453 GB, free: 52.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0197/5.909, allocations: 9.043 MB / 1.461 GB, free: 51.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004195/5.913, allocations: 0.5106 MB / 1.462 GB, free: 51.73 MB / 490.7 MB Notification: Performance of SimCode: time 1.673e-06/5.913, allocations: 0 / 1.462 GB, free: 51.73 MB / 490.7 MB Notification: Performance of Templates: time 3.859/9.772, allocations: 1.1 GB / 2.562 GB, free: 132.5 MB / 0.5417 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.makefile b'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=5 -DSUNDIALS_MINOR_VERSION=4 -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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:508:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp330 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLFunctions.cpp:508:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp330 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOLCalcHelperMain.o] Error 1\n'