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.001552/0.001551, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.012/2.012, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001192/0.001192, allocations: 98.84 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000419/0.000419, allocations: 12 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3436, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5014/0.8451, allocations: 130.8 MB / 0.4935 GB, free: 62.44 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.8454, allocations: 111.1 kB / 0.4937 GB, free: 62.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774/2.619, allocations: 379.8 MB / 0.8646 GB, free: 43.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.086e-06/2.619, allocations: 0 / 0.8646 GB, free: 43.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000996/2.62, allocations: 242.4 kB / 0.8648 GB, free: 43.3 MB / 442.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.05337/2.674, allocations: 10.79 MB / 0.8753 GB, free: 39.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/2.674, allocations: 7.656 kB / 0.8753 GB, free: 39.95 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0538/2.728, allocations: 6.316 MB / 0.8815 GB, free: 39.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03037/2.758, allocations: 8.775 MB / 0.8901 GB, free: 38.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001393/2.759, allocations: 0.7946 MB / 0.8909 GB, free: 38.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005869/2.765, allocations: 1.034 MB / 0.8919 GB, free: 38.24 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06406/2.829, allocations: 19.24 MB / 0.9107 GB, free: 36.7 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000697/2.83, allocations: 14.92 kB / 0.9107 GB, free: 36.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005134/2.835, allocations: 453.8 kB / 0.9111 GB, free: 36.37 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001368/2.837, allocations: 0.8173 MB / 0.9119 GB, free: 36.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05539/2.892, allocations: 18.11 MB / 0.9296 GB, free: 28.94 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5543/3.447, allocations: 61.45 MB / 0.9896 GB, free: 45.76 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04007/3.487, allocations: 25.09 MB / 1.014 GB, free: 33.15 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07994/3.567, allocations: 26.53 MB / 1.04 GB, free: 32.42 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001124/3.567, allocations: 104.9 kB / 1.04 GB, free: 32.37 MB / 458.7 MB Notification: Performance of pre-optimization done (n=834): time 1.433e-05/3.567, allocations: 2.5 kB / 1.04 GB, free: 32.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=840): time 0.1801/3.747, allocations: 48.54 MB / 1.088 GB, free: 21.45 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.389e-05/3.747, allocations: 122 kB / 1.088 GB, free: 21.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007084/3.754, allocations: 2.699 MB / 1.09 GB, free: 20.39 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002096/3.756, allocations: 138.3 kB / 1.09 GB, free: 20.28 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003016/3.759, allocations: 3.719 MB / 1.094 GB, free: 17.42 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004804/3.764, allocations: 2.756 MB / 1.097 GB, free: 15.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00212/3.767, allocations: 145.3 kB / 1.097 GB, free: 15.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001017/3.768, allocations: 0.6459 MB / 1.097 GB, free: 14.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01526/3.783, allocations: 5.6 MB / 1.103 GB, free: 12.39 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01736/3.8, allocations: 7.059 MB / 1.11 GB, free: 8.461 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01961/3.82, allocations: 6.737 MB / 1.116 GB, free: 5.426 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.679e-05/3.82, allocations: 12.88 kB / 1.116 GB, free: 5.426 MB / 458.7 MB Notification: Performance of matching and sorting (n=1046) (initialization): time 0.07461/3.895, allocations: 17.41 MB / 1.133 GB, free: 13.43 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.141e-05/3.895, allocations: 20.78 kB / 1.133 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001416/3.895, allocations: 40 kB / 1.134 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0182/3.913, allocations: 5.02 MB / 1.138 GB, free: 9.238 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01161/3.925, allocations: 1.346 MB / 1.14 GB, free: 8.203 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02697/3.952, allocations: 12.37 MB / 1.152 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009106/3.961, allocations: 427.6 kB / 1.152 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002756/3.964, allocations: 319.2 kB / 1.153 GB, free: 12.37 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * 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 (706): * Single equations (assignments): 640 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,18 115} Notification: Performance of prepare postOptimizeDAE: time 0.01373/3.978, allocations: 4.132 MB / 1.157 GB, free: 8.922 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002518/3.98, allocations: 0.4921 MB / 1.157 GB, free: 8.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.445/4.425, allocations: 17.02 MB / 1.174 GB, free: 81.98 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04064/4.466, allocations: 14.45 MB / 1.188 GB, free: 81.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.617e-05/4.466, allocations: 4.406 kB / 1.188 GB, free: 81.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001673/4.466, allocations: 33.84 kB / 1.188 GB, free: 81.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08735/4.553, allocations: 30.87 MB / 1.218 GB, free: 80.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001058/4.554, allocations: 1.312 kB / 1.218 GB, free: 80.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009013/4.563, allocations: 1.026 MB / 1.219 GB, free: 80.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01562/4.578, allocations: 4.842 MB / 1.224 GB, free: 80.72 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002172/4.581, allocations: 176.8 kB / 1.224 GB, free: 80.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02257/4.603, allocations: 12.17 MB / 1.236 GB, free: 74.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/4.603, allocations: 3.781 kB / 1.236 GB, free: 74.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06651/4.67, allocations: 23.95 MB / 1.259 GB, free: 64.49 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00713/4.677, allocations: 1.806 MB / 1.261 GB, free: 63.76 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003421/4.68, allocations: 114.9 kB / 1.261 GB, free: 63.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00812/4.689, allocations: 379.3 kB / 1.261 GB, free: 63.58 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003577/4.692, allocations: 0.5955 MB / 1.262 GB, free: 63.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002512/4.695, allocations: 226.9 kB / 1.262 GB, free: 63.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005753/4.701, allocations: 2.052 MB / 1.264 GB, free: 62.63 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.71e-07/4.701, allocations: 0 / 1.264 GB, free: 62.63 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01344/4.714, allocations: 1.989 MB / 1.266 GB, free: 62.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * 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 (540): * Single equations (assignments): 474 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,17 116} Notification: Performance of Backend phase and start with SimCode phase: time 0.003481/4.718, allocations: 0.5709 MB / 1.267 GB, free: 62.22 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04095/4.759, allocations: 13.63 MB / 1.28 GB, free: 57.02 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/4.759, allocations: 0 / 1.28 GB, free: 57.02 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02292/4.782, allocations: 7.1 MB / 1.287 GB, free: 54.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01036/4.792, allocations: 0.9775 MB / 1.288 GB, free: 54.03 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07283/4.865, allocations: 27.72 MB / 1.315 GB, free: 29.74 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01442/4.879, allocations: 7.177 MB / 1.322 GB, free: 24.23 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003715/4.883, allocations: 430.2 kB / 1.322 GB, free: 23.84 MB / 490.7 MB Notification: Performance of SimCode: time 1.733e-06/4.883, allocations: 0 / 1.322 GB, free: 23.84 MB / 490.7 MB Notification: Performance of Templates: time 2.566/7.449, allocations: 0.5943 GB / 1.917 GB, free: 101.4 MB / 0.5105 GB 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=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.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:516:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp356 = 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:516:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp356 = 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'