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_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.864/1.864, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003868, allocations: 15.98 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08075/0.08117, allocations: 44.5 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.03147/0.1127, allocations: 20.74 MB / 329.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0183/0.131, allocations: 7.192 MB / 336.3 MB, free: 4.984 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005144/0.1362, allocations: 143.5 kB / 336.5 MB, free: 4.844 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00623/0.1425, allocations: 1.516 MB / 338 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01122/0.1538, allocations: 2.559 MB / 340.5 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005612/0.1594, allocations: 1.201 MB / 341.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02079/0.1802, allocations: 10.46 MB / 352.2 MB, free: 5.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04747/0.2278, allocations: 19.12 MB / 371.3 MB, free: 1.828 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.231/0.4589, allocations: 4.08 MB / 375.4 MB, free: 22.88 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008382/0.4673, allocations: 4.529 MB / 379.9 MB, free: 22.88 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003227/0.4706, allocations: 0.6659 MB / 380.6 MB, free: 22.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005501/0.4761, allocations: 0.9652 MB / 381.6 MB, free: 22.88 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004116/0.4803, allocations: 2.094 MB / 383.6 MB, free: 22.88 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004588/0.4849, allocations: 2.151 MB / 385.8 MB, free: 22.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02134/0.5063, allocations: 19.56 MB / 405.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.5064, allocations: 0 / 405.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.799e-06/0.5064, allocations: 3.844 kB / 405.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000484/0.5069, allocations: 0 / 405.4 MB, free: 13.06 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.0355/0.5424, allocations: 11.42 MB / 416.8 MB, free: 7.387 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.5424, allocations: 8.188 kB / 416.8 MB, free: 7.387 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04934/0.5918, allocations: 7.153 MB / 423.9 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/0.6082, allocations: 6.401 MB / 430.3 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001015/0.6093, allocations: 0.7326 MB / 431.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003883/0.6132, allocations: 0.9571 MB / 432 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04916/0.6624, allocations: 16.53 MB / 448.6 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004386/0.6629, allocations: 14.75 kB / 448.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003319/0.6662, allocations: 410.6 kB / 449 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008704/0.6671, allocations: 0.5985 MB / 449.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04479/0.7119, allocations: 15.72 MB / 465.3 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1245/0.8365, allocations: 53.97 MB / 0.5071 GB, free: 7.777 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2615/1.098, allocations: 22.7 MB / 0.5293 GB, free: 103.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02992/1.128, allocations: 11.85 MB / 0.5408 GB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/1.128, allocations: 70.72 kB / 0.5409 GB, free: 100 MB / 410.7 MB Notification: Performance of pre-optimization done (n=365): time 8.267e-06/1.128, allocations: 0 / 0.5409 GB, free: 100 MB / 410.7 MB Notification: Performance of matching and sorting (n=370): time 0.05715/1.185, allocations: 18.61 MB / 0.5591 GB, free: 92.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/1.185, allocations: 92.42 kB / 0.5592 GB, free: 92.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009678/1.195, allocations: 4.692 MB / 0.5638 GB, free: 90.81 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006761/1.196, allocations: 87.45 kB / 0.5638 GB, free: 90.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002827/1.199, allocations: 4.283 MB / 0.568 GB, free: 87.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001626/1.2, allocations: 1.277 MB / 0.5693 GB, free: 86.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008373/1.201, allocations: 119.5 kB / 0.5694 GB, free: 86.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005306/1.202, allocations: 0.5498 MB / 0.5699 GB, free: 85.92 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006677/1.208, allocations: 2.926 MB / 0.5728 GB, free: 84.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00802/1.217, allocations: 5.28 MB / 0.5779 GB, free: 80.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008449/1.225, allocations: 4.144 MB / 0.582 GB, free: 78.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.106e-05/1.225, allocations: 20 kB / 0.582 GB, free: 78.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02232/1.248, allocations: 9.471 MB / 0.5912 GB, free: 68.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/1.248, allocations: 65.7 kB / 0.5913 GB, free: 68.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001027/1.248, allocations: 76 kB / 0.5914 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004805/1.253, allocations: 1.421 MB / 0.5928 GB, free: 67.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006636/1.259, allocations: 1.33 MB / 0.5941 GB, free: 65.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02142/1.281, allocations: 12 MB / 0.6058 GB, free: 53.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005799/1.287, allocations: 370.7 kB / 0.6061 GB, free: 53.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/1.288, allocations: 300 kB / 0.6064 GB, free: 52.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 353 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (693): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008017/1.296, allocations: 3.915 MB / 0.6103 GB, free: 49.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.297, allocations: 446.5 kB / 0.6107 GB, free: 48.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01648/1.314, allocations: 6.854 MB / 0.6174 GB, free: 41.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02067/1.334, allocations: 5.636 MB / 0.6229 GB, free: 36.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.673e-05/1.334, allocations: 12 kB / 0.6229 GB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001096/1.335, allocations: 19.92 kB / 0.6229 GB, free: 36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0598/1.394, allocations: 15.5 MB / 0.638 GB, free: 20.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.033e-05/1.394, allocations: 7.938 kB / 0.6381 GB, free: 20.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003948/1.398, allocations: 0.6714 MB / 0.6387 GB, free: 19.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004403/1.403, allocations: 1.264 MB / 0.6399 GB, free: 18.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00076/1.404, allocations: 91.91 kB / 0.64 GB, free: 18.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01862/1.422, allocations: 10.89 MB / 0.6507 GB, free: 7.242 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.634e-06/1.422, allocations: 7.938 kB / 0.6507 GB, free: 7.234 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02248/1.445, allocations: 10.07 MB / 0.6605 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005841/1.451, allocations: 1.046 MB / 0.6615 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00278/1.454, allocations: 76.45 kB / 0.6616 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00711/1.461, allocations: 223.8 kB / 0.6618 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001954/1.463, allocations: 267.2 kB / 0.6621 GB, free: 11.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009079/1.464, allocations: 123.9 kB / 0.6622 GB, free: 11.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01421/1.478, allocations: 3.17 MB / 0.6653 GB, free: 8.125 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.709e-06/1.478, allocations: 0 / 0.6653 GB, free: 8.125 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01728/1.495, allocations: 1.693 MB / 0.6669 GB, free: 6.438 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (336): * Single equations (assignments): 330 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003058/1.498, allocations: 417.2 kB / 0.6673 GB, free: 6.105 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2594/1.758, allocations: 7.624 MB / 0.6748 GB, free: 147 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.758, allocations: 3.188 kB / 0.6748 GB, free: 147 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00954/1.767, allocations: 3.628 MB / 0.6783 GB, free: 146.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00569/1.773, allocations: 0.9123 MB / 0.6792 GB, free: 146.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0445/1.818, allocations: 20.9 MB / 0.6996 GB, free: 136.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01295/1.831, allocations: 6.537 MB / 0.706 GB, free: 134.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002272/1.833, allocations: 403.5 kB / 0.7064 GB, free: 134.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.753e-06/1.833, allocations: 0 / 0.7064 GB, free: 134.3 MB / 426.7 MB Notification: Performance of Templates: time 0.5893/2.422, allocations: 215.8 MB / 0.9172 GB, free: 63.58 MB / 426.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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_withLossesCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:268:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp132 = 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_withLossesFunctions.cpp:268:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp132 = 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_withLossesCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1\n'