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_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003555/0.0003557, allocations: 11.94 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08049/0.08087, allocations: 44.52 MB / 308.4 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.04607/0.127, allocations: 30.17 MB / 338.6 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02365/0.1507, allocations: 9.369 MB / 347.9 MB, free: 9.324 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007527/0.1583, allocations: 215.2 kB / 348.1 MB, free: 9.113 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007705/0.166, allocations: 1.959 MB / 350.1 MB, free: 7.145 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01491/0.181, allocations: 3.541 MB / 353.6 MB, free: 3.594 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007447/0.1884, allocations: 1.608 MB / 355.2 MB, free: 1.992 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02744/0.2159, allocations: 14.29 MB / 369.5 MB, free: 3.684 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3228/0.5388, allocations: 24.26 MB / 393.8 MB, free: 11.31 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009464/0.5483, allocations: 5.875 MB / 399.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01052/0.5589, allocations: 6.647 MB / 406.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003697/0.5626, allocations: 0.9636 MB / 407.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005885/0.5685, allocations: 1.256 MB / 408.5 MB, free: 11.3 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004464/0.573, allocations: 3.033 MB / 411.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004743/0.5778, allocations: 3.166 MB / 414.7 MB, free: 9.324 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03466/0.6125, allocations: 27.91 MB / 442.6 MB, free: 1.344 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.6126, allocations: 0 / 442.6 MB, free: 1.344 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.6126, allocations: 0 / 442.6 MB, free: 1.344 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005627/0.6132, allocations: 0 / 442.6 MB, free: 1.344 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.05513/0.6683, allocations: 16.17 MB / 458.8 MB, free: 2.379 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.6684, allocations: 17.06 kB / 458.8 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06912/0.7375, allocations: 9.65 MB / 468.5 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02569/0.7632, allocations: 9.277 MB / 477.8 MB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00173/0.765, allocations: 1.075 MB / 478.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005577/0.7706, allocations: 1.399 MB / 480.2 MB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06986/0.8405, allocations: 23.48 MB / 0.4919 GB, free: 5.574 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006178/0.8412, allocations: 23.81 kB / 0.4919 GB, free: 5.551 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004497/0.8457, allocations: 0.5793 MB / 0.4925 GB, free: 4.988 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001164/0.8469, allocations: 0.8029 MB / 0.4933 GB, free: 4.184 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06229/0.9092, allocations: 22.14 MB / 0.5149 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6255/1.535, allocations: 75.2 MB / 0.5883 GB, free: 84.34 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03428/1.569, allocations: 38.05 MB / 0.6255 GB, free: 48.95 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03843/1.608, allocations: 17.69 MB / 0.6428 GB, free: 31.83 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.835e-05/1.608, allocations: 99.88 kB / 0.6429 GB, free: 31.72 MB / 426.8 MB Notification: Performance of pre-optimization done (n=589): time 1.081e-05/1.608, allocations: 4 kB / 0.6429 GB, free: 31.72 MB / 426.8 MB Notification: Performance of matching and sorting (n=597): time 0.1105/1.718, allocations: 36.6 MB / 0.6786 GB, free: 10.8 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/1.718, allocations: 146.4 kB / 0.6788 GB, free: 10.64 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0141/1.733, allocations: 5.982 MB / 0.6846 GB, free: 4.641 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00105/1.734, allocations: 121.7 kB / 0.6847 GB, free: 4.516 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006066/1.74, allocations: 5.818 MB / 0.6904 GB, free: 14.66 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003093/1.743, allocations: 2.026 MB / 0.6924 GB, free: 12.66 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/1.744, allocations: 167.9 kB / 0.6925 GB, free: 12.49 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0007889/1.745, allocations: 0.646 MB / 0.6932 GB, free: 11.84 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01032/1.755, allocations: 4.252 MB / 0.6973 GB, free: 7.574 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.265/2.02, allocations: 7.165 MB / 0.7043 GB, free: 143.1 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01354/2.034, allocations: 5.694 MB / 0.7099 GB, free: 143 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001266/2.034, allocations: 26.78 kB / 0.7099 GB, free: 143 MB / 458.8 MB Notification: Performance of matching and sorting (n=1057) (initialization): time 0.03531/2.069, allocations: 14.01 MB / 0.7236 GB, free: 139.1 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/2.069, allocations: 42.53 kB / 0.7236 GB, free: 139.1 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/2.07, allocations: 97.84 kB / 0.7237 GB, free: 139.1 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/2.08, allocations: 2.778 MB / 0.7264 GB, free: 138.3 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00883/2.089, allocations: 1.701 MB / 0.7281 GB, free: 138.2 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05134/2.14, allocations: 30.31 MB / 0.7577 GB, free: 120.1 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007811/2.148, allocations: 448.4 kB / 0.7581 GB, free: 119.9 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001753/2.15, allocations: 390.2 kB / 0.7585 GB, free: 119.9 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * Number of states: 0 () * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (887): * Single equations (assignments): 880 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(24,33.0%) 96} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0119/2.162, allocations: 5.426 MB / 0.7638 GB, free: 115.7 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001808/2.164, allocations: 0.6406 MB / 0.7644 GB, free: 115.4 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02736/2.191, allocations: 11.69 MB / 0.7758 GB, free: 103.9 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-05/2.191, allocations: 60 kB / 0.7759 GB, free: 103.8 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.735e-05/2.191, allocations: 32 kB / 0.7759 GB, free: 103.8 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001239/2.191, allocations: 31.88 kB / 0.7759 GB, free: 103.8 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05624/2.247, allocations: 24.59 MB / 0.7999 GB, free: 79.14 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.924e-05/2.248, allocations: 11.98 kB / 0.8 GB, free: 79.13 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005076/2.253, allocations: 0.8742 MB / 0.8008 GB, free: 78.25 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00954/2.262, allocations: 2.81 MB / 0.8036 GB, free: 75.42 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001131/2.263, allocations: 140 kB / 0.8037 GB, free: 75.28 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0485/2.312, allocations: 32.93 MB / 0.8358 GB, free: 41.64 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/2.312, allocations: 11.94 kB / 0.8359 GB, free: 41.63 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03577/2.348, allocations: 17.02 MB / 0.8525 GB, free: 24.27 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004579/2.352, allocations: 1.592 MB / 0.854 GB, free: 22.66 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00201/2.354, allocations: 126.1 kB / 0.8542 GB, free: 22.54 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005072/2.36, allocations: 323.7 kB / 0.8545 GB, free: 22.22 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001901/2.362, allocations: 0.501 MB / 0.855 GB, free: 21.72 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008378/2.362, allocations: 176 kB / 0.8551 GB, free: 21.55 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008357/2.371, allocations: 4.022 MB / 0.8591 GB, free: 17.53 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.819e-06/2.371, allocations: 4 kB / 0.8591 GB, free: 17.52 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01247/2.383, allocations: 2.596 MB / 0.8616 GB, free: 14.93 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,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) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (454): * Single equations (assignments): 446 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,33.0%) 96,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001442/2.385, allocations: 320.7 kB / 0.8619 GB, free: 14.62 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.2759/2.661, allocations: 11.99 MB / 0.8736 GB, free: 144.7 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/2.661, allocations: 1.531 kB / 0.8736 GB, free: 144.7 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01672/2.677, allocations: 7.067 MB / 0.8805 GB, free: 143.4 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009203/2.687, allocations: 1.563 MB / 0.882 GB, free: 143.3 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06421/2.751, allocations: 30.76 MB / 0.9121 GB, free: 128.2 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01823/2.769, allocations: 9.085 MB / 0.921 GB, free: 124.3 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003198/2.773, allocations: 0.5294 MB / 0.9215 GB, free: 123.8 MB / 458.8 MB Notification: Performance of SimCode: time 2.207e-06/2.773, allocations: 0 / 0.9215 GB, free: 123.8 MB / 458.8 MB Notification: Performance of Templates: time 1.996/4.768, allocations: 0.7232 GB / 1.645 GB, free: 90.21 MB / 490.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_YDCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDFunctions.cpp:111:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp146 = 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_YDFunctions.cpp:111:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp146 = 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_YDCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o] Error 1\n'