Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001603/0.001603, allocations: 180.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.085/2.085, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001112, allocations: 86.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.425e-05/3.444e-05, allocations: 7.984 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 47.57 MB / 369.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5059/0.6133, allocations: 135.8 MB / 0.4931 GB, free: 6.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003808/0.6138, allocations: 102.3 kB / 0.4932 GB, free: 5.996 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.629/2.243, allocations: 331.3 MB / 0.8167 GB, free: 8.211 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/2.243, allocations: 0 / 0.8167 GB, free: 8.211 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006745/2.243, allocations: 227.7 kB / 0.8169 GB, free: 7.988 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04215/2.286, allocations: 8.73 MB / 0.8255 GB, free: 15.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/2.286, allocations: 13.11 kB / 0.8255 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05121/2.337, allocations: 5.852 MB / 0.8312 GB, free: 9.293 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0301/2.367, allocations: 7.448 MB / 0.8385 GB, free: 1.789 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00145/2.369, allocations: 0.7222 MB / 0.8392 GB, free: 1.066 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005361/2.374, allocations: 0.9373 MB / 0.8401 GB, free: 132 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4069/2.781, allocations: 16.82 MB / 0.8565 GB, free: 44.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000666/2.782, allocations: 22.7 kB / 0.8565 GB, free: 44.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004578/2.786, allocations: 408 kB / 0.8569 GB, free: 44.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001565/2.788, allocations: 0.7131 MB / 0.8576 GB, free: 44.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05158/2.84, allocations: 15.67 MB / 0.8729 GB, free: 44.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1401/2.98, allocations: 52.79 MB / 0.9245 GB, free: 33.01 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04843/3.028, allocations: 41.39 MB / 0.9649 GB, free: 12.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01705/3.045, allocations: 7.004 MB / 0.9717 GB, free: 9.199 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06354/3.109, allocations: 21.76 MB / 0.993 GB, free: 14.97 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/3.109, allocations: 96.23 kB / 0.9931 GB, free: 14.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=688): time 1.126e-05/3.109, allocations: 0 / 0.9931 GB, free: 14.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=696): time 0.0698/3.179, allocations: 22.73 MB / 1.015 GB, free: 2.883 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/3.179, allocations: 107.9 kB / 1.015 GB, free: 2.762 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006308/3.185, allocations: 2.445 MB / 1.018 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001643/3.187, allocations: 117.7 kB / 1.018 GB, free: 456 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003961/3.191, allocations: 3.551 MB / 1.021 GB, free: 13.42 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00452/3.196, allocations: 2.3 MB / 1.024 GB, free: 11.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001107/3.197, allocations: 132 kB / 1.024 GB, free: 11.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0008991/3.198, allocations: 0.5995 MB / 1.024 GB, free: 10.69 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01333/3.211, allocations: 4.46 MB / 1.029 GB, free: 6.715 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01533/3.226, allocations: 6.267 MB / 1.035 GB, free: 356 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4516/3.678, allocations: 5.589 MB / 1.04 GB, free: 93.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.469e-05/3.678, allocations: 15.09 kB / 1.04 GB, free: 93.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.05688/3.735, allocations: 13.38 MB / 1.053 GB, free: 93.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.32e-05/3.735, allocations: 27.78 kB / 1.053 GB, free: 93.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/3.735, allocations: 56.3 kB / 1.053 GB, free: 93.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01394/3.749, allocations: 3.976 MB / 1.057 GB, free: 93.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009914/3.759, allocations: 1.221 MB / 1.058 GB, free: 93.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01867/3.778, allocations: 9.639 MB / 1.068 GB, free: 91.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007872/3.786, allocations: 348.2 kB / 1.068 GB, free: 91.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002252/3.788, allocations: 318.9 kB / 1.069 GB, free: 91.36 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.003829/3.792, allocations: 484.9 kB / 1.069 GB, free: 91.25 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002509/3.795, allocations: 450.9 kB / 1.069 GB, free: 91.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03822/3.833, allocations: 12.83 MB / 1.082 GB, free: 90.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003014/3.833, allocations: 184.5 kB / 1.082 GB, free: 90.93 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-05/3.833, allocations: 0 / 1.082 GB, free: 90.93 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001488/3.834, allocations: 28.08 kB / 1.082 GB, free: 90.93 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06998/3.904, allocations: 24.68 MB / 1.106 GB, free: 85.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.088e-05/3.904, allocations: 8.781 kB / 1.106 GB, free: 85.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007556/3.911, allocations: 0.8132 MB / 1.107 GB, free: 85.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01265/3.924, allocations: 3.886 MB / 1.111 GB, free: 84.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001806/3.926, allocations: 152.5 kB / 1.111 GB, free: 84.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01781/3.944, allocations: 9.51 MB / 1.12 GB, free: 78.84 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/3.944, allocations: 10.33 kB / 1.12 GB, free: 78.84 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04902/3.993, allocations: 19.39 MB / 1.139 GB, free: 70.04 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005758/3.999, allocations: 1.477 MB / 1.141 GB, free: 69.22 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002605/4.001, allocations: 99.06 kB / 1.141 GB, free: 69.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00639/4.008, allocations: 267.8 kB / 1.141 GB, free: 69.07 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002675/4.01, allocations: 0.5152 MB / 1.141 GB, free: 68.83 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001809/4.012, allocations: 192 kB / 1.142 GB, free: 68.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004694/4.017, allocations: 1.825 MB / 1.143 GB, free: 67.03 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.122e-06/4.017, allocations: 3.375 kB / 1.143 GB, free: 67.03 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0103/4.027, allocations: 1.722 MB / 1.145 GB, free: 65.32 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002737/4.03, allocations: 0.6459 MB / 1.146 GB, free: 64.84 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03089/4.061, allocations: 11.03 MB / 1.157 GB, free: 55.04 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/4.061, allocations: 4 kB / 1.157 GB, free: 55.04 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01776/4.079, allocations: 5.665 MB / 1.162 GB, free: 50.04 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00832/4.087, allocations: 0.8388 MB / 1.163 GB, free: 49.38 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05379/4.141, allocations: 17.79 MB / 1.18 GB, free: 33.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0133/4.154, allocations: 6.347 MB / 1.186 GB, free: 28.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00339/4.158, allocations: 382.8 kB / 1.187 GB, free: 28.37 MB / 490.7 MB Notification: Performance of SimCode: time 2.054e-06/4.158, allocations: 3.469 kB / 1.187 GB, free: 28.37 MB / 490.7 MB Notification: Performance of Templates: time 1.323/5.481, allocations: 375 MB / 1.553 GB, free: 10.62 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPAFunctions.cpp:476:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp295 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPAFunctions.cpp:476:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp295 = 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.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o] Error 1\n'