Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009633/0.000963, allocations: 199.4 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008753/0.0008756, allocations: 106.1 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002184/0.0002184, allocations: 4 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2149, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3865/0.6015, allocations: 136 MB / 0.532 GB, free: 46.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/0.6018, allocations: 110.6 kB / 0.5321 GB, free: 46.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7432/1.345, allocations: 315.2 MB / 0.8399 GB, free: 8.734 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.345e-06/1.345, allocations: 3.938 kB / 0.8399 GB, free: 8.73 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000335/1.345, allocations: 151.7 kB / 0.84 GB, free: 8.586 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02019/1.366, allocations: 6.794 MB / 0.8466 GB, free: 1.75 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/1.366, allocations: 8.031 kB / 0.8467 GB, free: 1.742 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.301/1.667, allocations: 3.617 MB / 0.8502 GB, free: 41.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01197/1.679, allocations: 4.967 MB / 0.855 GB, free: 41.23 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005938/1.679, allocations: 0.4901 MB / 0.8555 GB, free: 41.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003157/1.682, allocations: 0.6409 MB / 0.8561 GB, free: 41.21 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02415/1.707, allocations: 11.08 MB / 0.867 GB, free: 40.42 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001879/1.707, allocations: 23.28 kB / 0.867 GB, free: 40.41 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00095/1.708, allocations: 281.9 kB / 0.8673 GB, free: 40.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004367/1.708, allocations: 0.5213 MB / 0.8678 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/1.727, allocations: 10.12 MB / 0.8776 GB, free: 40.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04955/1.776, allocations: 36.04 MB / 0.9128 GB, free: 33.31 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007957/1.784, allocations: 11.92 MB / 0.9245 GB, free: 24.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003381/1.788, allocations: 2.84 MB / 0.9273 GB, free: 23.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003226/1.788, allocations: 248.4 kB / 0.9275 GB, free: 23.14 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/1.788, allocations: 74.97 kB / 0.9276 GB, free: 23.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=367): time 6.302e-06/1.788, allocations: 0 / 0.9276 GB, free: 23.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=377): time 0.02942/1.818, allocations: 15.8 MB / 0.943 GB, free: 17.08 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/1.818, allocations: 116.4 kB / 0.9431 GB, free: 16.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003452/1.821, allocations: 2.727 MB / 0.9458 GB, free: 15.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002763/1.821, allocations: 84.02 kB / 0.9459 GB, free: 15.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001299/1.823, allocations: 2.881 MB / 0.9487 GB, free: 13.68 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000809/1.824, allocations: 1.277 MB / 0.9499 GB, free: 12.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/1.824, allocations: 98.97 kB / 0.95 GB, free: 12.62 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000197/1.824, allocations: 0.4922 MB / 0.9505 GB, free: 12.23 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002915/1.827, allocations: 2.289 MB / 0.9527 GB, free: 11.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003491/1.83, allocations: 3.898 MB / 0.9565 GB, free: 8.453 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006809/1.837, allocations: 6.703 MB / 0.9631 GB, free: 4.281 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.487e-05/1.837, allocations: 14.59 kB / 0.9631 GB, free: 4.281 MB / 458.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.009521/1.847, allocations: 7.064 MB / 0.97 GB, free: 1.707 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007863/1.848, allocations: 1.603 MB / 0.9716 GB, free: 15.51 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.138e-05/1.848, allocations: 50.56 kB / 0.9716 GB, free: 15.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003432/1.851, allocations: 1.235 MB / 0.9728 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003502/1.855, allocations: 1.07 MB / 0.9739 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003005/1.858, allocations: 2.35 MB / 0.9762 GB, free: 14.08 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002978/1.861, allocations: 301.4 kB / 0.9764 GB, free: 13.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004124/1.861, allocations: 221.3 kB / 0.9767 GB, free: 13.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/1.861, allocations: 10.33 kB / 0.9767 GB, free: 13.95 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009229/1.87, allocations: 6.714 MB / 0.9832 GB, free: 11.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/1.87, allocations: 56.06 kB / 0.9833 GB, free: 11.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002832/1.873, allocations: 1.139 MB / 0.9844 GB, free: 10.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003372/1.877, allocations: 1.079 MB / 0.9854 GB, free: 9.199 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/1.879, allocations: 2.278 MB / 0.9877 GB, free: 7.148 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002639/1.882, allocations: 277.4 kB / 0.9879 GB, free: 6.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/1.882, allocations: 226.7 kB / 0.9881 GB, free: 6.719 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 545 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {11 55} Notification: Performance of prepare postOptimizeDAE: time 0.004358/1.887, allocations: 2.552 MB / 0.9906 GB, free: 4.492 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007085/1.887, allocations: 347.7 kB / 0.991 GB, free: 4.152 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009879/1.897, allocations: 5.882 MB / 0.9967 GB, free: 15.47 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.661e-05/1.897, allocations: 43.89 kB / 0.9968 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/1.897, allocations: 4 kB / 0.9968 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.811e-05/1.897, allocations: 18 kB / 0.9968 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02091/1.918, allocations: 13.33 MB / 1.01 GB, free: 4.227 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/1.918, allocations: 128 / 1.01 GB, free: 4.227 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002442/1.921, allocations: 0.6697 MB / 1.01 GB, free: 3.668 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002763/1.924, allocations: 0.9767 MB / 1.011 GB, free: 2.914 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000264/1.924, allocations: 86.05 kB / 1.011 GB, free: 2.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002436/1.926, allocations: 2.021 MB / 1.013 GB, free: 1.016 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.926, allocations: 0 / 1.013 GB, free: 1.016 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01579/1.942, allocations: 8.715 MB / 1.022 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001855/1.944, allocations: 0.8275 MB / 1.023 GB, free: 9.805 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004535/1.945, allocations: 71.83 kB / 1.023 GB, free: 9.738 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/1.946, allocations: 227.5 kB / 1.023 GB, free: 9.574 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003778/1.947, allocations: 220.1 kB / 1.023 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002136/1.947, allocations: 107.8 kB / 1.023 GB, free: 9.34 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002626/1.949, allocations: 1.82 MB / 1.025 GB, free: 7.82 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.7e-07/1.949, allocations: 0 / 1.025 GB, free: 7.82 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006464/1.956, allocations: 2.152 MB / 1.027 GB, free: 5.684 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * 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 (347): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 50} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009624/1.957, allocations: 0.5796 MB / 1.028 GB, free: 5.211 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2261/2.183, allocations: 9.706 MB / 1.037 GB, free: 81.48 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/2.183, allocations: 0.8438 kB / 1.037 GB, free: 81.48 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004047/2.187, allocations: 2.613 MB / 1.04 GB, free: 81.45 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003696/2.191, allocations: 0.7463 MB / 1.041 GB, free: 81.44 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01905/2.21, allocations: 14.76 MB / 1.055 GB, free: 75.81 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003361/2.213, allocations: 4.344 MB / 1.059 GB, free: 75.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/2.215, allocations: 318.5 kB / 1.06 GB, free: 75.01 MB / 0.4948 GB Notification: Performance of SimCode: time 7.81e-07/2.215, allocations: 3.391 kB / 1.06 GB, free: 75.01 MB / 0.4948 GB Notification: Performance of Templates: time 0.1352/2.35, allocations: 114.9 MB / 1.172 GB, free: 41.84 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile clang++ -std=c++14 -Winvalid-pch -O2 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningTypes.h:135:9: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24vType' typedef _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24vType _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24vRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningFunctions.h:18:115: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24vType' void /*RecordTypetest*/ _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v(double re_, double im_,_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24vType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningFunctions.cpp:56:106: error: unknown type name '_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24vType' void Functions::_omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24v(double re_, double im_, _omcQComplexOutput_24voltageQuasiRMSSensorQS_24voltageSensor_24vType& output) ^ 3 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakeningCalcHelperMain.o] Error 1