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.SynchronousMachines.SMPM_Mains.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.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.839/1.839, allocations: 194.9 MB / 211.7 MB, free: 2.973 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003574, allocations: 8 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08083/0.08121, allocations: 44.51 MB / 308.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4306/0.5119, allocations: 151.9 MB / 460.4 MB, free: 5.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.5122, allocations: 113.8 kB / 460.5 MB, free: 5.812 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.692/2.204, allocations: 389.8 MB / 0.8304 GB, free: 21.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.931e-06/2.205, allocations: 0 / 0.8304 GB, free: 21.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000857/2.205, allocations: 283.7 kB / 0.8307 GB, free: 21.56 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.04846/2.254, allocations: 11.95 MB / 0.8423 GB, free: 9.492 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/2.254, allocations: 8.031 kB / 0.8423 GB, free: 9.484 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03928/2.293, allocations: 5.229 MB / 0.8474 GB, free: 4.234 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3684/2.662, allocations: 9.663 MB / 0.8569 GB, free: 26.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001459/2.663, allocations: 0.9013 MB / 0.8578 GB, free: 26.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005221/2.668, allocations: 1.17 MB / 0.8589 GB, free: 26.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.064/2.732, allocations: 19.57 MB / 0.878 GB, free: 24.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005536/2.733, allocations: 21.28 kB / 0.878 GB, free: 24.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00405/2.737, allocations: 0.5059 MB / 0.8785 GB, free: 24.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009818/2.738, allocations: 0.7748 MB / 0.8793 GB, free: 24.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04534/2.784, allocations: 17.39 MB / 0.8963 GB, free: 24.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1657/2.949, allocations: 63.21 MB / 0.958 GB, free: 14.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03522/2.985, allocations: 22.41 MB / 0.9799 GB, free: 14.93 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05939/3.044, allocations: 22.9 MB / 1.002 GB, free: 2.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001196/3.044, allocations: 110.5 kB / 1.002 GB, free: 1.957 MB / 458.7 MB Notification: Performance of pre-optimization done (n=754): time 1.254e-05/3.044, allocations: 0 / 1.002 GB, free: 1.957 MB / 458.7 MB Notification: Performance of matching and sorting (n=764): time 0.5585/3.603, allocations: 43.77 MB / 1.045 GB, free: 70.65 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/3.603, allocations: 145.3 kB / 1.045 GB, free: 70.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0168/3.62, allocations: 3.91 MB / 1.049 GB, free: 70.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001901/3.622, allocations: 134.6 kB / 1.049 GB, free: 70.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006067/3.628, allocations: 4.509 MB / 1.054 GB, free: 67.99 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005164/3.633, allocations: 2.534 MB / 1.056 GB, free: 66.35 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001435/3.635, allocations: 150.2 kB / 1.056 GB, free: 66.35 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00106/3.636, allocations: 0.6391 MB / 1.057 GB, free: 66.02 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02039/3.656, allocations: 4.838 MB / 1.062 GB, free: 66 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02104/3.677, allocations: 6.691 MB / 1.068 GB, free: 64 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0223/3.7, allocations: 5.98 MB / 1.074 GB, free: 63.91 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/3.7, allocations: 17.16 kB / 1.074 GB, free: 63.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.05588/3.756, allocations: 14.23 MB / 1.088 GB, free: 63.32 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.391e-05/3.756, allocations: 30.02 kB / 1.088 GB, free: 63.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/3.756, allocations: 52.53 kB / 1.088 GB, free: 63.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009898/3.766, allocations: 3.373 MB / 1.091 GB, free: 63.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008133/3.774, allocations: 1.491 MB / 1.093 GB, free: 63.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01688/3.791, allocations: 13.88 MB / 1.106 GB, free: 56.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007443/3.798, allocations: 400.3 kB / 1.107 GB, free: 56.19 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002076/3.8, allocations: 339.2 kB / 1.107 GB, free: 56.19 MB / 474.7 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.03106/3.832, allocations: 4.266 MB / 1.111 GB, free: 55.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005143/3.837, allocations: 0.5887 MB / 1.112 GB, free: 54.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07027/3.907, allocations: 13.71 MB / 1.125 GB, free: 48.81 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02323/3.93, allocations: 10.43 MB / 1.135 GB, free: 44.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.336e-05/3.93, allocations: 3.812 kB / 1.135 GB, free: 44.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001331/3.931, allocations: 34.61 kB / 1.135 GB, free: 44.27 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06887/3.999, allocations: 28.21 MB / 1.163 GB, free: 30 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-05/4, allocations: 9.203 kB / 1.163 GB, free: 30 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00576/4.005, allocations: 0.9574 MB / 1.164 GB, free: 29.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009416/4.015, allocations: 3.482 MB / 1.167 GB, free: 26.44 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00154/4.016, allocations: 165.2 kB / 1.167 GB, free: 26.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02138/4.038, allocations: 18.37 MB / 1.185 GB, free: 8.477 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.789e-06/4.038, allocations: 5.969 kB / 1.185 GB, free: 8.473 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3803/4.418, allocations: 21.77 MB / 1.207 GB, free: 63.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006049/4.424, allocations: 1.742 MB / 1.208 GB, free: 63.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002965/4.427, allocations: 119.4 kB / 1.208 GB, free: 63.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006176/4.433, allocations: 322.6 kB / 1.209 GB, free: 63.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002328/4.436, allocations: 0.548 MB / 1.209 GB, free: 63.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001694/4.438, allocations: 207.8 kB / 1.209 GB, free: 63.02 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008725/4.446, allocations: 2.944 MB / 1.212 GB, free: 62.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.12e-06/4.446, allocations: 0 / 1.212 GB, free: 62.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01244/4.459, allocations: 2.153 MB / 1.214 GB, free: 62.84 MB / 474.7 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.002729/4.462, allocations: 0.747 MB / 1.215 GB, free: 62.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02831/4.49, allocations: 12.23 MB / 1.227 GB, free: 62 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/4.49, allocations: 2.969 kB / 1.227 GB, free: 62 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01636/4.506, allocations: 6.696 MB / 1.234 GB, free: 61.29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009808/4.516, allocations: 1.318 MB / 1.235 GB, free: 61.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06687/4.583, allocations: 28.97 MB / 1.263 GB, free: 50.71 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01761/4.601, allocations: 7.541 MB / 1.271 GB, free: 49.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003435/4.604, allocations: 485.8 kB / 1.271 GB, free: 49.7 MB / 474.7 MB Notification: Performance of SimCode: time 2.498e-06/4.604, allocations: 0 / 1.271 GB, free: 49.7 MB / 474.7 MB Notification: Performance of Templates: time 2.679/7.283, allocations: 0.8621 GB / 2.133 GB, free: 98.71 MB / 0.4948 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=2 -DSUNDIALS_MINOR_VERSION=6 -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.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'