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.SynchronousMachines.SMPM_Mains.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.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 15.98 kB / 264.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 44.49 MB / 309 MB, free: 1.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6212/0.7225, allocations: 151.9 MB / 460.9 MB, free: 4.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006467/0.7233, allocations: 109.5 kB / 461 MB, free: 4.277 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.908/2.631, allocations: 389.9 MB / 0.8309 GB, free: 20.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.426e-06/2.631, allocations: 0 / 0.8309 GB, free: 20.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001379/2.632, allocations: 279.7 kB / 0.8312 GB, free: 20.3 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.0695/2.702, allocations: 11.95 MB / 0.8428 GB, free: 8.227 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/2.702, allocations: 8.031 kB / 0.8428 GB, free: 8.219 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04697/2.749, allocations: 5.233 MB / 0.8479 GB, free: 2.965 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7969/3.546, allocations: 9.659 MB / 0.8574 GB, free: 23.62 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001909/3.548, allocations: 0.8998 MB / 0.8583 GB, free: 23.6 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006722/3.555, allocations: 1.178 MB / 0.8594 GB, free: 23.6 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07241/3.627, allocations: 19.67 MB / 0.8786 GB, free: 22.15 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000841/3.628, allocations: 18.86 kB / 0.8786 GB, free: 22.15 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005663/3.634, allocations: 0.5064 MB / 0.8791 GB, free: 22.15 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001295/3.635, allocations: 0.7681 MB / 0.8799 GB, free: 22.12 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05761/3.693, allocations: 17.4 MB / 0.8969 GB, free: 22.01 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1803/3.873, allocations: 63.21 MB / 0.9586 GB, free: 12.07 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04265/3.916, allocations: 22.42 MB / 0.9805 GB, free: 12.21 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08521/4.001, allocations: 23.36 MB / 1.003 GB, free: 0 / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001911/4.001, allocations: 105.8 kB / 1.003 GB, free: 15.89 MB / 474.8 MB Notification: Performance of pre-optimization done (n=754): time 1.206e-05/4.001, allocations: 0 / 1.003 GB, free: 15.89 MB / 474.8 MB Notification: Performance of matching and sorting (n=764): time 0.5347/4.536, allocations: 41.59 MB / 1.044 GB, free: 63.14 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/4.536, allocations: 146.4 kB / 1.044 GB, free: 63.04 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01226/4.548, allocations: 4.395 MB / 1.048 GB, free: 62.7 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001825/4.55, allocations: 133.1 kB / 1.049 GB, free: 62.67 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004086/4.554, allocations: 4.511 MB / 1.053 GB, free: 60.27 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00455/4.559, allocations: 2.541 MB / 1.055 GB, free: 58.62 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001971/4.561, allocations: 147.8 kB / 1.056 GB, free: 58.62 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001034/4.562, allocations: 0.6357 MB / 1.056 GB, free: 58.3 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01469/4.577, allocations: 4.841 MB / 1.061 GB, free: 58.28 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01597/4.593, allocations: 6.715 MB / 1.068 GB, free: 56.28 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01687/4.61, allocations: 5.983 MB / 1.073 GB, free: 56.18 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/4.61, allocations: 14.91 kB / 1.073 GB, free: 56.18 MB / 474.8 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.0456/4.656, allocations: 14.22 MB / 1.087 GB, free: 55.58 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.266e-05/4.656, allocations: 30.84 kB / 1.087 GB, free: 55.58 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/4.656, allocations: 53.78 kB / 1.087 GB, free: 55.58 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/4.668, allocations: 3.38 MB / 1.091 GB, free: 55.48 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01181/4.68, allocations: 1.494 MB / 1.092 GB, free: 55.48 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01979/4.7, allocations: 13.88 MB / 1.106 GB, free: 47.64 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01015/4.71, allocations: 397.9 kB / 1.106 GB, free: 47.52 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002625/4.712, allocations: 343.4 kB / 1.106 GB, free: 47.45 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (791): * Single equations (assignments): 726 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.01366/4.726, allocations: 4.262 MB / 1.111 GB, free: 45.41 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00238/4.728, allocations: 0.5869 MB / 1.111 GB, free: 45.09 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03793/4.766, allocations: 13.71 MB / 1.124 GB, free: 39.01 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02652/4.793, allocations: 10.43 MB / 1.135 GB, free: 34.47 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.022e-05/4.793, allocations: 10.8 kB / 1.135 GB, free: 34.47 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001456/4.793, allocations: 32.45 kB / 1.135 GB, free: 34.47 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07989/4.873, allocations: 28.21 MB / 1.162 GB, free: 19.26 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001327/4.873, allocations: 10.2 kB / 1.162 GB, free: 19.26 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008619/4.882, allocations: 0.9607 MB / 1.163 GB, free: 18.52 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01214/4.894, allocations: 3.47 MB / 1.167 GB, free: 15.7 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001947/4.896, allocations: 167.9 kB / 1.167 GB, free: 15.56 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0258/4.922, allocations: 18.37 MB / 1.185 GB, free: 13.75 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/4.922, allocations: 4 kB / 1.185 GB, free: 13.75 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4623/5.384, allocations: 20.62 MB / 1.205 GB, free: 75.43 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007262/5.392, allocations: 1.741 MB / 1.207 GB, free: 75.33 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003658/5.395, allocations: 122.2 kB / 1.207 GB, free: 75.33 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008157/5.404, allocations: 316.1 kB / 1.207 GB, free: 75.33 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002945/5.407, allocations: 0.5522 MB / 1.207 GB, free: 75.32 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002117/5.409, allocations: 209.2 kB / 1.208 GB, free: 75.32 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.009663/5.418, allocations: 2.941 MB / 1.211 GB, free: 75.14 MB / 490.8 MB Notification: Performance of sort global known variables: time 9.42e-07/5.419, allocations: 0 / 1.211 GB, free: 75.14 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01431/5.433, allocations: 2.156 MB / 1.213 GB, free: 75.14 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * 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 (512): * Single equations (assignments): 446 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.003148/5.436, allocations: 0.7421 MB / 1.213 GB, free: 75.04 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03381/5.47, allocations: 12.24 MB / 1.225 GB, free: 74.32 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.475e-05/5.47, allocations: 3.906 kB / 1.225 GB, free: 74.32 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01918/5.489, allocations: 6.697 MB / 1.232 GB, free: 73.61 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01277/5.502, allocations: 1.316 MB / 1.233 GB, free: 73.59 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07766/5.58, allocations: 28.98 MB / 1.261 GB, free: 63.08 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01818/5.598, allocations: 7.534 MB / 1.269 GB, free: 62.07 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00433/5.602, allocations: 478.7 kB / 1.269 GB, free: 62.06 MB / 490.8 MB Notification: Performance of SimCode: time 1.633e-06/5.602, allocations: 0 / 1.269 GB, free: 62.06 MB / 490.8 MB Notification: Performance of Templates: time 3.286/8.888, allocations: 0.8621 GB / 2.131 GB, free: 108.1 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.SynchronousMachines.SMPM_MainsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:637:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp341 = 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.SynchronousMachines.SMPM_MainsFunctions.cpp:637:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp341 = 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.SynchronousMachines.SMPM_MainsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1\n'