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.SMR_CurrentSource.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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001549/0.001549, allocations: 185 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 1.901/1.901, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001108/0.001107, allocations: 100.3 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.000393, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3299, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5324/0.8624, allocations: 156.2 MB / 0.5184 GB, free: 66.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003384/0.8628, allocations: 105 kB / 0.5185 GB, free: 66.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.826/2.688, allocations: 384.8 MB / 0.8943 GB, free: 34.46 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.635e-06/2.688, allocations: 3.812 kB / 0.8943 GB, free: 34.46 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001002/2.689, allocations: 291.4 kB / 0.8945 GB, free: 34.41 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05591/2.745, allocations: 11.7 MB / 0.906 GB, free: 30.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/2.745, allocations: 11.66 kB / 0.906 GB, free: 30.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05383/2.799, allocations: 6.373 MB / 0.9122 GB, free: 29.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0345/2.834, allocations: 9.496 MB / 0.9215 GB, free: 28.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001504/2.835, allocations: 0.9192 MB / 0.9224 GB, free: 28.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006217/2.842, allocations: 1.2 MB / 0.9235 GB, free: 28.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06721/2.909, allocations: 20.55 MB / 0.9436 GB, free: 19.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007305/2.91, allocations: 26.7 kB / 0.9436 GB, free: 19.37 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005032/2.915, allocations: 0.5138 MB / 0.9441 GB, free: 18.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001233/2.916, allocations: 0.8366 MB / 0.945 GB, free: 18.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06136/2.977, allocations: 18.69 MB / 0.9632 GB, free: 1.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5451/3.523, allocations: 64.49 MB / 1.026 GB, free: 31.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05838/3.581, allocations: 45.86 MB / 1.071 GB, free: 28.15 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06813/3.649, allocations: 23.66 MB / 1.094 GB, free: 24.19 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001057/3.649, allocations: 101.2 kB / 1.094 GB, free: 24.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=771): time 1.172e-05/3.649, allocations: 0 / 1.094 GB, free: 24.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=811): time 0.1893/3.839, allocations: 46.62 MB / 1.14 GB, free: 19.66 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/3.839, allocations: 126.8 kB / 1.14 GB, free: 19.59 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009912/3.849, allocations: 3.594 MB / 1.143 GB, free: 18.23 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001872/3.851, allocations: 134.3 kB / 1.143 GB, free: 18.12 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003717/3.854, allocations: 4.709 MB / 1.148 GB, free: 14.48 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.004312/3.859, allocations: 2.69 MB / 1.151 GB, free: 12.39 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00215/3.861, allocations: 162.3 kB / 1.151 GB, free: 12.26 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001164/3.862, allocations: 0.6776 MB / 1.152 GB, free: 11.79 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01495/3.877, allocations: 5.128 MB / 1.157 GB, free: 9.703 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01771/3.895, allocations: 7.514 MB / 1.164 GB, free: 4.664 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01833/3.913, allocations: 6.447 MB / 1.17 GB, free: 380 kB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.293e-05/3.914, allocations: 20 kB / 1.17 GB, free: 360 kB / 0.4949 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.4348/4.348, allocations: 15.58 MB / 1.185 GB, free: 95.52 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 8.246e-05/4.348, allocations: 37.81 kB / 1.185 GB, free: 95.52 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001629/4.349, allocations: 69.91 kB / 1.185 GB, free: 95.52 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/4.363, allocations: 4.129 MB / 1.19 GB, free: 95.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01336/4.376, allocations: 1.644 MB / 1.191 GB, free: 95.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02095/4.397, allocations: 12.21 MB / 1.203 GB, free: 90.82 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009888/4.407, allocations: 446.1 kB / 1.203 GB, free: 90.82 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002547/4.41, allocations: 390.1 kB / 1.204 GB, free: 90.82 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * 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 (854): * Single equations (assignments): 798 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01369/4.423, allocations: 4.4 MB / 1.208 GB, free: 90.7 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003169/4.427, allocations: 0.5834 MB / 1.209 GB, free: 90.7 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04568/4.472, allocations: 14.45 MB / 1.223 GB, free: 90.32 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003193/4.473, allocations: 198.4 kB / 1.223 GB, free: 90.32 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.109e-05/4.473, allocations: 0 / 1.223 GB, free: 90.32 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00017/4.473, allocations: 36.89 kB / 1.223 GB, free: 90.32 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08421/4.557, allocations: 28.81 MB / 1.251 GB, free: 80.41 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001098/4.557, allocations: 3.5 kB / 1.251 GB, free: 80.41 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009653/4.567, allocations: 1.057 MB / 1.252 GB, free: 80.38 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0132/4.58, allocations: 4.017 MB / 1.256 GB, free: 79.12 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002118/4.582, allocations: 172.2 kB / 1.256 GB, free: 79.03 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01969/4.602, allocations: 12.06 MB / 1.268 GB, free: 71.17 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/4.602, allocations: 4.875 kB / 1.268 GB, free: 71.17 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05866/4.661, allocations: 21.88 MB / 1.289 GB, free: 60.13 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006769/4.668, allocations: 1.749 MB / 1.291 GB, free: 58.55 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002756/4.67, allocations: 119.3 kB / 1.291 GB, free: 58.44 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007448/4.678, allocations: 328.1 kB / 1.292 GB, free: 58.21 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00261/4.681, allocations: 0.573 MB / 1.292 GB, free: 57.85 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001141/4.682, allocations: 220.3 kB / 1.292 GB, free: 57.65 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006417/4.688, allocations: 2.692 MB / 1.295 GB, free: 55.42 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.21e-07/4.688, allocations: 2.516 kB / 1.295 GB, free: 55.42 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01252/4.701, allocations: 2.153 MB / 1.297 GB, free: 53.28 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (547): * Single equations (assignments): 491 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * 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.002736/4.704, allocations: 0.611 MB / 1.298 GB, free: 52.86 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03483/4.738, allocations: 13.09 MB / 1.31 GB, free: 41.52 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/4.738, allocations: 0 / 1.31 GB, free: 41.52 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01908/4.757, allocations: 6.782 MB / 1.317 GB, free: 35.6 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01047/4.768, allocations: 1.185 MB / 1.318 GB, free: 34.7 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4668/5.235, allocations: 30.02 MB / 1.348 GB, free: 87.13 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01811/5.253, allocations: 7.743 MB / 1.355 GB, free: 86.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003902/5.257, allocations: 498.8 kB / 1.356 GB, free: 86.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.774e-06/5.257, allocations: 2.953 kB / 1.356 GB, free: 86.2 MB / 0.4949 GB Notification: Performance of Templates: time 2.258/7.515, allocations: 0.7083 GB / 2.064 GB, free: 25.12 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp301 = 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.SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp301 = 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.SMR_CurrentSourceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1\n'