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.InductionMachines.IMS_Characteristics.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.InductionMachines.IMS_Characteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma|speed.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma|speed.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006951/0.006958, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.517/3.517, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001761/0.001761, allocations: 78.94 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006053/0.0006055, allocations: 12 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5797/0.5804, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.05506/0.6356, allocations: 21.65 MB / 396.2 MB, free: 27.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03137/0.667, allocations: 7.617 MB / 403.8 MB, free: 19.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01119/0.6783, allocations: 155.5 kB / 404 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0124/0.6908, allocations: 1.64 MB / 405.6 MB, free: 17.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0257/0.7166, allocations: 2.829 MB / 408.4 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01092/0.7275, allocations: 1.283 MB / 409.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.04012/0.7677, allocations: 10.94 MB / 420.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1024/0.8702, allocations: 19.65 MB / 440.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01811/0.8884, allocations: 4.396 MB / 444.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01948/0.908, allocations: 4.852 MB / 449.6 MB, free: 5.648 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006411/0.9145, allocations: 0.7188 MB / 450.3 MB, free: 4.93 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01089/0.9255, allocations: 1.003 MB / 451.3 MB, free: 3.926 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008854/0.9345, allocations: 2.2 MB / 453.5 MB, free: 1.719 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008262/0.9428, allocations: 2.336 MB / 455.8 MB, free: 15.37 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04638/0.9893, allocations: 20.87 MB / 476.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.9894, allocations: 0 / 476.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.248e-06/0.9894, allocations: 0 / 476.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0009807/0.9904, allocations: 0 / 476.7 MB, free: 10.44 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.09179/1.082, allocations: 12.31 MB / 489 MB, free: 14.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.361e-05/1.082, allocations: 8.031 kB / 489 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1799/1.262, allocations: 9.26 MB / 498.3 MB, free: 4.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 1.166/2.428, allocations: 6.817 MB / 0.4933 GB, free: 86.23 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001952/2.43, allocations: 0.812 MB / 0.4941 GB, free: 85.98 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008908/2.439, allocations: 1.069 MB / 0.4951 GB, free: 85.63 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1555/2.595, allocations: 18.59 MB / 0.5133 GB, free: 77.87 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001108/2.596, allocations: 21.05 kB / 0.5133 GB, free: 77.86 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01199/2.608, allocations: 455.6 kB / 0.5137 GB, free: 77.52 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006004/2.614, allocations: 0.7003 MB / 0.5144 GB, free: 77.38 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09596/2.71, allocations: 18.14 MB / 0.5321 GB, free: 60.34 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2152/2.926, allocations: 60.11 MB / 0.5908 GB, free: 15.37 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.09392/3.02, allocations: 46.67 MB / 0.6364 GB, free: 11.73 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06299/3.083, allocations: 12.55 MB / 0.6486 GB, free: 15.21 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/3.083, allocations: 69.64 kB / 0.6487 GB, free: 15.14 MB / 458.8 MB Notification: Performance of pre-optimization done (n=395): time 1.279e-05/3.083, allocations: 4 kB / 0.6487 GB, free: 15.13 MB / 458.8 MB Notification: Performance of matching and sorting (n=401): time 0.6097/3.693, allocations: 19.76 MB / 0.668 GB, free: 153.4 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/3.693, allocations: 95.36 kB / 0.6681 GB, free: 153.3 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01593/3.709, allocations: 4.261 MB / 0.6723 GB, free: 151.7 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001288/3.71, allocations: 91.95 kB / 0.6723 GB, free: 151.6 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006758/3.717, allocations: 4.671 MB / 0.6769 GB, free: 148 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003482/3.721, allocations: 1.382 MB / 0.6783 GB, free: 147 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001693/3.722, allocations: 129.9 kB / 0.6784 GB, free: 146.9 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001001/3.723, allocations: 0.574 MB / 0.6789 GB, free: 146.4 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01412/3.738, allocations: 3.161 MB / 0.682 GB, free: 145.2 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0188/3.756, allocations: 5.766 MB / 0.6877 GB, free: 140.6 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01812/3.775, allocations: 4.44 MB / 0.692 GB, free: 138.7 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002287/3.775, allocations: 27.62 kB / 0.692 GB, free: 138.7 MB / 458.8 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.04566/3.821, allocations: 10.17 MB / 0.702 GB, free: 134.7 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/3.821, allocations: 42.34 kB / 0.702 GB, free: 134.7 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003038/3.821, allocations: 90.02 kB / 0.7021 GB, free: 134.7 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01112/3.832, allocations: 1.403 MB / 0.7034 GB, free: 134.4 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01525/3.848, allocations: 1.475 MB / 0.7049 GB, free: 134.3 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04079/3.889, allocations: 10.86 MB / 0.7155 GB, free: 126 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01298/3.902, allocations: 398.1 kB / 0.7159 GB, free: 125.7 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002452/3.904, allocations: 331.6 kB / 0.7162 GB, free: 125.4 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 396 * 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 (759): * Single equations (assignments): 754 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01827/3.922, allocations: 4.18 MB / 0.7203 GB, free: 121.2 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002607/3.925, allocations: 446.5 kB / 0.7207 GB, free: 120.8 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03582/3.961, allocations: 7.47 MB / 0.728 GB, free: 113.2 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02667/3.988, allocations: 6.134 MB / 0.734 GB, free: 107.1 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.866e-05/3.988, allocations: 12 kB / 0.734 GB, free: 107.1 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001694/3.988, allocations: 19.92 kB / 0.734 GB, free: 107.1 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07265/4.061, allocations: 16.54 MB / 0.7502 GB, free: 90.52 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.872e-05/4.061, allocations: 8.094 kB / 0.7502 GB, free: 90.52 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008638/4.07, allocations: 0.7294 MB / 0.7509 GB, free: 89.79 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008605/4.078, allocations: 1.242 MB / 0.7521 GB, free: 88.54 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001424/4.08, allocations: 91.97 kB / 0.7522 GB, free: 88.45 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0334/4.113, allocations: 9.619 MB / 0.7616 GB, free: 78.71 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/4.113, allocations: 4 kB / 0.7616 GB, free: 78.7 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04205/4.155, allocations: 10.8 MB / 0.7721 GB, free: 67.82 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006005/4.161, allocations: 1.058 MB / 0.7732 GB, free: 66.74 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002848/4.164, allocations: 68 kB / 0.7732 GB, free: 66.68 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007794/4.172, allocations: 259.8 kB / 0.7735 GB, free: 66.42 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002313/4.175, allocations: 271.6 kB / 0.7737 GB, free: 66.16 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001124/4.176, allocations: 118 kB / 0.7739 GB, free: 66.04 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01089/4.187, allocations: 2.846 MB / 0.7766 GB, free: 63.19 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.393e-06/4.187, allocations: 0 / 0.7766 GB, free: 63.19 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01685/4.204, allocations: 1.841 MB / 0.7784 GB, free: 61.35 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (imsQS.rotor.strayReluctance.port_p.reference.gamma,speed.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 (367): * Single equations (assignments): 362 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,40.3%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001946/4.206, allocations: 273.1 kB / 0.7787 GB, free: 61.09 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.03229/4.238, allocations: 8.028 MB / 0.7865 GB, free: 53.05 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.576e-05/4.238, allocations: 64 / 0.7865 GB, free: 53.05 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01653/4.255, allocations: 3.712 MB / 0.7902 GB, free: 49.33 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01196/4.267, allocations: 0.984 MB / 0.7911 GB, free: 48.36 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0792/4.346, allocations: 22.2 MB / 0.8128 GB, free: 26.1 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02191/4.368, allocations: 6.997 MB / 0.8196 GB, free: 19.05 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004493/4.372, allocations: 419.3 kB / 0.82 GB, free: 18.64 MB / 458.8 MB Notification: Performance of SimCode: time 1.863e-06/4.373, allocations: 0 / 0.82 GB, free: 18.64 MB / 458.8 MB Notification: Performance of Templates: time 1.104/5.476, allocations: 172 MB / 0.988 GB, free: 1.508 MB / 458.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.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/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.InductionMachines.IMS_CharacteristicsCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsFunctions.cpp:220:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp135 = 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.InductionMachines.IMS_CharacteristicsFunctions.cpp:220:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp135 = 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.InductionMachines.IMS_CharacteristicsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.o] Error 1\n'