Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.831/1.831, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.000368, allocations: 15.98 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07924/0.07963, allocations: 44.51 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.04931/0.129, allocations: 31.76 MB / 340.1 MB, free: 1.129 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0246/0.1536, allocations: 9.591 MB / 349.7 MB, free: 7.516 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007495/0.1612, allocations: 235.1 kB / 350 MB, free: 7.285 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008045/0.1692, allocations: 2.103 MB / 352.1 MB, free: 5.172 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01533/0.1846, allocations: 3.58 MB / 355.7 MB, free: 1.582 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007853/0.1925, allocations: 1.62 MB / 357.3 MB, free: 15.96 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02787/0.2204, allocations: 14.04 MB / 371.3 MB, free: 1.898 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2832/0.5037, allocations: 24.39 MB / 395.7 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009766/0.5135, allocations: 5.783 MB / 401.5 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0101/0.5236, allocations: 6.515 MB / 408 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003679/0.5273, allocations: 0.9439 MB / 408.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005789/0.5332, allocations: 1.245 MB / 410.2 MB, free: 10.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004198/0.5374, allocations: 2.936 MB / 413.1 MB, free: 9.438 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004768/0.5422, allocations: 3.107 MB / 416.2 MB, free: 8.297 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03426/0.5765, allocations: 26.98 MB / 443.2 MB, free: 1.121 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.234e-06/0.5765, allocations: 0 / 443.2 MB, free: 1.121 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5765, allocations: 2.734 kB / 443.2 MB, free: 1.121 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005839/0.5771, allocations: 0 / 443.2 MB, free: 1.121 MB / 330.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.05325/0.6304, allocations: 15.8 MB / 459 MB, free: 2.449 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.6305, allocations: 12.03 kB / 459 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06549/0.696, allocations: 9.199 MB / 468.2 MB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02484/0.7208, allocations: 9.01 MB / 477.2 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001734/0.7226, allocations: 1.075 MB / 478.3 MB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005547/0.7282, allocations: 1.409 MB / 479.7 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06732/0.7956, allocations: 23.12 MB / 0.4911 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006126/0.7962, allocations: 23.8 kB / 0.4911 GB, free: 6.992 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004387/0.8006, allocations: 0.5817 MB / 0.4916 GB, free: 6.426 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001159/0.8018, allocations: 0.8148 MB / 0.4924 GB, free: 5.609 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05956/0.8614, allocations: 21.62 MB / 0.5135 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6138/1.475, allocations: 74.32 MB / 0.5861 GB, free: 87.18 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04056/1.516, allocations: 53.55 MB / 0.6384 GB, free: 34.07 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03412/1.55, allocations: 15.3 MB / 0.6534 GB, free: 19.66 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.715e-05/1.55, allocations: 90.77 kB / 0.6534 GB, free: 19.56 MB / 426.8 MB Notification: Performance of pre-optimization done (n=514): time 1.013e-05/1.55, allocations: 0 / 0.6534 GB, free: 19.56 MB / 426.8 MB Notification: Performance of matching and sorting (n=522): time 0.081/1.631, allocations: 27.32 MB / 0.6801 GB, free: 7.824 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/1.631, allocations: 129.4 kB / 0.6802 GB, free: 7.68 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01358/1.645, allocations: 5.812 MB / 0.6859 GB, free: 1.895 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008961/1.646, allocations: 109.7 kB / 0.686 GB, free: 1.781 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006026/1.652, allocations: 5.992 MB / 0.6919 GB, free: 11.75 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002688/1.655, allocations: 1.788 MB / 0.6936 GB, free: 9.98 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/1.656, allocations: 156 kB / 0.6938 GB, free: 9.828 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0007886/1.657, allocations: 0.6257 MB / 0.6944 GB, free: 9.195 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00927/1.666, allocations: 3.759 MB / 0.6981 GB, free: 5.434 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2588/1.925, allocations: 6.821 MB / 0.7047 GB, free: 145.9 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01224/1.937, allocations: 5.21 MB / 0.7098 GB, free: 145.7 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001823/1.937, allocations: 32.78 kB / 0.7098 GB, free: 145.7 MB / 458.8 MB Notification: Performance of matching and sorting (n=1015) (initialization): time 0.03037/1.968, allocations: 12.24 MB / 0.7218 GB, free: 142 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/1.968, allocations: 47.41 kB / 0.7218 GB, free: 142 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001789/1.968, allocations: 106.8 kB / 0.7219 GB, free: 142 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00641/1.974, allocations: 1.61 MB / 0.7235 GB, free: 141.6 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008952/1.983, allocations: 1.757 MB / 0.7252 GB, free: 141.4 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03086/2.014, allocations: 18.67 MB / 0.7435 GB, free: 129.3 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00769/2.022, allocations: 439.1 kB / 0.7439 GB, free: 129.1 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001726/2.024, allocations: 390 kB / 0.7442 GB, free: 129.1 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 460 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (915): * Single equations (assignments): 905 * 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: 5 * 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: 5 {(1,100.0%) 1,(12,54.2%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0117/2.036, allocations: 5.258 MB / 0.7494 GB, free: 126.6 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0017/2.037, allocations: 0.6048 MB / 0.75 GB, free: 126.6 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0237/2.061, allocations: 9.59 MB / 0.7593 GB, free: 121.8 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01362/2.075, allocations: 5.992 MB / 0.7652 GB, free: 116.1 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.782e-05/2.075, allocations: 20 kB / 0.7652 GB, free: 116.1 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/2.075, allocations: 24.41 kB / 0.7652 GB, free: 116 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05044/2.125, allocations: 21.42 MB / 0.7861 GB, free: 94.56 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.062e-05/2.125, allocations: 8 kB / 0.7862 GB, free: 94.55 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005117/2.131, allocations: 0.8901 MB / 0.787 GB, free: 93.66 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006045/2.137, allocations: 1.64 MB / 0.7886 GB, free: 92.01 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/2.138, allocations: 131.9 kB / 0.7887 GB, free: 91.88 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03067/2.168, allocations: 21.81 MB / 0.81 GB, free: 69.39 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.387e-06/2.168, allocations: 11.94 kB / 0.8101 GB, free: 69.38 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02809/2.197, allocations: 14.04 MB / 0.8238 GB, free: 55.1 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004241/2.201, allocations: 1.391 MB / 0.8251 GB, free: 53.68 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002061/2.203, allocations: 108 kB / 0.8252 GB, free: 53.58 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004941/2.208, allocations: 299.7 kB / 0.8255 GB, free: 53.29 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001607/2.21, allocations: 420.3 kB / 0.8259 GB, free: 52.88 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007532/2.21, allocations: 156 kB / 0.8261 GB, free: 52.73 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008129/2.218, allocations: 3.887 MB / 0.8299 GB, free: 48.87 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.977e-06/2.219, allocations: 0 / 0.8299 GB, free: 48.87 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01136/2.23, allocations: 2.393 MB / 0.8322 GB, free: 46.49 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 simulation (451): * Single equations (assignments): 440 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 1,(12,54.9%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001322/2.231, allocations: 320.8 kB / 0.8325 GB, free: 46.18 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01987/2.251, allocations: 10.16 MB / 0.8424 GB, free: 35.92 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/2.251, allocations: 4 kB / 0.8424 GB, free: 35.92 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01133/2.263, allocations: 5.554 MB / 0.8478 GB, free: 30.29 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007946/2.271, allocations: 1.49 MB / 0.8493 GB, free: 28.8 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3157/2.586, allocations: 29.68 MB / 0.8783 GB, free: 137.1 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01866/2.605, allocations: 8.881 MB / 0.887 GB, free: 136.2 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002917/2.608, allocations: 0.5217 MB / 0.8875 GB, free: 136.2 MB / 458.8 MB Notification: Performance of SimCode: time 1.922e-06/2.608, allocations: 0 / 0.8875 GB, free: 136.2 MB / 458.8 MB Notification: Performance of Templates: time 1.547/4.155, allocations: 0.6322 GB / 1.52 GB, free: 19.3 MB / 474.8 MB 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@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.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:220:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp166 = 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:220:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp166 = 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'