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.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 2.041/2.041, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08258/0.08297, allocations: 44.51 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.05603/0.139, allocations: 33.95 MB / 342.3 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02736/0.1665, allocations: 10.62 MB / 353 MB, free: 4.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008443/0.1749, allocations: 239.2 kB / 353.2 MB, free: 4.055 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008439/0.1834, allocations: 2.149 MB / 355.3 MB, free: 1.895 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01651/0.2, allocations: 3.837 MB / 359.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00847/0.2085, allocations: 1.701 MB / 360.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02166/0.2302, allocations: 10.02 MB / 370.9 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2697/0.4999, allocations: 18.09 MB / 389 MB, free: 10.28 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00742/0.5074, allocations: 4.387 MB / 393.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00821/0.5156, allocations: 5.089 MB / 398.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002956/0.5186, allocations: 0.7202 MB / 399.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005005/0.5237, allocations: 1.045 MB / 400.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003327/0.527, allocations: 2.258 MB / 402.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003623/0.5307, allocations: 2.402 MB / 404.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02335/0.5541, allocations: 20.17 MB / 425.1 MB, free: 12.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.781e-06/0.5541, allocations: 4 kB / 425.1 MB, free: 12.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.44e-06/0.5541, allocations: 0 / 425.1 MB, free: 12.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004854/0.5546, allocations: 4 kB / 425.1 MB, free: 12.08 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.04006/0.5947, allocations: 12.11 MB / 437.2 MB, free: 1.211 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.5948, allocations: 8.031 kB / 437.2 MB, free: 1.203 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04458/0.6394, allocations: 6.07 MB / 443.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01833/0.6578, allocations: 6.855 MB / 450.1 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00111/0.6589, allocations: 0.8474 MB / 451 MB, free: 6.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003896/0.6628, allocations: 1.114 MB / 452.1 MB, free: 6.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05097/0.7138, allocations: 17.09 MB / 469.2 MB, free: 6.312 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004479/0.7143, allocations: 15.66 kB / 469.2 MB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003168/0.7175, allocations: 471.9 kB / 469.6 MB, free: 5.852 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008769/0.7184, allocations: 0.609 MB / 470.3 MB, free: 5.238 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04472/0.7631, allocations: 15.51 MB / 485.8 MB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5968/1.36, allocations: 58.73 MB / 0.5317 GB, free: 113.9 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02257/1.383, allocations: 20.88 MB / 0.5521 GB, free: 97.56 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02402/1.407, allocations: 9.84 MB / 0.5617 GB, free: 96.34 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.107e-05/1.407, allocations: 76.89 kB / 0.5618 GB, free: 96.3 MB / 426.8 MB Notification: Performance of pre-optimization done (n=332): time 1.208e-05/1.407, allocations: 0 / 0.5618 GB, free: 96.3 MB / 426.8 MB Notification: Performance of matching and sorting (n=359): time 0.04605/1.453, allocations: 17.6 MB / 0.579 GB, free: 89.86 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/1.453, allocations: 118.6 kB / 0.5791 GB, free: 89.76 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/1.464, allocations: 5.351 MB / 0.5843 GB, free: 87.78 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005893/1.465, allocations: 91.52 kB / 0.5844 GB, free: 87.7 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003191/1.468, allocations: 5.078 MB / 0.5894 GB, free: 83.75 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001434/1.469, allocations: 1.27 MB / 0.5906 GB, free: 82.79 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006713/1.47, allocations: 140.3 kB / 0.5907 GB, free: 82.68 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004626/1.47, allocations: 0.5807 MB / 0.5913 GB, free: 82.25 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006421/1.477, allocations: 2.833 MB / 0.5941 GB, free: 81.2 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008198/1.485, allocations: 5.868 MB / 0.5998 GB, free: 75.85 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008211/1.493, allocations: 4.091 MB / 0.6038 GB, free: 73.57 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001046/1.494, allocations: 27.78 kB / 0.6038 GB, free: 73.57 MB / 426.8 MB Notification: Performance of matching and sorting (n=882) (initialization): time 0.02375/1.517, allocations: 9.6 MB / 0.6132 GB, free: 66.41 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/1.517, allocations: 49.09 kB / 0.6133 GB, free: 66.37 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/1.518, allocations: 100 kB / 0.6133 GB, free: 66.27 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003092/1.521, allocations: 0.9495 MB / 0.6143 GB, free: 65.31 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007252/1.528, allocations: 1.603 MB / 0.6158 GB, free: 63.7 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01428/1.542, allocations: 9.991 MB / 0.6256 GB, free: 53.33 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01062/1.553, allocations: 443.1 kB / 0.626 GB, free: 52.89 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002708/1.556, allocations: 364 kB / 0.6264 GB, free: 52.54 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (830): * Single equations (assignments): 822 * 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: 3 * 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 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01812/1.574, allocations: 3.827 MB / 0.6301 GB, free: 48.7 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002742/1.577, allocations: 0.517 MB / 0.6306 GB, free: 48.18 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03222/1.609, allocations: 6.164 MB / 0.6366 GB, free: 41.94 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01553/1.625, allocations: 3.209 MB / 0.6398 GB, free: 38.72 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.856e-05/1.625, allocations: 12 kB / 0.6398 GB, free: 38.71 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001413/1.625, allocations: 28.95 kB / 0.6398 GB, free: 38.68 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.053/1.678, allocations: 15.12 MB / 0.6546 GB, free: 23.48 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.968e-05/1.678, allocations: 7.984 kB / 0.6546 GB, free: 23.48 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006041/1.684, allocations: 0.6321 MB / 0.6552 GB, free: 22.84 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005336/1.689, allocations: 0.9096 MB / 0.6561 GB, free: 21.92 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008999/1.69, allocations: 83.98 kB / 0.6562 GB, free: 21.84 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0283/1.719, allocations: 13.14 MB / 0.669 GB, free: 8.055 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/1.719, allocations: 8 kB / 0.669 GB, free: 8.047 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03075/1.75, allocations: 8.923 MB / 0.6777 GB, free: 14.94 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006914/1.757, allocations: 1.053 MB / 0.6787 GB, free: 13.86 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002361/1.759, allocations: 68 kB / 0.6788 GB, free: 13.8 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004367/1.763, allocations: 215.8 kB / 0.679 GB, free: 13.59 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/1.765, allocations: 258.5 kB / 0.6793 GB, free: 13.33 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003941/1.765, allocations: 104 kB / 0.6794 GB, free: 13.23 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.009503/1.774, allocations: 3.535 MB / 0.6828 GB, free: 9.711 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.198e-06/1.775, allocations: 0 / 0.6828 GB, free: 9.711 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01045/1.785, allocations: 1.837 MB / 0.6846 GB, free: 7.879 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (314): * Single equations (assignments): 305 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,65.6%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001094/1.786, allocations: 270.6 kB / 0.6849 GB, free: 7.621 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0184/1.805, allocations: 7.32 MB / 0.692 GB, free: 252 kB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/1.805, allocations: 384 / 0.692 GB, free: 252 kB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.2887/2.093, allocations: 3.517 MB / 0.6954 GB, free: 145 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007136/2.101, allocations: 1.073 MB / 0.6965 GB, free: 144.9 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04859/2.149, allocations: 21.97 MB / 0.7179 GB, free: 134.8 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01244/2.162, allocations: 6.654 MB / 0.7244 GB, free: 132.5 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002299/2.164, allocations: 456.1 kB / 0.7249 GB, free: 132.5 MB / 442.8 MB Notification: Performance of SimCode: time 1.673e-06/2.164, allocations: 0 / 0.7249 GB, free: 132.5 MB / 442.8 MB Notification: Performance of Templates: time 0.9134/3.077, allocations: 374 MB / 1.09 GB, free: 95.95 MB / 458.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:220:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp113 = 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.SMEE_GeneratorFunctions.cpp:220:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp113 = 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.SMEE_GeneratorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1\n'